- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- lvcreate in Cluster aware vg of package without pk...
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
09-23-2006 06:10 PM
09-23-2006 06:10 PM
lvcreate in Cluster aware vg of package without pkghalt
Is it possible to lvcreate in Cluster aware vg of the package without doing pkghalt.So that adoptive node will aware of this LV.
Can I do it Online without halting Package or Cluster.
thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2006 06:38 PM
09-23-2006 06:38 PM
Re: lvcreate in Cluster aware vg of package without pkghalt
NO.You have to shutdown package.
You have the following steps
Halt package
In the primary node,
vgchange -a e /dev/vgXX
lvcreate -L sizeinMB -n name /dev/vgXX
vgexport -p -v -s -m vgXX.map /dev/vgXX
rcp vgXX.map node2:/vgXX.map
In other nodes,you have to export the vgXX configuration and import it.
vgexport /dev/vgXX
mkdir /dev/vgXX
mknod /dev/vgXX/group c 64 0x020000
vgimport -v -s -m /vgXX.map
Regards,
Sajeer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2006 06:49 PM
09-24-2006 06:49 PM
Re: lvcreate in Cluster aware vg of package without pkghalt
Please note in the previous answer
there is a contradiction.
(I have removed the halt pkg instruction)
In the primary node,
vgchange -a e /dev/vgXX
lvcreate -L sizeinMB -n name /dev/vgXX
vgexport -p -v -s -m vgXX.map /dev/vgXX
rcp vgXX.map node2:/vgXX.map
In other nodes,you have to export the vgXX configuration and import it.
vgexport /dev/vgXX
mkdir /dev/vgXX
mknod /dev/vgXX/group c 64 0x020000
vgimport -v -s -m /vgXX.map
Another remark:
It is a good idea to to a ls -lR > log.lst of the/dev/vgXX so you have a list of
all the minor node id's
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2006 03:31 AM
09-25-2006 03:31 AM
Re: lvcreate in Cluster aware vg of package without pkghalt
I'm agree with Frank, I do that job periodically and it works fine, but also I have to add the new logical volume in package_name.ctrl file and copy that file to all nodes in the cluster.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2006 05:09 AM
09-25-2006 05:09 AM
Re: lvcreate in Cluster aware vg of package without pkghalt
Test at your next maint. window.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2006 10:33 AM
09-28-2006 10:33 AM
Re: lvcreate in Cluster aware vg of package without pkghalt
vgchange -a r
mount filesystem
umount filesystem
vgchange -a n
remember to "vgchange -a n" or else the package will not be able to failover at later time.
Cheers,
Kasper
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2006 03:36 PM
09-28-2006 03:36 PM
Re: lvcreate in Cluster aware vg of package without pkghalt
See table 7.1:
http://docs.hp.com/en/B3936-90079/ch07s04.html
After that, you have to create a new map file on that node
vgexport -p -s -v -m /tmp/vgXX.map /dev/vgXX
copy that to adotive node,
on adoptive node, make note of the minor number:
ll /dev/vgXX/group
vgexport /dev/vgXX
mkdir /dev/vgXX
mknod /dev/vgXX/group c 64 0xHH0000
vgimport -s -v -m /tmp/vgXX.map /dev/vgXX
NOTE: XX= number of your vg
HH = hex value of minor number..
Example - vg05 should have group file 0x050000
vg10 should have group 0x0a0000
Now that isn't mandatory - but trust me - you want it that way.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2006 06:03 PM
09-29-2006 06:03 PM
Re: lvcreate in Cluster aware vg of package without pkghalt
Some of u suggested to do vgchange -a e & add that LV in Package control script.
Why this is required?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2006 02:36 AM
09-30-2006 02:36 AM
Re: lvcreate in Cluster aware vg of package without pkghalt
The main reason why you have to do vgchange -a e is that just you can create lvols exclusive mode, i mean you can't create shared mode.
Cluster wide volumes should keep consistency for the access so when you configure your cluster using exclusive file system, the system which is handling those cluster filesystems have to open the vgs to exclusive mode.
Anyway, you can create cluster vgs online without haltpkg.
As previous stated, you have to do vgexport and vgimport
but you can't create cluster package using shared mode
Regards
nanan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2006 11:46 PM
10-01-2006 11:46 PM
Re: lvcreate in Cluster aware vg of package without pkghalt
available, exclusive
then it is possible to lvcreate a new volume in the VG while the package is running.
In order to know what must be done on a Serviceguard cluster to accommodate the lvcreate, you need to know that lvcreate modifies the VGDA (LVM structures on the disk) and does a couple of mknod's in the /dev/
Once the new logical volume is created, you probably want to create a file system in i, and have the package control script mount it - correct?
Therefore, the following is necessary as a result of the lvcreate:
1) On the node where the lvcreate was performed, newfs a file system on the new lvol
2) Edit the package control script to reference the new file system, and copy the update to the other node.
3) On the other node, update /dev/
All of this can be done while the VG is active and operating under control of Serviceguard, in a package.