Operating System - HP-UX
1838648 Members
2729 Online
110128 Solutions
New Discussion

Re: Move data to new volume group in Cluster Env.

 
SOLVED
Go to solution
stelecom
Occasional Advisor

Move data to new volume group in Cluster Env.

Dear All,

We have a 2 node cluster. We want to extend old volume group but Max_PE_per_PV parameters is so small, so We need to replace old volume group by a new volume group and move all data from old vg to a new volume group.

Am i correct in my procedure??


Node1:

pvcreate /dev/rdsk/c3t2d5
mkdir /dev/vg10
mknod /dev/vg10/group c 64 0x060001
pvcreate /dev/rdsk/c3t2d5
vgcreate –e 9472 /dev/vg10 /dev/dsk/c3t2d5
lvcreate -L 25600 /dev/vg10
umount /dev/vg10/lvol1
extendfs -F vxfs /dev/vg10/rlvol1
mkdir MYAPPDB/oraindex2
mount /dev/vg10/lvol1 /MYAPPDB/oraindex2
cp /MYAPPDB/oraindex1 /MYAPPDB/oraindex2

--Remove old volume group

umount /dev/vg06/lvol1 /MYAPPDB/oraindex1
lvremove -f /dev/vg06/lvol1
vgremove /dev/vg06

umount /dev/vg10/lvol1 /MYAPPDB/oraindex2
mount /dev/vg10/lvol1 /MYAPPDB/oraindex1
rv /MYAPPDB/oraindex2

vgexport –s –p –v –m /tmp/vg10.map /dev/vg10
rcp –p /tmp/vg10.map node2:/tmp/

Node2:

vgremove vg06
mkdir /dev/vg10
mknod group c 64 0x060001
vgimport –p –s –m /tmp/vg10.map –v /dev/vg10
vgchange –a r /dev/vg10
vgcfgbackup /dev/vg10
vgchange –a –n /dev/vg10


Many Thanks,
Vu.
4 REPLIES 4
RAC_1
Honored Contributor

Re: Move data to new volume group in Cluster Env.

The procedure looks OK. For copying data, you have many options.

cpio
vxdump
fbackup
There is no substitute to HARDWORK
Mark Nieuwboer
Esteemed Contributor
Solution

Re: Move data to new volume group in Cluster Env.

I don't thing this is the correct way.
First make a backup of the filesystem or a tar file.
tar cvf oraindex.tar /MYAPPDB/oraindex1
pvcreate /dev/rdsk/c3t2d5
mkdir /dev/vg10
mknod /dev/vg10/group c 64 0x070000
vgcreate -e 30000 -s 16 /dev/vg10 /dev/dsk/c3t2d5 This because you can put bigger disk in the futher in the volumegroup.
lvcreate -L 25600 /dev/vg10/lvol1
newfs -F vxfs /dev/vg10/rvol1
umount /MYAPPDB/oraindex1
mount /dev/vg10/lvol1 /MYAPPDB/oraindex1
tar xvf oraindex.tar
vgexport -s -p -v mm /tmp/vg10.map /dev/vg10
rcp -p /tmp/vg10.map node2:/tmp/
change the cluster.configuration and packageconfiguration.
vgchange -a n /dev/vg10
vgchange -c y /dev/vg10
and cmcheckconf -c cluster.ascii
cmapplyconf -c cluster.ascii
cmcheckconf -p package.conf
cmapplyconf -p package.conf

on node 2

mkdir /dev/vg10
mknod group c 64 0x060001
vgimport -p -s -m /tmp/vg10.map -v /dev/vg10
vgcfgbackup /dev/vg10

change the cluster.configuration and packageconfiguration.
and cmcheckconf -c cluster.ascii
cmapplyconf -c cluster.ascii
cmcheckconf -p package.conf
cmapplyconf -p package.conf
start the package.

After this remove the old volumegroup.
with vgexport.

grtz. Mark




stelecom
Occasional Advisor

Re: Move data to new volume group in Cluster Env.

Dear all,

How can i get minor number (64 0x070000 ??)

Thks,
Vu
Devender Khatana
Honored Contributor

Re: Move data to new volume group in Cluster Env.

Hi,

Minor number should be unique for the system on which you create the VG. Confirm allready used minor numbers by

#ll /dev/vg*/group

And use the next available number in Hex.

HTH,
Devender
Impossible itself mentions "I m possible"