|
|
Adding Second IDE Hard Drive into a Blade 100/150
by Jeff Hunter, Sr. Database Administrator
There are seven steps, all relatively easy.
ok probe-ide
This command may hang the system if a Stop-A or halt command
has been executed. Please type reset-all to reset the system
before executing this command.
Do you wish to continue? (y/n) y
Device 0 ( Primary Master )
ATA Model: WDC WD400BB-22DEA0
Device 1 ( Primary Slave )
Removable ATAPI Model: LTN486S
Device 2 ( Secondary Master )
ATA Model: WDC WD400BB-22DEA0
Device 3 ( Secondary Slave )
Not Present
ok boot -r
# newfs /dev/rdsk/c0t2d0s7
# mkdir /db2
#device device mount FS fsck mount mount #to mount to fsck point type pass at boot options # #/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs 1 yes - fd - /dev/fd fd - no - /proc - /proc proc - no - /dev/dsk/c0t0d0s3 - - swap - no - /dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1 no - /dev/md/dsk/d0 /dev/md/rdsk/d0 /db0 ufs 2 yes - /dev/md/dsk/d1 /dev/md/rdsk/d1 /db1 ufs 2 yes - /dev/dsk/c0t2d0s7 /dev/rdsk/c0t2d0s7 /db2 ufs 2 yes - swap - /tmp tmpfs - yes -This will mount the filesystem to /db2 at boot time.
That's it! It doesn't take long. The hardest part is getting the drive installed into the chassis without damaging all the various cables.
To check your disk configuration use the format command. In the example below, I include settings on a Sun Blade 150 configured with two 40GB IDE disks. First login as the root userid and perform the following. Notice that by convention, slice 2 is always used as a backup partition and is always the size of the entire disk.
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <WDC WD400BB-22DEA0 cyl 19156 alt 2 hd 16 sec 255>
/pci@1f,0/ide@d/dad@0,0
1. c0t2d0 <WDC WD400BB-22DEA0 cyl 19156 alt 2 hd 16 sec 255>
/pci@1f,0/ide@d/dad@2,0
Specify disk (enter its number): 0
selecting c0t0d0
[disk formatted, no defect list found]
Warning: Current Disk has mounted partitions.
format> verify
Primary label contents:
Volume name = < >
ascii name = <WDC WD400BB-22DEA0 cyl 19156 alt 2 hd 16 sec 255>
pcyl = 19158
ncyl = 19156
acyl = 2
nhead = 16
nsect = 255
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 18640 36.27GB (18641/0/0) 76055280
1 swap wu 18641 - 19155 1.00GB (515/0/0) 2101200
2 backup wm 0 - 19155 37.27GB (19156/0/0) 78156480
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
format> disk
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <WDC WD400BB-22DEA0 cyl 19156 alt 2 hd 16 sec 255>
/pci@1f,0/ide@d/dad@0,0
1. c0t2d0 <WDC WD400BB-22DEA0 cyl 19156 alt 2 hd 16 sec 255>
/pci@1f,0/ide@d/dad@2,0
Specify disk (enter its number)[0]: 1
selecting c0t2d0
[disk formatted, no defect list found]
Warning: Current Disk has mounted partitions.
format> verify
Primary label contents:
Volume name = < >
ascii name = <WDC WD400BB-22DEA0 cyl 19156 alt 2 hd 16 sec 255>
pcyl = 19158
ncyl = 19156
acyl = 2
nhead = 16
nsect = 255
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wm 0 0 (0/0/0) 0
2 backup wm 0 - 19155 37.27GB (19156/0/0) 78156480
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 - 19155 37.27GB (19156/0/0) 78156480