- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Add logical volume to VG in cluster
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2009 10:48 PM
03-17-2009 10:48 PM
It is a raw volume so no mkfs is needed.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2009 11:14 PM
03-17-2009 11:14 PM
Re: Add logical volume to VG in cluster
Yes, u need to export and import it on another node with new map file
Rergards
Sanjeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2009 11:21 PM
03-17-2009 11:21 PM
Re: Add logical volume to VG in cluster
The device file /dev/
Hence you need to do a vgexport -p on one node and on the other node, vgexport, mkdir,mknod, vgimport..
Please assign points
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2009 12:14 AM
03-18-2009 12:14 AM
Re: Add logical volume to VG in cluster
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2009 12:19 AM
03-18-2009 12:19 AM
Re: Add logical volume to VG in cluster
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"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2009 12:41 AM
03-18-2009 12:41 AM
Re: Add logical volume to VG in cluster
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 ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2009 01:20 AM
03-18-2009 01:20 AM
Re: Add logical volume to VG in cluster
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2009 01:24 AM
03-18-2009 01:24 AM
Re: Add logical volume to VG in cluster
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
where mapfile is the one copied from the first node
5. If no error, remove the preview mode
>>>>vgimport -vs -m
6. Activate in share mode
>>>>vgchange -a s /dev/vgxx
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2009 01:35 AM
03-18-2009 01:35 AM
Re: Add logical volume to VG in cluster
vgchange: Volume group "/dev/vg02" does not exist in the "/etc/lvmtab" file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2009 01:46 AM
03-18-2009 01:46 AM
Re: Add logical volume to VG in cluster
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2009 04:52 AM
03-18-2009 04:52 AM
Re: Add logical volume to VG in cluster
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2009 04:59 AM
03-18-2009 04:59 AM
Re: Add logical volume to VG in cluster
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2009 05:14 AM
03-18-2009 05:14 AM
Re: Add logical volume to VG in cluster
Follow this steps. Assuming you are creating lv on VG02 and it is currently activated on node1
on node1
Create the logical volume as per LVM commands. After creation,
#vgexport -p -v -m /tmp/vg02.map vg02
It will just create a map file /tmp/vg02.map
Copy this map file to second node.(node2)
on node2. (Assuming VG02 is not activated here)
Note down the minor number of vg02
#vgexport /dev/vg02
#mkdir /dev/vg02
#mknod /dev/vg02/group c 64 0x020000
#vgimport -v -m /tmp/vg02.map vg02
Now the necessary devices files will be created on node2 as well. So when the package moves here all the lv's including new lv get mounted.
Not that these steps doesn't include the modifications of package control file. you need take care of that seperately.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2009 05:18 AM
03-18-2009 05:18 AM
Re: Add logical volume to VG in cluster
If still u want to see your VG on another node than u can activate it as readonly.
vgchange -a r /dev/vg02
Regards
Sanjeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2009 04:01 AM
03-19-2009 04:01 AM
Re: Add logical volume to VG in cluster
vgimport -v -m /tmp/vg02.map vg02 /dev/dsk/c16t0d5
There is no hw info in the map file.
that works ok
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2009 04:10 AM
03-19-2009 04:10 AM
Re: Add logical volume to VG in cluster
Best way is
on 1st node
vgexport -p -m /tmp/mapfile -f /tmp/diskfile /dev/vg00
than copy mapfile and disk file to another node
than on 2nd node
vgexport vg02
mknod ( minor number should be same as 1st node vg02 )
vgimport -m /tmp/mapfile -f /tmp/diskfile /dev/vg02
if u want to activate VG on 2nd node as read only
vgchange -a r /dev/vg02
Regards
Sanjeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2009 12:28 AM
03-20-2009 12:28 AM
Re: Add logical volume to VG in cluster
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2009 12:39 AM
03-20-2009 12:39 AM
Re: Add logical volume to VG in cluster
Than u need to import with device name.
But generally The nodes in Cluster having same device name
Regards
Sanjeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2009 12:48 AM
03-20-2009 12:48 AM
Re: Add logical volume to VG in cluster
first off, when you are running the vgexport on your primary node to generate the map file, you need to make nsure you include the "-s" option on the vgexport. This will ensure that as well as the lvol names, the volume group ID is also writrten to the map file (think of the volume group ID or VGID as like a disk signature)
Then when importing the volume group on the other node use the "-s" option on the vgimport and the vgimport command will scan all the disks visible to the system and look for that VGID - that way it knows what disks need to be part of the volume group and you don't have to list them on the command line.
As for the point about device files being the same on all cluster nodes. In my experience they are different as often as they are the same. Serviceguard really doesn't care if a LUN is seen as c3t5d0 on one node and c7t5d0 on another node - it can cope with that without a problem.
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2009 12:51 AM
03-20-2009 12:51 AM
Re: Add logical volume to VG in cluster
on node1
Create the logical volume as per LVM commands. After creation,
#vgexport -p -s -v -m /tmp/vg02.map vg02
It will just create a map file /tmp/vg02.map
Copy this map file to second node.(node2)
on node2. (Assuming VG02 is not activated here)
Note down the minor number of vg02
#vgexport /dev/vg02
#mkdir /dev/vg02
#mknod /dev/vg02/group c 64 0x020000
#vgimport -v -s -m /tmp/vg02.map vg02
It will take a little longer as it has to scan all the disks on the system, but should work.
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2009 01:02 AM
03-20-2009 01:02 AM
Re: Add logical volume to VG in cluster
You are right at this point, but if are dealing with huge Disks ( Means number of disk is more ) than -s option will take very long time & if some devide is missing than ....
Regards
Sanjeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2009 01:53 AM
03-20-2009 01:53 AM
Re: Add logical volume to VG in cluster
A logical volume is added on node 1 and not on node 2.
How can the content of a volume get corrupted when the volume group gets activated and is missing a device file pointing to a volume?
Wouldn't you only be missing that volume on node 2?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2009 01:55 AM
03-20-2009 01:55 AM
Re: Add logical volume to VG in cluster
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2009 02:07 AM
03-20-2009 02:07 AM
Solutionabout volume corruption...
yes you're corerct it wouldn't actually be "corrupted" it just wouldn't work correctly - either the VG wouldn't activate or the new lvol would be missing. But there would be no actual data corruption.
I guess it depends on the interperetation of the word "corruption". You could ceratinly say that the volume group configuration was "corrupted" as it would be missing data, but the actual contents of your logical volumes and filesystems wouldn't get corrupted.
HTH
Duncan
I am an HPE Employee
