- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Need to move a physical volume to a volume group
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
10-01-2002 06:10 AM
10-01-2002 06:10 AM
I am under the impression that I can move a physical volume into a volume group even if that disk does have data on it. Am I doing something wrong? or does the disk have to be clean of data. All I am trying to do is to increase the vg00 volume group by moving my other drive into it. I want to keep the data on that drive.
Thank you
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 06:16 AM
10-01-2002 06:16 AM
Re: Need to move a physical volume to a volume group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 06:16 AM
10-01-2002 06:16 AM
Re: Need to move a physical volume to a volume group
You could:
backup your filesystem
remove the LV
remove the new VG that is on the disk
then pvcreate it again
then vgextend vg00 with the new disk
create your LV
restore your filesystem to the new LV
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 06:17 AM
10-01-2002 06:17 AM
Solution# vgchange -a n /dev/vg08
==> Deactivate vg08.
# vgexport /dev/vg08
==> Export vg08, this is a quick way to remove vg08 from the OS.
# strings /etc/lvmtab
==> Double check and you should not see vg08 anymore.
Now to re-use that disk on vg00 ..
# pvcreate -f /dev/rdsk/c0t8d0
==> Force it with "-f".
# vgextend /dev/vg00 /dev/dsk/c0t8d0
...
continue with the rest of the steps ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 06:20 AM
10-01-2002 06:20 AM
Re: Need to move a physical volume to a volume group
You need to remove the physical volume from the already created volume group before adding it to another.
vgextend - extend an LVM volume group by adding physical volumes
They must not already be in another vg.
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 06:21 AM
10-01-2002 06:21 AM
Re: Need to move a physical volume to a volume group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 06:21 AM
10-01-2002 06:21 AM
Re: Need to move a physical volume to a volume group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 06:21 AM
10-01-2002 06:21 AM
Re: Need to move a physical volume to a volume group
You might be thinking of the 'pvmove' command. It will move PEs from one disk to another, but the disks have to be in the same volume group. You'll have to follow these other suggestions to be able to use this disk in your vg00.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 06:23 AM
10-01-2002 06:23 AM
Re: Need to move a physical volume to a volume group
If you want to add /dev/dsk/c0t8d0 to vg00, you will first need to eliminate it as a member of its current volume group. If, too, there is a logical volume with a filesystem on it that you want to preseve, you are going to have to back that data up and restore it. If you don't want to maintain the data currently present, you don't have to do anything special.
If /dev/dsk/c0t8d0 is the *only* disk comprising the volume group (call it vgXX), then do:
# vgexport /dev/vgxx
# pvcreate -f /dev/dsk/c0t8d0
# vgextend vg00 /dev/dsk/c0t8d0
If /dev/dsk/c0t8d0 is only one member of more than one disk comprising the volume group, do:
# lvremove /dev/vgXX/lvolX #...for every logical volume on /dev/dsk/c0t8d0
# vgreduce vgXX /dev/dsk/c0t8d0
# pvcreate -f /dev/dsk/c0t8d0
# vgextend vg00 /dev/dsk/c0t8d0
In either case, if there is data you want to save, backup that data beforehand and restore it afterwards. Remember to update your 'etc/fstab' apppropriately.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 08:32 AM
10-01-2002 08:32 AM
Re: Need to move a physical volume to a volume group
Sorry for the trouble
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 08:49 AM
10-01-2002 08:49 AM
Re: Need to move a physical volume to a volume group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 08:54 AM
10-01-2002 08:54 AM
Re: Need to move a physical volume to a volume group
Before you can run 'vgchange -a n vgXX' you must unmount all filesystems on logical volumes of the volume group.
Make sure, too, that you are not CD'ed into a mountpoint. You won't be able to unmount it.
You can use 'fuser' to display users of a mountpoint that is giving you trouble and/or use 'fuser' to kill processes holding files open on a mountpoint.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 09:33 AM
10-01-2002 09:33 AM
Re: Need to move a physical volume to a volume group
A PV will belong to only one VG. So if you have already created a vg on the disk and you now want to move the pv to another vg, you have to remove the current vg on the disk and then extend the other vg to this disk. Doing this will erase all data on the pv. so take a backup of the data on the disk, remove the lv and the vg and then extend vg00 to include this pv and recreate lv and restore data. There is no other way.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2002 04:35 PM
10-02-2002 04:35 PM