- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Moving a filesystem to a new PV
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
06-18-2009 12:08 AM
06-18-2009 12:08 AM
i want to move this file system to a new array without many hours of downtime.
i'm thinking to use the following:
1/ Add the new PV to the existing VG (vgextend)
2/ Mirror the LV (lvextend -m 1 /dev/vg/lv newPV)
3/ Waiting for the mirror to complete
4/ Shutdown the application
5/ Reduce the LV (lvreduce -m 0 /dev/vg/lv)
6/ Reduce the VG
7/ import the new PV in a new VG
is that possible? can you help with the commands for step 7
is there a better solution to do that?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2009 12:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2009 12:22 AM
06-18-2009 12:22 AM
Re: Moving a filesystem to a new PV
Procedure than is easy and online
1) pvcreate /dev/rdsk/
2) vgextend /dev/vgtest /dev/dsk/
3) lvextend -m 1 /dev/vgtest/lvol/dev/dsk/
4) lvreduce -m 0 /dev/vgtest/lvol1 /dev/dsk/
5) vgreduce /dev/vgtest dev/dsk/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2009 12:42 AM
06-18-2009 12:42 AM
Re: Moving a filesystem to a new PV
can the pvmove done without a shutdown?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2009 01:20 AM
06-18-2009 01:20 AM
Re: Moving a filesystem to a new PV
Check the details in the man page.
Note: Use nohup with pvmove to avoid any problems if terminal timout/disconnect.
Cheers!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2009 01:21 AM
06-18-2009 01:21 AM
Re: Moving a filesystem to a new PV
Answer to ques number 7.
#mkdir /dev/
#mknod /dev/>new_VG>/group c 63 0xXY0000
make sure that the minor number for the group file that you give is unique on the system.
#vgimport -v /dev/
#vgchange -a y
#vgcfgbackup /dev/
regards
sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2009 01:31 AM
06-18-2009 01:31 AM
Re: Moving a filesystem to a new PV
i guess that vgchgid is required before vgimport. what do you think?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2009 01:41 AM
06-18-2009 01:41 AM
Re: Moving a filesystem to a new PV
>>can the pvmove done without a shutdown?
Yes you can perfrom online
For more information see the man page of pvmove
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2009 02:01 AM
06-18-2009 02:01 AM
Re: Moving a filesystem to a new PV
as you do a vgreduce for that new_PV the VG information from that gets removed, so is the VGiD , that is then it belongs to no VG.
so vgchgid is not required if you wish after vgreduce to add this PV to another VG on the same Machine.
regards
sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2009 10:08 AM
06-18-2009 10:08 AM
Re: Moving a filesystem to a new PV
I think once you do lvreduce with old disk u also need to remove old pv key also
lvdisplay -k lvol
than
lvreduce -m 0 k lvol and key
And PVMOVE yes you can done online not down time is required, as NIDU says use nohup.
Regards
Sanjeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2009 11:04 AM
06-18-2009 11:04 AM
Re: Moving a filesystem to a new PV
One of the first questions I ever asked HP support a long time ago was how to do this.
The answer was to back up the data with fbackup, create a new logical volume and file system and restore it.
Now this thread shows there are other answers.
But before I go dinking around with these hot methods, I take the backup first.
I've a few times used a plan similar to yours knowing a backup is in my pocket.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com