0% found this document useful (0 votes)
72 views3 pages

Steps To Do Mirroring

The document outlines 9 steps to configure Solaris volume manager mirroring between two disks: 1) Check and partition disks identically 2) Create metadb databases on disks 3) Configure metadevices on each disk slice 4) Update /etc/vfstab to mount metadevices 5) Setup a hotspare pool 6) Attach mirrors 7) Make mirror disk bootable 8) Change dump device to mirrored disk 9) Reboot from mirrored disk

Uploaded by

ricgetz
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
72 views3 pages

Steps To Do Mirroring

The document outlines 9 steps to configure Solaris volume manager mirroring between two disks: 1) Check and partition disks identically 2) Create metadb databases on disks 3) Configure metadevices on each disk slice 4) Update /etc/vfstab to mount metadevices 5) Setup a hotspare pool 6) Attach mirrors 7) Make mirror disk bootable 8) Change dump device to mirrored disk 9) Reboot from mirrored disk

Uploaded by

ricgetz
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

Steps to do Mirroring (Solaris Volume Manager)

Check the disks


#format
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <FUJITSU-MBD2147RC-3702 cyl 14087 alt 2 hd 24 sec 848>
/pci@0,600000/pci@0/pci@0/scsi@0/sd@0,0
1. c0t1d0 <FUJITSU-MBD2147RC-3702 cyl 14087 alt 2 hd 24 sec 848>

Step 2: Partition the disks identically


# prtvtoc /dev/rdsk/ c0t0d0s02 | fmthard -s - /dev/rdsk/ c0t1d0s2

Step 3: create the metadb state databases


metadb -a -f -c2 /dev/dsk/c0t0d0s7 /dev/dsk/c0t1d0s7

Step 4: configure metadevice each slices


# metainit -f d10 1 1 c0t0d0s0
d10: Concat/Stripe is setup

# metainit -f d20 1 1 c0t1d0s0


d20: Concat/Stripe is setup

# metainit d30 -m d10

# metainit -f d11 1 1 c0t0d0s1


d11: Concat/Stripe is setup

# metainit -f d21 1 1 c0t1d0s1


d21: Concat/Stripe is setup

# metainit d31 -m d11


d31: Mirror is setup

# metainit -f d13 1 1 c0t0d0s3


d12: Concat/Stripe is setup

# metainit -f d23 1 1 c0t1d0s3


d22: Concat/Stripe is setup

# metainit d33 -m d13


d32: Mirror is setup

# metainit -f d14 1 1 c0t0d0s4


d13: Concat/Stripe is setup

# metainit -f d24 1 1 c0t1d0s4


d23: Concat/Stripe is setup

# metainit d34 -m d14


d33: Mirror is setup

# metainit -f d15 1 1 c0t0d0s5


d13: Concat/Stripe is setup

# metainit -f d25 1 1 c0t1d0s5


d23: Concat/Stripe is setup

# metainit d35 -m d15


d33: Mirror is setup
# metainit -f d16 1 1 c0t0d0s6
d13: Concat/Stripe is setup

# metainit -f d26 1 1 c0t1d0s6


d23: Concat/Stripe is setup

# metainit d36 -m d16


d33: Mirror is setup

Step 5: Make changes to your /etc/vfstab. The md entry for root will already be updated by the metaroot
command
# cp /etc/vfstab /etc/vfstab.orig
# metaroot d30
# vi /etc/vfstab (entry on the vfstab should be similar to below)

#device device mount FS fsck mount mount


#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/md/dsk/d36 - - swap - no -
/dev/md/dsk/d30 /dev/md/rdsk/d30 / ufs 1 no -
/dev/md/dsk/d31 /dev/md/rdsk/d31 /usr ufs 1 no -
/dev/md/dsk/d33 /dev/md/rdsk/d33 /var ufs 1 no -
/dev/md/dsk/d35 /dev/md/rdsk/d35 /export/home ufs 2 yes -
/dev/md/dsk/d34 /dev/md/rdsk/d34 /opt ufs 2 yes -
/devices - /devices devfs - no -
sharefs - /etc/dfs/sharetab sharefs - no -
ctfs - /system/contract ctfs - no -
objfs - /system/object objfs - no -
swap - /tmp tmpfs - yes -

Step 6: Setup the hotspare pool


# metainit hsp001
hsp001: Hotspare pool is setup

# lockfs -fa
# init 6

Step 7: Attached the mirror


# metattach d30 d20
# metattach d31 d21
# metattach d33 d23
# metattach d34 d24
# metattach d35 d25
# metattach d36 d26

Change dump device.


#dumpadm -d /dev/md/dsk/d36

Check the mirroring Status.


# metastat

Step 8: Make the mirror disk bootable


## installboot /usr/platform/`uname –i`/lib/fs/ufs/bootblk /dev/rdsk/c0t1d0s0
Step 9: Change the boot-device and boot the mirrored disk. (please make sure sync is complete before
doing this step.)
#init 0
Ok> setenv boot-device disk disk1
Ok> boot disk1

You might also like