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
05-28-2007 03:11 PM
05-28-2007 03:11 PM
swap lvm
I have created vg01, and created some LVMs in vg01. And I have put some data in the following two LVMS and used for some months.
/dev/vg01/lvol4 31457280 /aaa
/dev/vg01/lvol3 819200 /sw
However, I found that the size of /data is too big, while the size of /sw is too small. I want to swap them like the following:
/dev/vg01/lvol4 31457280 /sw
/dev/vg01/lvol3 819200 /aaa
Is it ok if I just swap the mounting point? I am not sure, since there are some data in both LVMS and I don't want to erase them. Can someone advice how to do it? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2007 03:21 PM
05-28-2007 03:21 PM
Re: swap lvm
I think th best way is backup and restore. or copy your data.
you can change your mount point but the disk still same.
thanks
freddy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2007 03:23 PM
05-28-2007 03:23 PM
Re: swap lvm
You wouldn't loose any data, by just swapping the mount points... This would be the sequence of commands for your situation...
umount /aaa
umount /sw
mount /dev/vg01/lvol4 /sw
mount /dev/vg01/lvol3 /aaa
Note: need to update the file /etc/fstab if you want this change permanent across reboots.
But again, swapping the mountpoint will not have any system impact, but be aware that if there were any apps that were referring the data in these FS previously, you need to make those application intelligent of current change.
SK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2007 09:15 PM
05-28-2007 09:15 PM
Re: swap lvm
Thanks for your quick replay. I have swap the two lvm. Your are right, after swap the mounting point, the content need to manually copy and swap again, which is a little troublesome.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2007 05:00 PM
05-29-2007 05:00 PM
Re: swap lvm
as far as i think this is not possible in a live environment..... and also swapping the mounting point is not a solution.....one thing you can do that you take the backup of the data and then rename the LVM.... renaming LVM you can do with mv command. only you have to do is rename both the device files (block & character) then you can erase the existing data and copy the backup data....
all the best....