- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How do I add another mirrored pair of PV's to ...
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
тАО03-08-2005 09:41 AM
тАО03-08-2005 09:41 AM
lvol3 Mirror
c1t2d0 c2t2d0
The new configuration would be:
lvol3 Mirror
c1t2d0 c2t2d0
c1t0d0 c2t0d0
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2005 09:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2005 10:03 AM
тАО03-08-2005 10:03 AM
Re: How do I add another mirrored pair of PV's to an exisitng LV
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2005 10:38 AM
тАО03-08-2005 10:38 AM
Re: How do I add another mirrored pair of PV's to an exisitng LV
Here is something you could try, though I'd have a good Ignite backup before I start.
Do a pvdisplay on the original disks and determine what LV follows lvol3. It should be lvol4, but it never hurts to check.
Now, have a look at the pvmove command and try moving /dev/vg00/lvol4 to the other disks . You will have to do this twice since you must do lvol4 from each original PV separately. When that is done you can then try to extend your / LV.
Here are the steps you can try:
# pvmove /dev/vg00/lvol4 /dev/dsk/c1t2d0 /dev/dsk/c1t0d0
pvmove /dev/vg00/lvol4 /dev/dsk/c2t2d0 /dev/dsk/c2t0d0
# lvextend -L new_size_in_MB /dev/vg00/lvol3
# fsadm -b new_sizem /
(for example 'fsadm -b 128m /')
Note that this is just and idea. I HAVE NEVER tried this. Do some research on the commands (ie. read the man pages) before you execute them to make sure I got the syntax correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2005 10:42 AM
тАО03-08-2005 10:42 AM
Re: How do I add another mirrored pair of PV's to an exisitng LV
What you should do first is use vgextend to add the disks to the VG.
# vgextend vg00 /dev/dsk/c1t0d0 /dev/dsk/c2t0d0
Then you can try what I suggested in my reply above if you really want to.
The only real supported way to extend /, /stand and pri. swap is to use Ignite/UX.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2005 02:00 AM
тАО03-09-2005 02:00 AM
Re: How do I add another mirrored pair of PV's to an exisitng LV
At any rate I would still like to know the procedure for mirroring a 4th disk against a 3rd disk in a lvol.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2005 02:06 AM
тАО03-09-2005 02:06 AM
Re: How do I add another mirrored pair of PV's to an exisitng LV
I'm not sure I quite understand what you mean by "mirroring a 4th disk against a 3rd disk in a lvol".
You must remember that physical volumes ARE NOT mirrored. Logical Volumes ARE mirrored.
If you want another mirror copy of a logical volume, you just do an 'lvextend -m 2 /dev/vg??/lvol?? /dev/dsk/c?t?d?'. That will give you 3 copies of the LVOL (the orig. plus 2 mirrors). If you want 4 copies (orig plus 3 mirrors) then you just change the 2 to a 3 in the command above.
The PV must be part of the VG before you do that.
If you want something different, you are going to have to explain a bit more clearly what you want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2005 02:43 AM
тАО03-09-2005 02:43 AM
Re: How do I add another mirrored pair of PV's to an exisitng LV
I think my question was answered but I just wanted to be sure. If you have a lvol that is full and laready mirrored and you add another disk to the volume group:
Befor
lvol3 ===> Mirror
c1t2d0===> c2t2d0
After
lvol3 ===> Mirror
c1t2d0===> c2t2d0
c1t0d0===> c2t0d0
you would:
1. pvcreate your disk
2. vgextend the disk into the volume group
3. lvextend the logical volume
4. lvextend -m 2 /dev/vgxx/lvolx /newdisk
The 4the step is where I was getting confused. I didn't know exactly how to mirror the extended logical volume to a 2nd mirrored disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2005 02:52 AM
тАО03-09-2005 02:52 AM
Re: How do I add another mirrored pair of PV's to an exisitng LV
You generally don't need to worry about the mirroring when extending a logical volume. This is especially true if you have PV-Strict mirroring turned on, which is the default.
When you extend a mirrored LV, LVM will automatically look for the appropriate amount of space so that everything will be extended, the orig and the mirror.
There is nothing else you need to do other than 'lvextend -L New_Size_in_MB /dev/vg??/lvol??'
After that do an 'lvdisplay -v /dev/vg??/lvol??' to see the new layout.
If the admins were spending that much time administering filesystems, then something is wrong with the way the filesystems were originally constructed. One of the problems with a large / volume is just what you are seeing now. You are somewhat limited in how you can grow this LV. Another problem I can see is that if you ever fill this up, accidentally or otherwise, then you are in trouble!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2005 02:59 AM
тАО03-09-2005 02:59 AM
Re: How do I add another mirrored pair of PV's to an exisitng LV
For Logical volume spanning on multiple disks you can do this by PVG strict mirroring and then extend logical volume. Please look at this thread
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=466827