Operating System - HP-UX
1752793 Members
6236 Online
108789 Solutions
New Discussion юеВ

Re: Add logical volume to VG in cluster

 
SOLVED
Go to solution
Weertman
Frequent Advisor

Add logical volume to VG in cluster

When I add a logical volume to a vg in a package do I need to do the export and import?
It is a raw volume so no mkfs is needed.
23 REPLIES 23
Sharma Sanjeev
Respected Contributor

Re: Add logical volume to VG in cluster

Hi

Yes, u need to export and import it on another node with new map file

Rergards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Avinash20
Honored Contributor

Re: Add logical volume to VG in cluster

Yes, it is required.

The device file /dev//* needs to be available on the other node also

Hence you need to do a vgexport -p on one node and on the other node, vgexport, mkdir,mknod, vgimport..

Please assign points
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Weertman
Frequent Advisor

Re: Add logical volume to VG in cluster

when you omit that can that cause volume corruption in case of fail-over?
yulianto piyut
Valued Contributor

Re: Add logical volume to VG in cluster

absolutely, YES! you must vgexport and vgimport to the other node and you must edit your control file (*.cntl) in your cluster configuration and add your new LV, for ex:

LV[0]=/dev/vgbea/lvbea; FS[0]=/apps/bea; FS_MOUNT_OPT[0]="-o rw"; FS_UMOUNT_OPT[
0]=""; FS_FSCK_OPT[0]="";FS_TYPE[0]="vxfs"
Avinash20
Honored Contributor

Re: Add logical volume to VG in cluster

"when you omit that can that cause volume corruption in case of fail-over?"

Yes, that why we are doing vgexport in preview mode on one server and doing a vgimport on the other node

vgimport wont work if the vg is already there in lvmtab, hence we need to export and import it again ..
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Weertman
Frequent Advisor

Re: Add logical volume to VG in cluster

what is the correct import command?
Johnson Punniyalingam
Honored Contributor

Re: Add logical volume to VG in cluster

Example:-

On the other node:
1. Export the VG
>>>vgexport /dev/vgxx

2. Recreate the directory
>>>>mkdir -p /dev/vgxx

3. Recreate the VG group file
>>>mknod /dev/vgxx/group c 64 0xMM0000
where MM is a unique identifier (ex 01 for vg01)

4. Preview the vgimport to check for any possible error
>>>>vgimport -pvs -m /dev/vgxx
where mapfile is the one copied from the first node

5. If no error, remove the preview mode
>>>>vgimport -vs -m /dev/vgxx

6. Activate in share mode
>>>>vgchange -a s /dev/vgxx

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Weertman
Frequent Advisor

Re: Add logical volume to VG in cluster

vgchange -a s /dev/vg02
vgchange: Volume group "/dev/vg02" does not exist in the "/etc/lvmtab" file.
Johnson Punniyalingam
Honored Contributor

Re: Add logical volume to VG in cluster

>>vgchange -a s /dev/vg02
vgchange: Volume group "/dev/vg02" does not exist in the "/etc/lvmtab" file.<<

what is vgname did you import on the other node..?

Thanks,
Johnson
Problems are common to all, but attitude makes the difference