Archive for the 'Sun' Category

Solaris – format

February 11th, 2010

 # format
Searching for disks…done
0. c0t0d0 <drive not available: formatting>


# format -Mm
may be helpful as this reports additional messages about what is happening.

Get a list of disks

# format < /dev/null or echo “\n” | format

format non destructive commands
disk, current, defect, verify, save, inquiry

format destructive commands
type, partition, format, repair, label, analyze, backup

formating using another disk
# prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s – /dev/rdsk/c0t2d0s2

Install boot block
# installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t2d0s0

A fairly typical layout is

0. /
1.  swap
2. whole disk
3.  /var
4. /data

If the system has has a database locally and there is a need for a bit of extra speed then /data can always be put on the faster part of the disk. Not to many systems swap much anymore since there is the ability to put in as much memory as is needed. Although if needed a seperate filesystem can be created for a swap partition.
0. /data
1. /
2. whole disk
3. /swap
4. /var

Sun – E450 Offline hot swap drives

August 18th, 2009

list drives

# cfgadm -al

unconfigure drive

cfgadm -c unconfigure c2::dsk/c2t3d0


cfgadm -al   (the disk should no long be listed and can be hot swapped)

 For E250’s

# ssaadm remove_device c0t0d0s0