- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Move File system to new vg
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-30-2009 08:34 AM
05-30-2009 08:34 AM
Move File system to new vg
I would like to move /u0 below to a new and bigger vg vg01. What is the best way of doing this using LVM commands?
/dev/vgora/oralv1 79872000 78678481 1127941 99% /u0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2009 08:45 AM
05-30-2009 08:45 AM
Re: Move File system to new vg
1) create a new LV in your new VG,
2) mount it as /u0new (or something),
3) copy/move the data from /u0 to /u0new,
4) umount /u0 and /u0new the
5) remount your new LV as /u0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2009 08:50 AM
05-30-2009 08:50 AM
Re: Move File system to new vg
Create a new lv on the new vg ,
mount it under different mount point
copy data using any backup tools
once copy is over unmount /uo1 and mount the newly created lvol on /u01
If you looking for any lvm method (like pvmove,mirror)to copy the data across vg ,there is none :-(
Rgds
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2009 09:04 AM
05-30-2009 09:04 AM
Re: Move File system to new vg
No 4 is not completely finished?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2009 09:25 AM
05-30-2009 09:25 AM
Re: Move File system to new vg
4) umount /u0 and /u0new
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2009 11:17 PM
06-02-2009 11:17 PM
Re: Move File system to new vg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2009 11:49 PM
06-02-2009 11:49 PM
Re: Move File system to new vg
if its a offline copying of date you could use dd and if the new LVOL is bigger them extendfs and fsck and everithing should be ok.
if the file are smaller to 2 GB them you could use find + cpio combination.
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2009 04:24 AM
06-10-2009 04:24 AM
Re: Move File system to new vg
>>I would like to move /u0 below to a new and bigger vg vg01. What is the best way of doing this using LVM commands?
Don't do it. Just Add a NEW LUN in vgora then extend oralv1. Procedure is as follows:
1.Assign a new LUN to HOST from SAN
2.insf
3.ioscan -fnC disk
3.pvcreate /dev/rdsk/cxtxdx
where cxtxdx is the new LUN
4.Shutdown your Database.
5.vgextend vgora /dev/rdsk/cxtxdx
6.lvextend -L
7.If you have OnLineJfs then
#fsadm -F vxfs -b
if you don't have OnLineJfs then
#umount /u0
#extendfs -F vxfs /dev/vgora/roralv1
#mount /dev/vgora/oralv1 /u0
#bdf
Thanks
Minhaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2009 04:41 AM
06-10-2009 04:41 AM
Re: Move File system to new vg
1. create new lvol/filesystem
2. mkdir /newu01
3. mount to /newu01
4. cd /u01
5. find . -print -depth | cpio -pdumv /newu01
6. umount /newu01
7. umount /u01
8. modify /etc/fstab to reflect the correct new lovl
9. mount -a to check it works.
You could also use pax:
do steps 1 to 3, then:
pax -rvw /u01 /newu01
then do steps 6 to 9