- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to transfer logical volume to other volume...
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-25-2006 07:46 PM
01-25-2006 07:46 PM
How to transfer logical volume to other volume group
VG02 has /oracle.
I want to transfer /oracle to vg01.
How do I do it?
Pls help, thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2006 07:52 PM
01-25-2006 07:52 PM
Re: How to transfer logical volume to other volume group
1. Set up a new filesystem, e.g. new_oracle, on vg01
2. cd /oracle and run the following command:
find . â xdev â depth â print|cpio â pmd /new_oracle
3. cd /etc and run
vi fstab
Swap oracle and new_oracle.
4. Reboot the system.
I hope it goes without saying that you should take a full data backup and a full ignite backup before you start this.
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2006 09:31 PM
01-25-2006 09:31 PM
Re: How to transfer logical volume to other volume group
Do you want
A. transfer all logical volumes in VG02 to VG01 ?
B. Just one logical volume in VG02 to VG01 ?
C. just rename VG02 to VG01 ?
Other logical volumes in VG01 must be kept or may be removed ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2006 09:48 PM
01-25-2006 09:48 PM
Re: How to transfer logical volume to other volume group
U can not move LV from one VG or another VG.
Create new LV in VG02, and copy or transfer ( Use find,tar or cpio) /oracle files to the new LV.
And then mount the new FS to /oracle mount point.
Regards
Jay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2006 10:18 PM
01-25-2006 10:18 PM
Re: How to transfer logical volume to other volume group
i think below the steps would be a solution for you;
1 -Be sure you have enough PE in VG01
2 -Create new lvol in VG01
3 -Create FS for this new lvol
4 -Mount this Fs something like /new_oracle
5 - cd /oracle
6 -Be sure Oracle DB closed.
7 -in /oracle dir write;
find . |cpio -dumplv /new_oracle
8 -umount /oracle
9 -umount /new_oracle
10-mount /dev/vg01/lvol1 /oracle
11- startup ORACLE DB
12-Check appl-data-connections etc
13-IF OK
14-modify your /fstab
Good Luck,
PS:i did it a month ago!!!
:-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 01:59 AM
01-26-2006 01:59 AM
Re: How to transfer logical volume to other volume group
Shut down apps/oracle...
create new lvol on vg01 same size as oracle on vg02
umount /oracle
mkdir /zoracle
mount /dev/vg02/lvoloracle /zorcal
mount /dev/vg01/lvoracle /oracle
vxdump -0 -f - -s 1000000 -b 16 /zoracle | (cd /oracle ; vxrestore rf -)
When done, ummount /zoracle, remove that lvol, update /etc/fstab
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 02:55 AM
01-26-2006 02:55 AM
Re: How to transfer logical volume to other volume group
/oracle is not a logical volume. Itâ s a mount point for a file system. That file system resides on a logical volume and the logical volume resides in the volume group.
As was stated earlier, you can't "move" a lv from one vg to another, much like you can't move sectors from one hard dirve to another. You can move the data, just not the physical sectors.
So, you can move the data, just not the lv. Do move the data you will have to create a new logical volume in vg01. you can name it what ever you wish, lvoracle works and lets you know whats on the lv too. Create a new file system on the new lv and mount it on an alternated mount point. Cpio the files over (details in previous posts), unmount both file systems and mount your new logical volume on the old mount point /oracle
Double check everything before you erase or delete the old logical volume, something may not have been picked up correctly by cpio or there may be some other issue that may require you to revert back to the old lv for the system to work but that should take care of it for you.
H