- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Renaming Volume Group IDs?
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
07-28-2004 11:08 PM
07-28-2004 11:08 PM
It's purely for consmetic reasons, I have removed some volume groups and I would like to resequence my Volume Group IDs. The VGs do have disks allocated to them containing data ie LVs with associated mount points.
I suspect you can't rename VGs. However, if it is possible how would I do it?
Thanks
Khalil
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 11:20 PM
07-28-2004 11:20 PM
Solution1. Unmount all filesystems in /dev/vg15
2. vgchange -a n /dev/vg15
3. vgexport -m
(using the -s option eliminates the need to specify the device filenames in the vgimport)
4. mkdir /dev/vg04
5. mknod /dev/vg04/group c 64 0x040000 (assuming you're going to use 04 as the minor number)
6. vgimport -m
7. vgchange -a y /dev/vg04
8. Mount all your filesystems.
Change
One thing to be warned, vgexport/vgimport will not preserve your alternate links in the way they are now. If you use alternate links you may need to do some vgreduce vgextend commands to get them the way you want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 11:41 PM
07-28-2004 11:41 PM
Re: Renaming Volume Group IDs?
only renaming itself is not possible, you have to use vgexport, create the new one and vgimport:
# umount fs
# vgchange -a n /dev/vgname
# vgexport -m mapfile /dev/vgname
in mapfile change new lv names
# mkdir /dev/vgNEW
- create control file for vg:
# mknod /dev/vgNEW/group c 64 0xminornumber
(where minor number consists of vg number in
HEX e.g.02 for vg02 and 0000 - 0x020000)
# vgimport -m mapfile /dev/vgneNEW
/dev/dsk/cxtyd0
(where cxtyd0 are dev files of physical
volumes in VG)
hope this will help
br Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 11:44 PM
07-28-2004 11:44 PM
Re: Renaming Volume Group IDs?
vgchange -a y /dev/vgNEW
mount fs
br Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 12:31 AM
07-29-2004 12:31 AM
Re: Renaming Volume Group IDs?
Thanks again.
Khalil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 01:32 AM
07-29-2004 01:32 AM
Re: Renaming Volume Group IDs?
TT