Root & Swap Mirroring
Disks: c1t0d0 & c1t1d0
Steps :( root Mirroring)
1. Create the /root (30GB) & /Swap (64GB) partitions
during the OS installation on c1t0d0.
2. i.e., c1t0d0s0 ---
root c1t0d0s1 --- swap
3. Create partition
for State Database (Metadb) on c1t0d0s7 (125MB)
4. Copy the VTOC of
c1t0d0 (1st Disk) to c1t1d0 (2nd Disk).
5. i.e.,
#prtvtoc /dev/rdsk/ c1t0d0s2 |fmthard –s - /dev/rdsk/c1t1d0s2
6. Create three copies
of metadb on c1t0d0s7 & c1t1d0s7
7. i.e., #metadb -f
-a -c3 c1t0d0s7 c1t1d0s7 (In c 3 … 3 is the no of db copy)
8. Create the Meta
volume for /root
9. i.e.,
#metainit -f d11
1 1 c0t0d0s0
& # metainit d12
1 1 c0t1d0s0
10. Create the mirror
volume
11. i.e., # metainit d10 –m
d11
12. Update the
/etc/Vfstab & /etc/system file entries by using metaroot command.
13. i.e.,
#metaroot d10
14. Reboot the system
(init 6)
15. Attach the d12 volume
with the mirror.
16. i.e., # metattach
d10 d12
17. Add the entry in
/etc/system file.
18. i.e., set md:
mirrored_root_flag=1
19. Edit the EEPROM
Values.
20. i.e., #eeprom
local-mac address?true
21. eeprom AUTO
BOOT=?true
22.
23. Boot Block
installation on the second disk.
24. i.e.,
#/usr/platform/`uname – i`
#cd lib
#cd ufs
#installboot bootblk
/dev/rdsk/c1t1d0s0
25. To check the
physical path of the second disk
#ls –lrt /dev/dsk/c0t1d0s0
26. To add the entry
in the EEPROM for root disk & root mirror
label on the second disk.
#eeprom
"nvramrc=devalias rootdisk /pci@9,600000/SUNW,qlc@2/fp@0,0/disk@1,0 \ >
devalias rootmirror /pci@9,600000/SUNW,qlc@2/fp@0,0/disk@0,0"
27. To boot from root
disk& root mirror for checking purpose.
OK
boot -v rootdisk
OK
boot –v rootmirror
Steps: Swap Mirroring
1. Create the Meta volume for /Swap
2. i.e., #metainit -f
d21 1 1
c0t0d0s1 & # metainit d22
1 1 c0t1d0s1
3. Create the mirror
volume
4. . i.e., # metainit
d20 –m d21
5. # metattach d20
d22
6. dumpadm -d
/dev/md/dsk/d20 (To add the crash dump device)
7. #dumpadm (To list
the dump device)
8. #swap -a
/dev/md/dsk/c1t0d0s1 (To add the Swap space )
9. #swap –l (To list the swap space allocated)
No comments:
Post a Comment