Tuesday, June 21, 2011

Sun Fire[TM] 12K/15K/E20K/E25K servers: System Controller, Solaris[TM] OS installation, and Solaris[TM] Volume Manager (SVM) Configuration

Goal
The following procedure can be used to configure a Solaris[TM] installation and Solaris[TM] Volume Manager (SLVM) configuration on the System Controller when the System Controller (SC) disk must be completely rebuilt due to a failure.
Solution
How to configure Sun Fire[TM] 12K/15K/E20K/E25K servers:
1. As part of the Solaris installation, partition the disk at c0t2d0 following the partition tables:
Part Size
0 8.00 GB /
1 4.00 GB swap
4 32.00 MB SLVM DB
5 32.00 MB SLVM DB
7 Avail. Free /export/install
Note: your previous installation of Solaris[TM] may have a two, four or four and a half gig swap space. All are supported, but new installations are recommended installing a four gig slice.

2. After the Solaris installation is complete, make sure the partition map on c0t3d0 is the same as c0t2d0. One method:
Run format
Select c0t2d0
Choose (p)artitions and name the map SCDISK
(q)uit the partition menu.
Choose (d)isks and select c0t3d0.
Choose (s)elect, pick SCDISK from the list presented and (l)abel the disk.
Exit format.
Or:
Run this command as root:
prtvtoc /dev/rdsk/c0t2d0s2 | fmthard -s - /dev/rdsk/c0t3d0s2

3. Install the SDS/SVM packages. (Note that SVM is bundled with Solaris 9 and higher)

4. Add the following to the end of the /etc/lvm/md.tab file.
mddb01 -c 3 c0t2d0s4
mddb02 -c 3 c0t2d0s5
mddb03 -c 3 c0t3d0s4
mddb04 -c 3 c0t3d0s5
d10 -m d11
d11 1 1 /dev/dsk/c0t2d0s0
d12 1 1 /dev/dsk/c0t3d0s0
d20 -m d21
d21 1 1 /dev/dsk/c0t2d0s1
d22 1 1 /dev/dsk/c0t3d0s1
d30 -m d31
d31 1 1 /dev/dsk/c0t2d0s7
d32 1 1 /dev/dsk/c0t3d0s7

5. Initialize the meta-databases with:
# metadb -a -f mddb01
# metadb -a mddb02
# metadb -a mddb03
# metadb -a mddb04

6. Remove the swap device.
# swap -d /dev/dsk/c0t2d0s1

7. Initialize the disk in the mirror and the mirror itself.
# metainit d21
# metainit d20

8. Add the new swap device and modify the /etc/vfstab file.
# swap -a /dev/md/dsk/d20
/dev/md/dsk/d20 - - swap - no - vfstab entry

9. Unmount /export/install and initialize its disk and mirror.
# umount /export/install
# metainit d31
# metainit d30

10. Change /export/install's entry in /etc/vfstab to:
/dev/md/dsk/d30 /dev/md/rdsk/d30 /export/install ufs 2 yes logging

11. Perform a newfs on /export/install and mount it.
# newfs -i 8192 -m 1 /dev/md/rdsk/d30
# mount /export/install

12. Prepare the disk and mirror for root.
# metainit -f d11
# metainit d10
# metaroot d10

13. REBOOT THE SYSTEM CONTROLLER.

14. Finally, synchronize the mirrors.
# metainit d12
# metattach d10 d12
# metainit d22
# metattach d20 d22
# metainit d32
# metattach d30 d32