Sunteți pe pagina 1din 6

2/15/2018 SOLARIS LIVE PROCEDURES: SVM ROOT MIRRORING

SOLARIS LIVE PROCEDURES


About Me Tuesday, 16 October 2012
Suresh Karpurapu
SVM ROOT MIRRORING
Follow 75

View my complete
profile
c1t0d0 —> Root disk
c1t1d0 —> Root-mirror disk
Blog Archive Sub mirrors for Root disk —> d10, d20
Sub mirrors for Root-mirror disk —> d11, d21
▼ 2012 (12) Mirror name would be —> d0, d1 (root, swap)
► November (2)
▼ October (10)
1. Need to take the backup of required files
#cp /etc/system /etc/system.bkp
SOLARIS KERNEL PATCHING #cp /etc/vfstab /etc/vfstab.bkp
PROCEDURE #df -h>df.bkp
SOFT & HARD LINKS #echo|format>format.bkp
2. We have to select the new disk as same geometry of root disk, and also need to
SVM ROOT MIRRORING label the new disk by using root disk
Root Password Recovery for any # fmthard -s /dev/null /dev/rdsk/c1t1d0s2 [empty labeling on new disk]
Solaris 10 (without... #prtvtoc /dev/rdsk/c1t0d0s2|fmthard -s - /dev/rdsk/c1t1d0s2 [labeling
new disk]
OpenBoot Parameters &
commands
3. Need to create 3 meta database replicas on each disk [should allocate 50MB for
7th slice on each disk, and no need run newfs]
Solaris Patching Procedure # metadb -a -f -c 3 /dev/rdsk/c1t0d0s7
# metadb -a -f -c 3 /dev/rdsk/c1t1d0s7
Failed Disk Replacement Under
#metadb [to check metadb values]
SVM
4. Create RAID-0 volumes on root disk for sub-mirrors

http://solarislive.blogspot.in/2012/10/normal-0-false-false-false-en-us-x-none_3047.html 1/6
2/15/2018 SOLARIS LIVE PROCEDURES: SVM ROOT MIRRORING

Stopping the VERITAS GUI # metainit -f d10 1 1 c1t0d0s0 [for root]


process ID # metainit -f d20 1 1 c1t0d0s1 [for swap]
Different Ways to Check
5. Create second RAID-0 volumes on root-mirror disk for sub-mirrors
Memory Usage on Solaris # metainit -f d11 1 1 c1t1d0s0
Se... # metainit -f d21 1 1 c1t1d0s1
6. Create RAID-1 one-way mirror volumes using RAID-0 volumes on root disk
Seat Arrangement # metainit -f d0 -m d10
# metainit -f d1 -m d20
► 2011 (1) 7. Execute “metaroot” command on root mirror volume, and it will update the
/etc/system file & /etc/vfstab file
Note: Before executing “metaroot” just check system & vfstab for knowing
Followers difference after this
Followers (13) #metaroot d0
NOTE: Check /etc/vfstab & /etc/system files, and above command will update only
for root file system with “md” entries for rest of other file systems(i.e., swap, usr,
var etc..) we need to made it as manual “md” entries.
#cat /etc/vfstab
/dev/dsk/c1t0d0s1 - - swap - no
-
/dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 1 no -
#vi /etc/vfstab [need to change with “md” entries for other FS]
Follow /dev/md/dsk/d1 - - swap - no -
/dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 1 no -

There was an error in this gadget 8. For file system level alters, we must reboot the system[i.e. will effect in df –h with
md entries]
There was an error in this gadget #shutdown –y –g0 –i6
9. Once system came up, need to attach second submirrors to main mirror
Search This Blog #metattach d0 d11
#metattach d1 d21
Search Check the status of syncing
#metastat|grep –i sync
Pages
10. Install “bootblk” on root mirrored disk
#installboot /usr/platform/`uname –i`/lib/fs/ufs/bootblk
Home /dev/rdsk/c1t1d0s0
#prtconf -pv | grep -i bootpath
bootpath: '/pci@1f,0/pci@1/scsi@8/disk@0,0:a'
Subscribe To NOTE: for x86 systems old versions [should be on s2 slice]
#installboot /usr/platform/i86pc/lib/fs/ufs/pboot \
Posts /usr/platform/i86pc/lib/fs/ufs/bootblk /dev/rdsk/c1t1d0s2
---------------------------------------------------------------------------------------
Comments
---------------------------------

http://solarislive.blogspot.in/2012/10/normal-0-false-false-false-en-us-x-none_3047.html 2/6
2/15/2018 SOLARIS LIVE PROCEDURES: SVM ROOT MIRRORING

