- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Rename volume group?
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
тАО12-27-2002 08:13 AM
тАО12-27-2002 08:13 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-27-2002 08:19 AM
тАО12-27-2002 08:19 AM
SolutionFilesystem: Rename volume groups and logical volumes
date: 4/24/97
document description: Filesystem: Rename volume groups and logical volumes
document id: A4158692
You may provide feedback on this document
--------------------------------------------------------------------------------
Problem Description
Can you explain how to rename a volume group (VG) and the logical volumes
within that VG?
Configuration Info
Operating System - HP-UX
Version -10.01
Hardware System -877
Solution
Follow these guidelines for non-root volume groups:
1. umount /filesys (for each mounted filesys)
2. vgchange -a n /dev/vgname
3. vgexport -m mapfile /dev/vgname
4. vi mapfile (to set up new logical volume names)
5. mkdir /dev/vgnewname
6. mknod /dev/vgnewname/group c 64 0x
7. vgimport -m mapfile /dev/vgnewname /dev/dsk/cxtyd0
where x and y are the device files for the physical volumes in
the VG.
Hope it helps,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-27-2002 08:20 AM
тАО12-27-2002 08:20 AM
Re: Rename volume group?
You can do a vgexport and a new mknod to change the minor # (0x_ _ 0000), and then vgimport it back.
But to change the name /dev/vgname .. nope ..
What you might do is...do a complete backup of the affected data. Create a new vg and restore the data to the new location.
Just my thoughts,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-27-2002 08:24 AM
тАО12-27-2002 08:24 AM
Re: Rename volume group?
for Eg:
mkdir /dev/vgnewname
mknod /dev/vgnewname c 64 0x06000
vgimport -v -s -m vgoldname dev/vg05
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-27-2002 08:26 AM
тАО12-27-2002 08:26 AM
Re: Rename volume group?
vgimport -v -s -m vgoldname dev/vgnewname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-27-2002 08:30 AM
тАО12-27-2002 08:30 AM
Re: Rename volume group?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-27-2002 08:50 AM
тАО12-27-2002 08:50 AM
Re: Rename volume group?
I believe, assuming I recall correctly, that the import process is relatively quick - measured in seconds rather than minutes, even.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-27-2002 09:13 AM
тАО12-27-2002 09:13 AM
Re: Rename volume group?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-27-2002 09:15 AM
тАО12-27-2002 09:15 AM
Re: Rename volume group?
I'll award points accordingly when I do this work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-28-2002 02:11 AM
тАО12-28-2002 02:11 AM
Re: Rename volume group?
1 - The convention is to name root volume group vg00
2 - It is imperitive that /dev/vg00/lvol1, 2 & 3 are in the right order on the disk for boot purposes. Calling them by other names confuses the issue.
3 - Assume you have renamed vg00 then certain scripts start to fail. You will have to fix these scripts which is another task you probably could do without.
However I DO name non-standard logical volumes in vg00. e.g. I would not create /dev/vg00/lvol9 it would be /dev/vg00/app1 etc.
Regards
Tim