- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: creating a mapfile of a vg
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-11-2005 12:20 AM
тАО03-11-2005 12:20 AM
I am looking for a way to create a mapfile the same that is created with "vgexport". I know this can be done with the volume group deactivated and issuing (while not having to export it):
vgexport -m vg##.mapfile -p
I am not able unmount the filesystems so this is not an option.
I can create my own script to map the minor numbers to the lvol names, thus creating the mapfile (as shown below), but I would prefer to use an inbuilt command as I know HP can do it. Even if I know it is not possible, at least I can move on.
typeset -i num
find /dev/vg06 -type b|xargs ls -ld|awk '{print $6" "$10}'|while read minor dev
do
num="$(echo $minor|cut -c6-)"
print "$num\t${dev##*/}"
done
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2005 12:25 AM
тАО03-11-2005 12:25 AM
Re: creating a mapfile of a vg
vgexport -p -m
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2005 12:31 AM
тАО03-11-2005 12:31 AM
SolutionIt will complain saying:
Volume group "vg00" is still active.
but, it will STILL create the mapfile for you.
example:
vgexport vg00 -p -m vg00.mapfile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2005 12:37 AM
тАО03-11-2005 12:37 AM
Re: creating a mapfile of a vg
vgexport -p -m /tmp/vg00.map vg00
This will print a warining:
vgexport: Volume group "vg00" is still active.
But the mapfile is created anyway.
Roland
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2005 12:41 AM
тАО03-11-2005 12:41 AM
Re: creating a mapfile of a vg
I was doing the vgexport -p -m vg06.mapfile as stated in the original text, but after the error displayed, I just assumed that it did not create the file. I just checked and it does.
Cheers All
Mark...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2005 12:42 AM
тАО03-11-2005 12:42 AM
Re: creating a mapfile of a vg
I was doing the vgexport -p -m vg06.mapfile as stated in the original text, but after the error displayed, I just assumed that it did not create the file. I just checked and it does.
Cheers All
Mark...