- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: lvextend pain
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
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
тАО11-17-2005 06:00 AM
тАО11-17-2005 06:00 AM
lvextend pain
I very absent-mindedly did an lvextend on a logical volume that was still mounted! The lv was not extended, but if I do a vgdisplay I see that the extents have been used up! how can I reverse what I've done?
I've thought of lvreducing the logical volume and then re-extending it. I realise I'll probably end up having to go to backup tapes to restore the data.
Before I try this I was hoping that someone could confirm that this is the way to go, of if someone can suggest a better way.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2005 06:07 AM
тАО11-17-2005 06:07 AM
Re: lvextend pain
I think you mean that you *did* the 'lvextend' on the logical volume, but did *not* exten the file system.
If that is the case, you should be able to 'lvreduce' the logical volume back to its original size without harm.
As insurance, of course, be sure to backup the filesystem that lives in the logical volume beforehand!
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2005 06:15 AM
тАО11-17-2005 06:15 AM
Re: lvextend pain
I think you're right. I did lvextend -L 20000 /dev/vg02/lvol1
Can I not just do the extendfs command now?
Do I have to first reduce?
Kevin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2005 06:16 AM
тАО11-17-2005 06:16 AM
Re: lvextend pain
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2005 06:23 AM
тАО11-17-2005 06:23 AM
Re: lvextend pain
Again, if I understood you, and you mean that you 'lvextend'ed the wrong logical volume, and thus you want to reclaim the phyical extents it took, then read my first post.
If you mis-sized the logical volume too large, you can also 'lvreduce' it to a smaller size, AS LONG AS you do not reduce it smaller than the size of the fileystem it contains. Then extend the filesystem.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2005 07:08 PM
тАО11-17-2005 07:08 PM
Re: lvextend pain
The extends have not been used since you did not extend the filesystem yet, so lvreducing should be OK if you need these extends for another LV. If you would like to extend this FS then this could be done on-line when you have onlineJFS installed using "fsadm -F vxfs -b ........" (see man fsadm_vxfs) [if this is a vxfs-FS) If no onlineJFS is available then the only option is unmounting the filesystem and use "extendfs ....."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2005 07:56 PM
тАО11-17-2005 07:56 PM
Re: lvextend pain
After unmounting and doing the extendfs all was well in the world once again.
Thanks again for all the replies
Kevin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2005 07:57 PM
тАО11-17-2005 07:57 PM