- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Change VG name
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
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
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-06-2008 03:14 AM
тАО02-06-2008 03:14 AM
Change VG name
I have a HP-UX server and only two hard disk is installed in the server and i have configured LVM on both the Hardisks. I want to change the name of the VG of my second harddisk.Whose VG name is VG01 and i want to rename it with VGAB and i have data on this harddisk would it be possible to change the name of the VG without any Data loss.If we can do it so please send me the steps.
regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2008 03:22 AM
тАО02-06-2008 03:22 AM
Re: Change VG name
Please follow these steps:
1)vgchange -a n vg01
3) vxexport -s -v -m /tmp/vg01.map vg01
4) mkdir /dev/VGAB
5) mknod /dev/VGAB/group c 64 0x010000
6) vgimport -v -m /tmp/vg01.map VGAB
7) vgcfgbackup VGAB
8) vgchange -a y VGAB
Hope this helps you!!
Thanks & Regards
Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2008 03:23 AM
тАО02-06-2008 03:23 AM
Re: Change VG name
vgexport -s -m /tmp/vg01.map /dev/vg01
mkdir /dev/vgab
mknod /dev/vgab/group c 64 0x010000
vgimport -s -m /tmp/vg01map /dev/vgab
vgchange -a y /dev/vgab
I used 01 as the minor number, assuming it was used for vg01 and therefore should be available.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2008 05:19 AM
тАО02-06-2008 05:19 AM
Re: Change VG name
In order to change the name of VG to VGAB without any data loss, you have to export and re-import it as follows:
1)First Umount all your logical volumes
#umount /dev/vg01/lvolxx
#umount /dev/vg01/lvolxx
. . .
#umount /dev/vg01/lvolxx
2) now deactivate the volume group vg01
#vgchange -a n vg01
3) now export your vg01 from system by #vxexport -s -v -m /tmp/vg01.map vg01
this will remove information of vg01 and its corresponding PV entries from file /etc/lvmtab.And -m option will make a mapfile(copy) having names of lvols that was present in VG01 and -s option will add an addtional line having VG-ID into the same map-file.
But keep remember that this -s option works only if u want to perform this task on the same system means if u want to export and import vg on the same system or over the sharable systems(in cluster environment)
4) #mkdir /dev/VGAB
5) #mknod /dev/VGAB/group c 64 0x010000
6) #vgimport -v -m /tmp/vg01.map VGAB
7) #vgcfgbackup VGAB
to save the lvm header information of new volume group VGAB into the lvm header backup file i.e. /etc/lvmconf/VGAB.conf
8) Now re-activate the VGAB
#vgchange -a y VGAB
Best Of luck
Thanks
Asif Khan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2008 05:27 AM
тАО02-06-2008 05:27 AM
Re: Change VG name
While these operations are relatively safe, I'd do a backup before proceeding.
The minor number issue may result in headaches down the road, should you need to add fresh volume groups to this system.
Standard rename process or migration of shared disk from one system to another follows the vgexport/vgimport path.
This change appears to be somewhat cosmetic. There is a good reason to do it?
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2008 06:40 AM
тАО02-06-2008 06:40 AM
Re: Change VG name
with Linux LVM all one would have to do was
# vgchange -an VG01
# vgrename VG01 VGAB
# vgchange -ay VGAB
and
# vi /etc/fstab
to correct the mounts
(which even wasn't necessary if labeled ext2/3 filesystems were used.
Wouldn't it be nice to have this feature also added to HP-UX LVM?
It can't be too complicated I would guess.
At least the penguin's LVM epigones have managed this ;-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2008 03:36 PM
тАО02-06-2008 03:36 PM
Re: Change VG name
I've noticed that I've come to love LVM on Linux. How come HP can't get a few more of the niceties of Linux LVM in the system? HP had this waaaay before Linux, why can't we get caught up a little on some of it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2008 03:48 PM
тАО02-06-2008 03:48 PM
Re: Change VG name
sp,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2008 11:03 PM
тАО02-06-2008 11:03 PM
Re: Change VG name
I have not tried you r solution yet but it's seem to be perfect one.
Keep up the good work.
Thanks,
Sumit