- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Pvmove is online
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
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
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
02-16-2017 01:09 PM
02-16-2017 01:09 PM
Pvmove is online
Can pvmove be done online?
Planning to move the data from no. of disks to single disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2017 04:45 AM
02-17-2017 04:45 AM
Re: Pvmove is online
It can be used online (except the VG is shared - see man page), but it can get tricky.
I prefer a mirror/unmirror procedure.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2017 11:35 AM
02-17-2017 11:35 AM
Re: Pvmove is online
Below steps sounds ok:
# pvcreate /dev/rdisk/disknew ==> new disk
# vgextend vgname /dev/disk/disknew
# lvextend -L 74120 /dev/vgname/lvname ==> double the disk space of lvm
# lvextend -m 1 /dev/vgname/lvname ==> mirror
# lvreduce -m 0 /dev/vgname/lvname /dev/disk/diskold
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2017 11:37 AM
02-17-2017 11:37 AM
Re: Pvmove is online
But the above steps performed and got the following:
PV Name LE on PV PE on PV
/dev/disk/disk34 10 10
/dev/disk/disk35 10 10
/dev/disk/disk36 10 10
/dev/disk/disk37 10 10
/dev/disk/disk38 10 10
/dev/disk/disk39 9 9
/dev/disk/disk40 9 9
/dev/disk/disk41 9 9
/dev/disk/disk42 9 9
/dev/disk/disk43 9 9
/dev/disk/disk131 1641 1641
/dev/disk/disk136 581 581
disk131 and disk136 are new, so I thought when I mirrored and then removed disk34-43, still not removed. Goal to is move all the lvm data from 10 disks to new disks disk131 and disk136. Help is appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2017 01:56 PM
02-17-2017 01:56 PM
Re: Pvmove is online
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2017 11:28 AM
02-20-2017 11:28 AM
Re: Pvmove is online
if you have a mirror license, then use lvextend and lvreduce. In other case, use pvmove.
But if the destination is only one disk, then pvpaths must be indicated in lvextend. Same for lvreduce.
Example:
lvextend -m 1 /dev/vgxx/lvolxxx /dev/disk/diskx /dev/disk/disky ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2017 06:14 AM
02-21-2017 06:14 AM
Re: Pvmove is online
@Torsten., if I don't use lvextend -L, how can I extend the space for that logical volume? Since there are 2 other lvms in that VG...
# pvcreate /dev/rdisk/disknew ==> new disk
# vgextend vgname /dev/disk/disknew
# lvextend -L 74120 /dev/vgname/lvname ==> double the disk space of lvm ==== ignore this step and proceed next??
# lvextend -m 1 /dev/vgname/lvname ==> mirror
# lvreduce -m 0 /dev/vgname/lvname /dev/disk/diskold
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2017 06:20 AM
02-21-2017 06:20 AM
Re: Pvmove is online
@RogerVI, so should do the following steps?
# pvcreate /dev/rdisk/disknew ==> new disk
# vgextend vgname /dev/disk/disknew
# lvextend -L 74120 /dev/vgname/lvname
# lvextend -m 1 /dev/vgname/lvname /dev/disk/disknew /dev/disk/disknew1 ==> mirror
# lvreduce -m 0 /dev/vgname/lvname /dev/disk/diskold /dev/disk/diskold1 ==> removing old disks
Please suggest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2017 06:21 AM
02-21-2017 06:21 AM
Re: Pvmove is online
For mirroring you need empty space inside the VG.
If you extend the LVOL size, there is no more space for mirroring.
So don't do this step.
With
# lvextend -m 1 /dev/vgname/lvname ==> mirror
you specify which LVOL to mirror to which disk.
To handle a large number of disks, you should use lvmpvg - with this group definition you specify to mirror from group of disks 1 to the other group (even if one group has only a single disk) -- many to one).
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2017 06:53 AM - edited 02-21-2017 08:33 AM
02-21-2017 06:53 AM - edited 02-21-2017 08:33 AM
Re: Pvmove is online
In order to mirror an lvol that resides on several disks (disk1..disk4 in this example) you create a physical volume group
definition like this:
create a text file
/etc/lvmpvg
with this contents:
VG /dev/vg01
PVG PVG0
/dev/disk/disk1
/dev/disk/disk2
/dev/disk/disk3
/dev/disk/disk4
PVG PVG1
/dev/disk/disk5
Before mirroring a LV you need to set it’s allocation policy to PVG-strict, e.g:
# lvchange -s g /dev/vg01/lvol1
/usr/sbin/lvextend [-A autobackup] {-l le_number | -L lv_size | -m mirror_copies} lv_path [pv_path ... | pvg_name ...]
Then you create the physical volume, extend the VG and finally mirror the LVOL:
# pvcreate /dev/rdisk/disk5
# vgextend vg01 /dev/disk/disk5
# lvextend -m 1 /dev/vg01/lvol1 PVG1
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!