Operating System - HP-UX
1838286 Members
3076 Online
110125 Solutions
New Discussion

changeing clusterlock disk 36GB to a 73GB disk

 
SOLVED
Go to solution
Co van Berkel
Regular Advisor

changeing clusterlock disk 36GB to a 73GB disk

Hi,
We want to change a 36GB (mirrored) disk to a 73GB (mirrored) disk. Mirrorring is done using HP MirrorDisk over two SC10 cabinets.
(/dev/dsk/c4t0d0 and /dev/dsk/c5t0d0)
We run MC/SG and one of the mirrored disks is asigned as the lock disk. Also the Volume group on these disk is VG01. Becose of maximum PE's for VG01 can't handle 73GB disks, the volume group will change also to VG04.
In the MC/SG config file only disk /dev/dsk/c4t0d0 is asigned as lock-disk.

Questions:
1. Can we remove disk /dev/dsk/c5t0d0 as mirror while the cluster is up and whitout creating problems regarding the lock-disk?
2. We want to save a copy of the original disk data (vg01 lvol's and /dev/dsk/c4t0d0). How to do this?

Regards,
CvB
7 REPLIES 7
Geoff Wild
Honored Contributor

Re: changeing clusterlock disk 36GB to a 73GB disk

Answer to #1 - no cluster must be down to change the cluster lock.

http://docs.hp.com/en/B3936-90079/ch07s04.html

For number 2,

lvol info is displayed with a vgdisplay -v /dev/vg01

do you need to pull the 36GB disk out? If you can leave it in - then just setup the new lvols on the new disk and copy the data over - I like to use vadump/vxrestore:

vxdump -0 -f - -s 1000000 -b 16 /old/oracle | (cd /oracle ; vxrestore rf -)&

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Co van Berkel
Regular Advisor

Re: changeing clusterlock disk 36GB to a 73GB disk

Hi,
We have to replace the 36GB disks for 73GB disks.
Regards,
CvB
Geoff Wild
Honored Contributor
Solution

Re: changeing clusterlock disk 36GB to a 73GB disk

Okay - for a replace - then you will just have to document the current lvol layouts (just save a vgdisplay -v /dev/vg01 > /tmp/vg01.dis.old )

Either copy the data somewhere or run a backup.

Then, remove the old disks (umount the file systems, vgexport /dev/vg01), then put in the new ones and recreate vg01 on the new disks - no need for vg04 - recreate the file systems, mount them and run a restore.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Co van Berkel
Regular Advisor

Re: changeing clusterlock disk 36GB to a 73GB disk

Hi,

Is it possible to save all the info, vg01/lvol an cluster lock and filesystem data, on the original disk /dev/dsk/c4t0d0 and still remove the VG01 volume group?

Becose normal you have to lvremove all lvol's and than do a vgremove of the VG01?
But than all the data on the disk is cleared and this disk can't be used for a recover situation.

Regards,
CvB.
Michael Duthie
Trusted Contributor

Re: changeing clusterlock disk 36GB to a 73GB disk

And then edit the cluster config file with the new lock disk dev file and reapply.
Thomas J. Harrold
Trusted Contributor

Re: changeing clusterlock disk 36GB to a 73GB disk

If the original disks are mirrored, break the mirror, replace one of the disks with the new 73GB drive, create a new VG (vg04), and then copy your data from old disk to new.

When the copy is done, replace the other 36GB drive with 73GB drive, and mirror the 73GB drives.

-tjh
I learn something new everyday. (usually because I break something new everyday)
Co van Berkel
Regular Advisor

Re: changeing clusterlock disk 36GB to a 73GB disk

Thanks for your help.