NOTE: From Solaris 10 x86 U1 version, the installboot command is obselete.


So, use the installgrub command, to make the second disk bootable. It is better to
run this command once, to make sure the secondary disk is bootable.
# installgrub -fm /boot/grub/stage1 /boot/grub/stage2
/dev/rdsk/c1t1d0s0
11. Record second submirror name from event of failures
#eeprom boot-device
boot-device=rootdisk net
#ls -l /dev/dsk/c1t1d0s0
/pci@1f,0/pci@1/scsi@8/sd@1,0:a
Ok> [stop+A]
Ok> show-disks [select the root-mirror disk ]
Ok>nvalias root-mirror /pci@1f,0/pci@1/scsi@8/disk@1,0:a
NOTE: needs to boot with each drive for testing
Ok>setenv boot-device rootdisk root-mirror net
Ok>printenv boot-device
rootdisk root-mirror net
Ok>boot
NOTE: x86 systems
# eeprom bootpath
bootpath=/pci@0,0/pci15ad,1976@10/sd@0,0:a
# ls -l /dev/dsk/c1t1d0s0
lrwxrwxrwx 1 root root 46 Feb 7 16:48 /dev/dsk/c1t1d0s0 ->
../../devices/pci@0,0/pci15ad,1976@10/sd@1,0:a
# eeprom altbootpath=/pci@0,0/pci15ad,1976@10/sd@1,0:a
NOTE: Booting with 50% of available replicas is possible/optional with
the /etc/system setting “set md:mirrored_root_flag=1” i.e to maintain
quorum also add the mentioned line in /etc/system file.
UNMIRRORING PROCEDURE
1. Un-record second sub-mirror from “boot-device”
2. Need to detach root-mirror disk sub-mirrors from main mirror
#metadetach d0 d11 [for root]
#metadetach d1 d21 [for swap]
3. Execute metaroot on root file system block device
#metaroot /dev/dsk/c1t0d0s0
Check /etc/vfstab & /etc/system file, and above command will update for root FS
#grep c1t0d0s0 /etc/vfstab
/dev/dsk/c1t0d0s0 /dev/rdsk/c1t0d0s0 / ufs 1 no -
NOTE: For other File systems[swap,opt,usr], and we need to edit
manually, and make it as native entries
NOTE: Here's the caveat(caution) for mirrored swap - you're probably
using /dev/md/dsk/d1 for your dump device. Let's fix that now. First run
dumpadm | grep '/md/'

http://solarislive.blogspot.in/2012/10/normal-0-false-false-false-en-us-x-none_3047.html 3/6
2/15/2018 SOLARIS LIVE PROCEDURES: SVM ROOT MIRRORING

If that returns any output, then run this (using your single-disk slice for
swap):
dumpadm -s /var/crash/`hostname` -d /dev/dsk/c1t0d0s1

4. Reboot the system


#shutdown –y –g0 –i6
5. Now, we can clear main mirror as well as sub-mirror under root disk
#metaclear –r d0
#metaclear –r d1

All Categories Search

Posted by Suresh Karpurapu at 03:23

No comments:

Post a Comment

Note: only a member of this blog may post a comment.

Enter your comment...

Comment as: Unknown (Goo Sign out

Publish Preview Notify me

Links to this post


Create a Link

http://solarislive.blogspot.in/2012/10/normal-0-false-false-false-en-us-x-none_3047.html 4/6
2/15/2018 SOLARIS LIVE PROCEDURES: SVM ROOT MIRRORING

Newer Post Home Older Post

Subscribe to: Post Comments (Atom)

There was an error in this gadget

Amazon Deals

Torrents Search Engine There was an error in this gadget There was an error in this gadget
Search Engine

TORRENTS

http://solarislive.blogspot.in/2012/10/normal-0-false-false-false-en-us-x-none_3047.html 5/6
2/15/2018 SOLARIS LIVE PROCEDURES: SVM ROOT MIRRORING

Daily Horoscopes

Daily Horoscopes

♈ Aries
3/21-4/19
♎ Libra
9/23-10/22

♉ Taurus
4/20-5/20
♏ Scorpio
10/23-11/21

♊ Gemini
5/21-6/21
♐ Sagittarius
11/22-12/21

♋ Cancer
6/22-7/22 ♑ Capricorn
12/22-1/19

♌ Leo
7/23-8/22 ♒ Aquarius
1/20-2/18

♍ Virgo
8/23-9/22 ♓ Pisces
2/19-3/20

There was an error in this gadget

Travel theme. Powered by Blogger.

http://solarislive.blogspot.in/2012/10/normal-0-false-false-false-en-us-x-none_3047.html 6/6

S-ar putea să vă placă și