- 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
Discussions
Discussions
Forums
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
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-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