- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Move data from one PV to another
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
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
тАО01-20-2009 10:12 AM
тАО01-20-2009 10:12 AM
Move data from one PV to another
I had added a new pv to one of the VG, and then extended the filesystem. This filesystem contains the Oracle database dbf file. Now, I want to delete that particular pv due to some issue. When I do a pvdisplay -v, I see most of the PE in that PV is occupied. After I extended the filesystem, the database tablespace was not extended. So, I feel there would not be any database related data on that. But, I am not sure.
Can anyone suggest me the best way to remove that particular pv without corrupting the database or the filesystem.
Thanks & Best Regards
Rajesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2009 10:21 AM
тАО01-20-2009 10:21 AM
Re: Move data from one PV to another
Use pvmove and move all PEs of new PV to the existing HDDs or else add a new HDD and move it to the new HDD.
And after that you can remove the new PV from the VG.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2009 10:26 AM
тАО01-20-2009 10:26 AM
Re: Move data from one PV to another
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1306218
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2009 10:27 AM
тАО01-20-2009 10:27 AM
Re: Move data from one PV to another
In order to move all PEs from C0t1d0 to the PVs c0t2d0 and c0t3d0
#pvmove /dev/dks/c0t1d0 /dev/dsk/c0t2d0 /dev/dsk/c0t3d0
and remove the PV from VG using vgreduce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2009 11:02 AM
тАО01-20-2009 11:02 AM
Re: Move data from one PV to another
pvmove is a command that can surely serve the purpose but once if this gets interrupted in between it can lead the source and the destination both in an inconsistent state for sure and the data will surely be gone.
Make sure that u have the full backup and a reliable one for that filesystem before u can give a try to pvmove.
As this conatins dbf files, i will suggest u to do a tape backup using fbackup /tar etc and umount the filesys,remove old LV, create new LV using lvrecreate , mount the LV and restore the data.
Mkae sure that u have a reliable backup before u do a lvrmove and recreate the LV.
that is anyway a safe way of doing that.
Regards
sujit