migrate Disks + LVM from 1 Sun server to another
Hi
Is there a best practice for migrating SAN disk from one Sun server to another.
Both Servers are running Solaris 9.
System disks are local disk on both servers ( LVM )
SAN disk is setup using LVM , we then create many soft partitions which are used as raw devices for Sybase.
thanks in advance.
# 3
Hi,
I assume you are not using metasets.
unmount and fsck your file systems.
Backup your data, then make sure your backup worked :)
You will need to capture the output of metastat -p from your original server and make sure you know which luns map to which disks. You can use 'luxadm probe' and 'luxadm display <path>' to check.
Check where your metadb databases are located on the first server. You will need create metadb databases on the second server.
I assume you will be using mpxio on second server and that it would be already enabled.
You then need to make your luns available via SAN to second server and check that you can see them in format output.
Run 'luxadm probe' and 'luxadm display <path>' and map the luns to the disks from format output. Do not assume that the disks will have the same name between first and second server.
You can save the output of 'metastat -p' from first server into /etc/lvm/md.tab in second server. Edit the disks paths as necessary making sure you use the correct lun for each underlying metadevice.
You can run metainit -n d<xx> to check the syntax of your md.tab config.
metainit your primary metadevices before the soft partition devices.
Create your mount points and vfstab entries.
Mount your file systems.
If this works you can write the best practise guide ;)
Regards