- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- 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
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
01-20-2009 09:48 AM
01-20-2009 09:48 AM
move data from one PV to another
I have added a PV to one of my existing VG and extended the filesystem. This filesystem contains the oracle database dbf file. Now I would like to remove that new PV which I added due to some problem with that PV. But when I do a pvdisplay -v, I see most of the physical extents on that PV are used. But the database tablespace was not extended after I extended the filesystem. So, I feel there would not be any data on that PV.
Can anybody suggest me the best way to remove that PV from the VG without corrupting the database or the filesystem. This is a production server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2009 10:05 AM
01-20-2009 10:05 AM
Re: move data from one PV to another
1) You need a cold backup before proceeding.
2) You can not be sure there is no data on the physical volume, if the logical volume and file system were extended you will be wrong.
3) I recommend cold backup, destruction of the entire logical volume, vgreduce the pv from the volume group, lvcreate, lvextend, newfs and restoring a backup.
That methodology may seem harsh and hard. But it does insure you lose no data.
vgreduce -f requires that the logical volume be removed from the second pv, and that can not be done safely with the database running, or any portion of the database on that volume. Even if there is nothing on that pv, you might cause corruption of the logical volume.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2009 11:05 AM
01-20-2009 11:05 AM
Re: move data from one PV to another
the same thread i have replied in there i hope so ... I agree with what SEP has to say ..
please add to that
hello Rajesh,
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2009 12:12 PM
01-20-2009 12:12 PM
Re: move data from one PV to another
can I do the pvmove when the database is up and running?
Thanks
Rajesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2009 03:48 PM
01-20-2009 03:48 PM