SYNOPSIS: How to move SSA with ODS metadevices to a different host
DETAIL DESCRIPTION:
You are moving a Sparc Storage Array from one host to another. The SSA
Has been configured with Online Disk Suite(ODS).
SOLUTION SUMMARY:
These steps are also for moving a SSA to a system that doesn't have an
existing ODS configuration, but has ODS installed on it.
1. Backup all data on the metadevices that are being moved.(hostA)
2. Make sure your configuration is alright by using the below command.(hostA)
#metastat
3. Make a copy of your configuration with the command below.(hostA)
#metastat -p > /outut_file
4. Find out where the metadb's are.
#metadb
flags first blk block count
a m pc luo 16 1034 /dev/dsk/c0t4d0s0
a pc luo 16 1034 /dev/dsk/c0t5d0s0
a pc luo 16 1034 /dev/dsk/c0t2d0s0
5. Now we want to clear the metadevices.(you must unmount all the metadevices
first)(hostA)
#metaclear -ar
d3: Mirror is cleared
d0: Concat/Stripe is cleared
d2: Concat/Stripe is cleared
6. Next we want to remove the metadb's.(hostA)
#metadb -d -f /dev/dsk/cxtxdxsx
You will need to do the above command for each metadb.
5. Put a copy of the "output_file on tape or transfer the file to hostB via
network.
6. You will need to edit the "output_file" to do the following:
- reflect the new controller numbers.
- if there is mirroring in your configuration. You will want to break the two
way mirrors. (hostB) Remember you want to write down the second side of the
mirror that we will be breaking off, we will need this for step 14.
(rebuilding the mirror)
Example.
Before editting
d3 -m d0 d2 1
d0 1 1 c0t4d0s6
d2 1 1 c0t5d0s6
After editting
d3 -m d0
d0 1 1 c0t4d0s6
d2 1 1 c0t5d0s6
- if you have RAID-5 devices, edit the md.tab file and add -k option at
the end of the RAID-5 metadevice initilization line.
example
d8 -r /dev/dsk/c#t#d#s# /dev/dsk/c#t#d#s# /dev/dsk/c#t#d#s0 -i 8k -k
WARNING: Failure to use -k will cause metadisk to be reinitialized, thus
losing data!
7. Bring hostA down and remove the SSA.
8. Now we want install the SSA on hostB.
a.Bring hostB down & attach the SSA
b.Do a reconfiguration boot
#boot -r
c. Verify that you can see the array through format.
9. After moving the md.tab file out of the way(first command below)and have a
copy of the editted "output_file on your system, move the "output_file" to
/etc/opt/SUNWmd/md.tab.(hostB)
#mv /etc/opt/SUNWmd/md.tab /etc/opt/SUNWmd/org.mdtab
#mv /output_file /etc/opt/SUNWmd/md.tab
10. First we will need to create are meta state databases. Using the example
output from step 4. in the below commands.
#metadb -a /dev/dsk/c0t4d0s0
#Metadb -a /dev/dsk/c0t5d0s0
#metadb -a /dev/dsk/c0t2d0s0
11. Now that we have a configured md.tab file and metadb's we can rebuild the
meta devices.
#metainit -a
12. run metastat to see that the metadevice were set up correctly and in the
ok state.
13. Before we can reattach the mirrors we need to reboot
#reboot
14. Once up and running on the one sided mirrors we can reattach the other side.
Again we will be using the example data from step six.
#metattach d3 d2
You will need to do the above command for each mirror. Remember After attach-
ing the sub back to the mirror it will be syncing, SO DO NOT REBOOT, until
they are done. You can use the below command to get a status on the meta-
devices.
14. After the drives sync you are done.