- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Reverse lvextend
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-22-2004 10:41 PM
тАО11-22-2004 10:41 PM
Or is there a risk the lvreduce will remove part of the original filesystem?
Cheers.
Matt.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2004 10:55 PM
тАО11-22-2004 10:55 PM
Re: Reverse lvextend
There are chances that you will be able to keep you data intact but it is not guranteed. I did it and i had my data intact. But it is always safe to have backup ready. If it works safely you save your restore time. That's all.
All the best.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2004 11:01 PM
тАО11-22-2004 11:01 PM
Re: Reverse lvextend
It's worth a try, I suppose, but make absolutely sure you've got a good backup first. From the man page:
WARNINGS
LVM does not store any information about which physical extents within a logical volume contain useful data; therefore, reducing the space allocated to a logical volume without doing a prior backup of the data could lead to the loss of useful data. The lvreduce command on a logical volume containing a file system of greater length than the size being reduced to will cause data corruption.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2004 11:44 PM
тАО11-22-2004 11:44 PM
Re: Reverse lvextend
First be sure that your filesystem has not been extended by some automatic procedure. Compare bdf and lvdisplay output.
Then lvreduce the LV to the size of your filesystem. This is of no risk since there is actually nothing at all on that portion of the disk.
The lvextend again and fsadm your filesystem.
I have even lvreduced LV's after having to shrink a filesystem with fsadm. All without problem, as long as the new size of lvreduce is not smaller that the size of uyour filesystem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2004 11:49 PM
тАО11-22-2004 11:49 PM
SolutionI will use pvmove instaed of lvreduce and lvextend.This is absolute tested method. suppose you extend /dev/vg00/lvol6 to /dev/dsk/c0t1d0 but you want it to be on /dev/dsk/c0t2d0 then syntax will be like this
#pvmove -n /dev/vg00/lvol6 /dev/dsk/c0t1d0 /dev/dsk/c0t2d0
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2004 11:50 PM
тАО11-22-2004 11:50 PM
Re: Reverse lvextend
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2004 12:38 AM
тАО11-23-2004 12:38 AM
Re: Reverse lvextend
Excellent replies everyone.
I forgot about pvmove, d'oh! Think I'll go with that for now, as it's less scary.
Cheers,
Matt.