- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Adding disks to a mirrored VG03
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
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
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-07-2002 06:11 AM
тАО06-07-2002 06:11 AM
Here is what I am planning on doing:
#vgextend /dev/vg03/ /dev/dsk/c0t4d0 /dev/dsk/c1t4d0
#lvextend -L 8000 /dev/vg03/lvol1 /dev/dsk/c0t4d0
My question is, will lvm know to mirror to disk c1t4d0 or am I missing a step?
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2002 06:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2002 06:21 AM
тАО06-07-2002 06:21 AM
Re: Adding disks to a mirrored VG03
Yes I believe so, but you should, I think, denote both new devices on the lvextend command line.
To be sure just run a lvdisplay following your lvextend & check the output.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2002 06:22 AM
тАО06-07-2002 06:22 AM
Re: Adding disks to a mirrored VG03
i'd recommend to use:
lvextend -L 8000 /dev/vg03/lvol1 /dev/dsk/c0t4d0 /dev/dsk/c1t4d0
So both disks are known for extending the lvol and mirror will be done though the new disks.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2002 06:36 AM
тАО06-07-2002 06:36 AM
Re: Adding disks to a mirrored VG03
Take backup (for safety)
Reduce the mirror
lvreduce -m 0 /dev/vg03/lvol1 /dev/dsk/
vgreduce /dev/vg03 /dev/dsk/
Add the new disks to the system and pvcreate them.
Now add all disks one by one to the vg and create the PVGs.
vgextend -g PVG1 /dev/vg03 /dev/dsk/
vgextend -g PVG2 /dev/vg03 /dev/dsk/
vgextend -g PVG2 /dev/vg03 /dev/dsk/
If needed edit /etc/lvmpvg and make sure the current disks are in PVG1 and new disks are in PVG2.
make the lvol1 as PVG strict
lvchange -s g /dev/vg03/lvol1
now lvextend as you like.
lvextend -L 8000 /dev/vg03/lvol1 PVG1
lvextend -m 1 /dev/vg03/lvol1 PVG2
Hope it helps you!
You can also design in such way that PVG1 and PVG2 in diffrent controller for redundancy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2002 07:15 AM
тАО06-07-2002 07:15 AM
Re: Adding disks to a mirrored VG03
Fortunately, you can use pvmove to fix things if the extend end up on the wrong volume.
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2002 07:19 AM
тАО06-07-2002 07:19 AM
Re: Adding disks to a mirrored VG03
Lets say this is what you got ..
vg03 (only lvol1)
c0t5d0
c1t5d0 = mirror copy sits here
Now you want to add c0t4d0 and c1t4d0. The idea here is to create 2 PVGs. First lets extend vg03 ..
# vgextend /dev/vg03 /dev/dsk/c0t4d0 /dev/dsk/c1t4d0
# vgdisplay -v vg03
==> check it
# cd /etc
# vi lvmpvg
VG /dev/vg03
PVG PVG0
/dev/dsk/c0t5d0
/dev/dsk/c1t4d0
PVG PVG1
/dev/dsk/c1t5d0
/dev/dsk/c1t4d0
By creating "lvmpvg" file like above will group the 2 sets of disks in a separate PVG.
# vgdisplay -v vg03
==> check it
# lvchange -s g /dev/vg03/lvol1
==> on your existing lvol1 change it's mirroring policy to PVG-strict
# lvextend -L 8000 /dev/vg03/lvol1
==> Now you extend it, that will make sure your mirror copy always reside in PVG1
Going forward if you want to create a new LV, the syntax would be .. (eg: 400MB lvol2)
# lvcreate -L 400 -m 1 -s g -n lvol2 /dev/vg03
==> since you tell it to use PVG-strict mirroring ("-s g"), it'll create the mirror copy on in PVG1
Extending it in the future would just be the plain lvextend command since we have already define this LV to use PVG-strict mirroring when it was created.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2002 07:21 AM
тАО06-07-2002 07:21 AM
Re: Adding disks to a mirrored VG03
VG /dev/vg03
PVG PVG0
/dev/dsk/c0t5d0
/dev/dsk/c0t4d0
PVG PVG1
/dev/dsk/c1t5d0
/dev/dsk/c1t4d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2002 03:20 PM
тАО06-08-2002 03:20 PM
Re: Adding disks to a mirrored VG03
well, I think your plan is fine.
assuming, that the lvol you have is created on 1 disk & mirrored to the second one, while extending your vg by 2 disks, one should be used as primary & the second as mirror.
so, your plan to extend your lvol to only one of disks you've added should effect in:
extending the lvol to the disk you've added in 'lvextend command'
and the mirror should be extended on the second disk.
you can try it by extending your existing lvol by 1 PE, and see the output of 'vgdisplay -v vg03' command.
good luck :)
cheers,
Mariusz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2002 04:58 AM
тАО06-10-2002 04:58 AM
Re: Adding disks to a mirrored VG03
The only hitch was the VG had a strict allocation policy which was easily corrected.
#vgchange -s n /dev/vg03