- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Change Name of Logical Volumes
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-24-2006 09:27 AM
02-24-2006 09:27 AM
after the root disk crash, without be able to restore anything, i was be able to "active" the logical volumes on three other disk using:
1. Create the volume group and the group file on the running system
# mkdir /dev/vgXX
# cd /dev/vgXX
# mknod /dev/vgXX/group c 64 0xXX0000 !! XX = volume group number !!
2. Import the disk !! logical volume names ARE different !!
# vgimport -v /dev/vgXX /dev/dsk/c.t.d0
3. Activate the new volume group
# vgchange -a y /dev/vgXX
Unfortunately the "RAW" logical volume names are now differnt, just lvol1 lovl2.
The orginal names are more meaning full
like table and index.
Is there any way to rename the logical volume name ?
Thanks and best regards,
Herbert
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2006 09:40 AM
02-24-2006 09:40 AM
Re: Change Name of Logical Volumes
1) vgexport -p -m /tmp/vgxx.map /dev/vgxx
this will create a mapfile, /tmp/vgxx.map. Edit this file and name the LVOL's as you like. Note the -p option which will not actually export the VG.
2) Unmount the filesystems, deactivate the vg, and then do the vgexport w/o -p and -m options.
3) Recreate your /dev/vgxx directory and your /dev/vgxx/group file.
4) vgimport -m /tmp/vgxx.map -v /dev/vgxx /dev/dsk/cxtyd0 ... any other disks
5) vgcxhange -a y /dev/vgxx
6) alter /etc/fstab to reflect your changed LVOL names
7) mount the filesystems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2006 09:47 AM
02-24-2006 09:47 AM
Re: Change Name of Logical Volumes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2006 09:49 AM
02-24-2006 09:49 AM
Re: Change Name of Logical Volumes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2006 10:05 AM
02-24-2006 10:05 AM
Re: Change Name of Logical Volumes
Unfortunately the first command came already back with the devices are still active.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2006 10:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2006 10:31 AM
02-24-2006 10:31 AM
Re: Change Name of Logical Volumes
It works, i was a bit irritated by the error message. But now it's time to go to bed. 00:30 local time.
Herbert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2006 10:41 AM
02-24-2006 10:41 AM
Re: Change Name of Logical Volumes
mv /dev/vgxx/lvol1 /dev/vgxx/index
mv /dev/vgxx/rlvol1 /dev/vgxx/rindex
Since these are raw data volumes, there is nothing else to do. For most raw volumes, you can often 'read' a few bytes at the beginning of the disk as in:
xd -xc /dev/vgxx/rlvol1 | head -20
This can help identify the lvol. Butg the order of the lvols (1,2,3,...) is exactly the same as the previous names so just rename them in the same order.
Bill Hassell, sysadmin