HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Moving a LV to a new partition - how to?
Operating System - HP-UX
1834557
Members
3664
Online
110069
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
02-19-2008 02:38 PM
02-19-2008 02:38 PM
This is 11.23
I have this partition /var/opt/OV/share/log that has a LV mounted on it.
I found out that /var/opt/OV/share grows more than ~/log and would like to make that the mount point for the 6GB Logical Volume.
Another possibility is to make /var/opt/OV the mount point for the logical volume.
Am I correct in thinking that I all have to do is stop the application, unmount the Lvol and then mount it on the new mount point /var/opt/OV?
How do I prevent data loss?
I have this partition /var/opt/OV/share/log that has a LV mounted on it.
I found out that /var/opt/OV/share grows more than ~/log and would like to make that the mount point for the 6GB Logical Volume.
Another possibility is to make /var/opt/OV the mount point for the logical volume.
Am I correct in thinking that I all have to do is stop the application, unmount the Lvol and then mount it on the new mount point /var/opt/OV?
How do I prevent data loss?
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2008 05:44 PM
02-19-2008 05:44 PM
Solution
Whatever you do, you have to stop the app so that you are able to mount and unmount.
Lets say /var/opt/OV is your new mountpoint.
1) If you are going to keep ~/log as its own mountpoint, unmount ~/log temporarily so that you don't duplicate its contents.
2) Create a new lvol for ~OV
3) mv /var/opt/OV /var/opt/OV-folder
4) mount new lvol as /var/opt/OV and ensure its owner/group/mode are the same as those of ~OV-folder
5) Copy the ~OV-folder to ~OV by using
cd /var/opt/OV-folder
tar cf - . | ( cd /var/opt/OV ; tar xf - )
6) mount ~/log
7) start the app and check if OK
8) delete the ~/OV-folder
Lets say /var/opt/OV is your new mountpoint.
1) If you are going to keep ~/log as its own mountpoint, unmount ~/log temporarily so that you don't duplicate its contents.
2) Create a new lvol for ~OV
3) mv /var/opt/OV /var/opt/OV-folder
4) mount new lvol as /var/opt/OV and ensure its owner/group/mode are the same as those of ~OV-folder
5) Copy the ~OV-folder to ~OV by using
cd /var/opt/OV-folder
tar cf - . | ( cd /var/opt/OV ; tar xf - )
6) mount ~/log
7) start the app and check if OK
8) delete the ~/OV-folder
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2008 08:43 AM
02-20-2008 08:43 AM
Re: Moving a LV to a new partition - how to?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2008 07:22 PM
02-20-2008 07:22 PM
Re: Moving a LV to a new partition - how to?
maybe I am missing something but if the mount points are logical volumes in the same volume group you can use
fsadm -F vxfs -b 5000M /var/opt/OV/share/log
(reduce size of file system)
lvreduce -L 5000 /dev/vgxx/lvolxx
then extend the logical volume with the other mount point and extend the filesystem.
THis is what online jfs is for
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP