UNIX MATRIX - Where there is a shell, there is a way

UNIX,cluster, Solaris, SVM,ZFS, AIX Booting,Solaris basic,soft partition,Storage Area Network, NetAPP storage, Solaris zone, server installation, server support, AIX architecture, cluster availability, cluster guide,cluster requirements,SUN, AIX,NFS,Solaris troubleshooting

UNIX Document Center

Cannot do the mirror directly. Can be created soft partitions on a
non-mirror device. This device cannot be mirrored

Step1:

Save the soft partition information

metastat -p -s setname | grep d100 > d100.conf

setname = your setname

d100 = the device you want to mirror

remove the line which creates d100 itself from the file

Step2:

delete all soft partitions on d100

metaclear -s setname d240 d230 d220

Step3

Create a mirror device

metarename -s setname d100 d101

metainit -s setname d100 -m d101

Step4:

Recreate the soft partitions

mv d100.conf /etc/lvm/md.tab

metainit -a

Step5:

Attach a second mirror to d100:

Step6:

create a metadevice d102 of at least the same size than d101

Step7:

Attach it to d100:

metattach -s setname d100 d102

Just wait to complete the sync

Step8:

Detach the old one:

metadetach -s setname d100 d101

Step9:

If the new device was larger, enlarge d100 also

metainit -s setname d100

Step10:

Get rid of d101

metaclear -s setname d101

Note:It is always a good practise to first create a (one way) mirror on a simple or striped metadevice and use same for creating soft partitions.

0 comments: