- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to rename LV's command line
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
11-01-2001 04:47 PM
11-01-2001 04:47 PM
How do I rename a logical volume command line.
Example:
/dev/vg02/lvol1b
Thanks and Best Regards.
Tony Escujuri
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2001 05:16 PM
11-01-2001 05:16 PM
Re: how to rename LV's command line
I don't believe that this can be done. You
would need to backup the existing logical
volume, remove it and recreate it.
1. Backup the volume
2. Remove the volume using
'lvremove /dev/vg02/lvol1b'
3. Re-create your volume
'lvcreate -n
'lvextend -L
4. Do your restore
HTH
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2001 05:46 PM
11-01-2001 05:46 PM
SolutionIf all you want is to renmae the logical volume, do this:
# umount mountpoint
# mv /dev/vgXX/oldname /dev/vgXX/newname
# mv /dev/vgXX/roldname /dev/vgXX/rnewname
...NOTE both the block and the raw device file names are changed...
# (Edit /etc/fstab to reflect the 'newname' for the 'mountpoint')
# mount -a
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2001 06:09 PM
11-01-2001 06:09 PM
Re: how to rename LV's command line
I have tested JRF's steps.
It works!!
Regards
Animesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2001 07:27 PM
11-01-2001 07:27 PM
Re: how to rename LV's command line
Thanks Jim... I didn't think it could be done
Cheers
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2001 09:04 PM
11-01-2001 09:04 PM
Re: how to rename LV's command line
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2001 07:10 PM
11-02-2001 07:10 PM
Re: how to rename LV's command line
Regards,
Tony Escujuri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2001 06:49 AM
11-03-2001 06:49 AM
Re: how to rename LV's command line
A caveat:
When a raw logical volume needs to be renamed, it has to be made sure that it
is not being used by running:
fuser /dev/vgname/lvolname
-> if this lists pid's using it , then
the processes need to be identified and
either be killed or gracefully removed.
Only when the raw volume is not being used,
should it be renamed. I have seen a DBA
get into big trouble at work by renaming a
live db raw volume.
For a filesystem lv, it's a different story,
since the Filesystem unmount automatically
ensures the LV is not being used.
-raj