- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: lvsplit then lvmerge on root vol 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
тАО09-05-2005 08:20 PM
тАО09-05-2005 08:20 PM
I am using what I believe is a fairly standard technique in that I lvsplit each of the lvols in vg00 then apply changes.
After changes have been tested I decide which way the lvmerge should be run.
My query is what to do in the event that I want to back out the changes.
As it is the root volume group I am assuming that it is advisable to work in single-user mode.
Firstly if I lvmerge to overwrite the standard lvol with the backup I end up with just an lvol named as the backup lvol.
e.g. lvmerge /dev/vg00/lvol5 /dev/vg00/lvol5bkp results in one lvol named /dev/vg00/lvol5bkp.
Can I just rename the resulting lvol?
The second issue is how to overwrite the first lvol (i.e. the one that has / as its mount point).
I have tried this in single-user but get the message "lvmerge: Couldn't reallocate the logical volume: Device Busy"
I am sure I cannot be the first to hit this problem, but cannot find it in the forums.
Thanks in advance for any help. Points will be assigned.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2005 09:01 PM
тАО09-05-2005 09:01 PM
Re: lvsplit then lvmerge on root vol group
Rebooted in LVM maintenance mode, instead of single-user.
Obvious once you think about it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2005 09:57 PM
тАО09-05-2005 09:57 PM
Re: lvsplit then lvmerge on root vol group
i.e. When overwriting the standard lvol with the backup, can I just rename the lvol (and rlvol) device files?
or is there a better method?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2005 10:12 PM
тАО09-05-2005 10:12 PM
SolutionAfter doing lvsplit prior to install patches, I used to:
- run fsck on new bkp lvols (lvol1bkp, lvol3bkp, ...).
- mount /dev/vg00/lvol3bkp on /mnt (for instance) and use vi to edit /mnt/etc/fstab. Then I change lvol3 for lvol3bkp, lvol6 for lvol6bkp, ... and so on). Saves changes and unmount file system.
Other job should be to use lvlnboot in order to modify root and boot info ONCE you have rebooted in LVM maintenance mode -- I typed "should be" because I never tried this.
If you want to rename lvol names you should export/import the vg00. This, of course, only can be done in LVM maintenance mode. This is the method I know to rename the logical volumes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2005 10:12 PM
тАО09-05-2005 10:12 PM
Re: lvsplit then lvmerge on root vol group
I've never had occasion to try this, but I believe you're right - you would just rename the device files. I recall Bill Hassell, in a discussion on renaming tape device files, saying "There is no significance other than historical to the device names as we know them". So, I believe it would be the same whether we're talking tape device files or disk device files or LVM device files - you can just rename them.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2005 10:42 PM
тАО09-05-2005 10:42 PM
Re: lvsplit then lvmerge on root vol group
Assuming the updates are successful, would you recommend re-mirroring in LVM maintenance mode?
Any other advice?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2005 04:12 AM
тАО09-16-2005 04:12 AM
Re: lvsplit then lvmerge on root vol group
I would highly recommend the split. I upgraded OVO and Oracle. I split the volume and fsck the copies. Left them in a safe place and did the upgrade. When complete I copied the saved over the upgraded (this did involve renaming the LVM device files in /dev/volgrp/ but no major issue. I did the upgrade a few times before remorring the correct way and again no probs.
Just bear in ming you have no mirror while playing with split volumes.