- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Vgchange Question
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
02-09-2009 11:20 AM
02-09-2009 11:20 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2009 11:31 AM
02-09-2009 11:31 AM
Solution>>which has mounted SG filesystems?
No, you will get an error if you try to deactivate a VG without mounted file systems.
>>I created a new filesystem for a package and
>>need to export the vgmap to the other nodes,
Add the '-p' (preview) option.
# vgexport -m mapfile -s -p vg??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2009 11:40 AM
02-09-2009 11:40 AM
Re: Vgchange Question
If the VG was created with the package down, deactivate the VG:
# vgchange -a n vg01
Create a map file prior to vgimport'ing the VG on other nodes.
# vgexport -pvs -m /etc/lvmconf/map.vg01 vg01
Copy the map file to the other nodes. Example:
# rcp /etc/lvmconf/map.vg01(othernode):/etc/lvmconf/map.vg01
NOTE: "othernode" is a reference to the hostname of the destination server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2009 11:54 AM
02-09-2009 11:54 AM
Re: Vgchange Question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2009 12:00 PM
02-09-2009 12:00 PM
Re: Vgchange Question
How the VG was create is not relevant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2009 04:57 PM
02-09-2009 04:57 PM
Re: Vgchange Question
Volume groups cannot be deactivated if filesystems are mounted and in use.
If filesystems that a package mounts in manually umounted and a volume group deactivated while a package is running it can be done but if the package then tries to shutdown it will experience errors running the stop script since the LVs and VGs are already unmounted. This will be a run script error.
Normally when a serviceguard package shuts down it does a
fuser -ku
of each mount point that belongs to a package so it can umount the filesystems.
You can create a new volume group and filesystem and export the volume group with a preview mode to create a map file so you can import it on the other node.
If you are real careful you could add the vgs and LVs to the package and hope that you edited the script right when it shuts down.
I would suggest that you shutdown the package first, add the VG and LVs to the package and start the new larger package to test it and make sure it starts and stops everything.
I hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2009 02:19 AM
02-10-2009 02:19 AM
Re: Vgchange Question
i assume that you have made an LV on a VG that is already activated and the Filesystems are already mounted by the package.
but if this new FS is to be used by the package, this also needs to have an entry on the Filsystem Check and Mount Entries in the package Control file on both the nodes, which shall ensure that the New LV that you have created for that package gets checked and mounted automatically with the package start.
this is additional thoght that you need to have while creating a new LV on a VG that is activated by the package.
also you need to craete the MountPoint directory to mount that LV on both the nodes.
The actual suggested way to add a filesystem to a package is to do so by taking that package down.
Also that helps you remain ensured after doing a package start and halt test on both the nodes.
yes
ON node1
#vgexport -p -v -s -m /tmp/vgXX.mapfile /dev/vgXX
#rcp -p /tmp/vgXX.mapfile
on node2
#vgexport /dev/vgXX
#mkdir /dev/vgXX
#mknod /dev/vgXX/group c 64 0xAAAAAA
keep this minor no 0xAAAAAA the same as that on the pry node node1
#vgimport -v -s -m /tmp/vgXX.mapfile /dev/vgXX
make necessary mount point dirctories on both node1 and node2
edit the package conf file on both the nodes to add entry for checkand mount of this LV.
Check by starting/halting the package on both the nodes.
so that you are sure that in case of a failover scenario to the node2 the package starts and runs satisfactorily.
regards
sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2009 08:01 AM
02-10-2009 08:01 AM