- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- pvmove question
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
04-11-2003 11:06 AM
04-11-2003 11:06 AM
pvmove question
pvmove allows us to move a particular logical extends from a vg to a disk that are part of the vg. Why can't pvmove allow us to also
allocate a particular logical from the same vg?
pvmove -n /dev/vg01/lvol4 /dev/dsk/c1t6d0 /dev/vg01/lvol6 /dev/dsk/c3t1d0
anythoughts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2003 11:22 AM
04-11-2003 11:22 AM
Re: pvmove question
lvdisplay -v /dev/vg01/lvol1
PV = /dev/dsk/c1t1d0
lvextend -m 1 /dev/vg01/lvol1 /dev/dsk/c4t4d0
lvreduce -m 0 /dev/vg01/lvol1 /dev/dsk/c1t1d0
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2003 12:11 PM
04-11-2003 12:11 PM
Re: pvmove question
# pvmove -n /dev/vg01/lvol4 /dev/dsk/cXtXdX cZtZdZ
Move the logical volume one at a time. I see you got lvol6 in your command line as well. Separate that out.
Another reason for a failed pvmove is if the destination disk does not have enough extents. You would see the error if that happens after you run the pvmove command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2003 12:12 PM
04-11-2003 12:12 PM
Re: pvmove question
# pvmove -n /dev/vg01/lvol4 /dev/dsk/cXtXdX /dev/dsk/cZtZdZ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2003 12:31 PM
04-11-2003 12:31 PM
Re: pvmove question
the scenarios:
I want to move a particular logical volume in an existing group to a new logical volume with a bigger size, without having to destroy the data on the exisiting logical volume.
That is what i want to know if i can do that.
anythoughts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2003 12:51 PM
04-11-2003 12:51 PM
Re: pvmove question
Ok lets start fresh .. are you refering to all this within the same volume group ? If yes to get you need to lvextend your LV. The pvmove simply moves the extents (re-point if you will) from one disk to another (size of LV remains the same). If no you need to create the new LV in a separate VG and cpio the data over. For exmple I want to create a larger LV (lvol4 - 4GB) in vg02 and then copy from /dev/vg01/lvol4 to /dev/vg02/lvol4.
# lvcreate -L 4000 -n lvol4 /dev/vg02
# newfs -F vxfs /dev/vg02/rlvol4
==> I'm assuming vxfs
# mkdir /temp
# mount /dev/vg02/lvol4 /temp
Now you're ready to copy the data from vg01's lvol4. Make sure the FS is not being accessed (assuming the FS is /data).
# cd /data
# find . -xdev -depth -print | cpio -pudlmv /temp
# vi /etc/fstab
==> Edit your mount table accordingly.
Hopefully that answers your q.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2003 08:10 PM
04-13-2003 08:10 PM
Re: pvmove question
pvmove will not server your purpoes.ou have to use lvextend to increase the size of logical volume first and then you have to extend the File system using extendfs or fsad command.
if you are using Veritas Volume manager you can use single command
vxresize with some swith to increase the size of volume as well as file system online.
Sunil