- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to change lvols from one vg to another 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
06-12-2003 12:39 AM
06-12-2003 12:39 AM
How to change lvols from one vg to another vg
I need to change lvols from one vg (vg00), to another vg (vg01), with another disk.
What could I do?,
Thanks,
Carmen.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 12:44 AM
06-12-2003 12:44 AM
Re: How to change lvols from one vg to another vg
Regards
Michael
"When I have trouble spelling, it's called fat finger syndrome."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 12:45 AM
06-12-2003 12:45 AM
Re: How to change lvols from one vg to another vg
Sorry, there is no easy method for this.
Share and Enjoy! Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 12:46 AM
06-12-2003 12:46 AM
Re: How to change lvols from one vg to another vg
there is no easy procedure.
option 1- reinstall the server with ignite (i know this takes long...)
option 2- if lvol are not in use, you can umount the lvol, create a new lvol exactly the same size in the vg01, copy with dd using the raw logical volume the content to the new lvol and mount it
if lvol are in use, you may trying going down to maintenance mode or single user...
Why do you want to move the lvol ? If it is for space needings, maybe a search of big files can help.
Can you give more details?
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 12:49 AM
06-12-2003 12:49 AM
Re: How to change lvols from one vg to another vg
I cannot do and vgexport from vg00 and a vgimport to vg01, and after remove the file systems in vg01 than are from so in vg00??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 12:50 AM
06-12-2003 12:50 AM
Re: How to change lvols from one vg to another vg
you will need to create a new lvol and filesystem in vg01, mount it and then copy over the filesystem from vg00 (there should be no changes to the filesystem while you copy it).
finally change /etc/fstab to reflect the change
and remove the unused lvol from vg00.
vg00 is usually the root volume group, which lvol/filesystem do you want to move out?
first check with
fuser -cu /mount_point_of_lvol
whether there are processes that use this filesystem (you will have to stop them)
I assume you are not using the lvol as a raw volume...
Regards,
Bernhard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 12:50 AM
06-12-2003 12:50 AM
Re: How to change lvols from one vg to another vg
#bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 204800 85000 118872 42% /
/dev/vg00/lvol1 295024 70008 195512 26% /stand
/dev/vg00/lvol8 4812800 476872 4302536 10% /var
/dev/vg00/lvol7 2150400 1018816 1122760 48% /usr
/dev/vg00/lvol6 204800 49776 154488 24% /tmp
/dev/vg00/lvol5 2150400 1029016 1112632 48% /opt
/dev/vg00/lvol4 24576 2320 22088 10% /home
/dev/vg00/lv_apps 23560192 13624296 9314905 59% /apps
/dev/vg00/lv_orafin
26624000 92972 26205396 0% /app/orafin
/dev/vg00/lv_ora9 3727360 3625309 95690 97% /app/oracle9
/dev/vg00/lv_ias9 3145728 809949 2189951 27% /app/ias9
And I want to move /apps, /app/orafin, /app/ias9 and /app/oracle9 to vg01.
Could I do this with vgexport and vgimport??
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 12:52 AM
06-12-2003 12:52 AM
Re: How to change lvols from one vg to another vg
Why do you need change vg?
more free space? it??s possible umount this lvol?..
The only way that I know is backup, create the new lvol in the other vg and restore
Regards
Jorge
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 12:53 AM
06-12-2003 12:53 AM
Re: How to change lvols from one vg to another vg
Exporting a vg means export all the configuration, so if you import vg00 into vg01, then you'd lost vg01 configuration.
There is no other solutions as mentined.
Regards, Vicente.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 12:55 AM
06-12-2003 12:55 AM
Re: How to change lvols from one vg to another vg
We need to see if the unwanted volumes are on a separate disk.
Please post a copy of :
# vgdisplay -v /dev/vg00
for each volume you wish to move
# lvdisplay -v /dev/lv_ora9
Regards
Michael
"When I have trouble spelling, it's called fat finger syndrome."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 01:07 AM
06-12-2003 01:07 AM
Re: How to change lvols from one vg to another vg
If you have space enought in vg01 you can do:
- rename mount directories to name.old.
- create the new volumes in vg01 with the original mount names (/apps...)
- copy from apps.old to apps and the same for other lvols.
- verify results.
- delete old vg00 lvols.
Regards, Vicente.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 03:05 AM
06-12-2003 03:05 AM
Re: How to change lvols from one vg to another vg
I.E. you can export a vg, and hence remove its entries in /etc/lvmtab, the /dev/vg... directory, the group file.
You can then re-create the /dev/vg(x)/group , and vgimport as anothe name, but the contetns will be the same.
You can't vgexport vg00.
So yes, the only way is to copy.
use
#cd dir_to_copy_from
#find .| cpio -pdumv dir_to_copy_to
Rgds Jarle