- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to create a Striped Mirror logical volume
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
01-27-2008 06:44 AM
01-27-2008 06:44 AM
How to create a Striped Mirror logical volume
I'm trying to create a striped and mirrored logical volume. I already installed PHCO_36746 with dependencies, this patch should enable HP-UX 11.23 for doing this.
http://www12.itrc.hp.com/service/cki/patchDocDisplay.do?patchId=pdb_na-PHCO_36746-1
But I'm still getting this error:
lvcreate -l 2 -i 2 -I 64 -m 1 /dev/vg02
Not allowed to create a striped and mirrored logical volume.
Install the "16TB LV and Striped Mirror feature enabling patch", to enable this feature.
It would be very nice if someone can help on this.
Thanks
Ralph
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2008 07:32 AM
01-27-2008 07:32 AM
Re: How to create a Striped Mirror logical volume
LVM doesn't really do what you want it to do.
You can fake it out and achieve the same effect by doing the following:
1) lvcreate
2) Writing a script to do a rotating lvextend among the various disks. Charles Keenan has a good example in his book HP-UX CSE.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2008 07:32 AM
01-27-2008 07:32 AM
Re: How to create a Striped Mirror logical volume
Did you install both PHCO_36744 and PHKL_36745 too?
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2008 07:33 AM
01-27-2008 07:33 AM
Re: How to create a Striped Mirror logical volume
LVM doesn't really do what you want it to do.
You can fake it out and achieve the same effect by doing the following:
1) lvcreate
2) Writing a script to do a rotating lvextend among the various disks. Charles Keenan has a good example in his book HP-UX CSE.
You may also be missing mirror/ux which is probably required to pull this off. mirror-ux is a pay for add in product.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2008 07:35 AM
01-27-2008 07:35 AM
Re: How to create a Striped Mirror logical volume
yes, I already double checked. I have installed these two also.
Thanks
Ralph
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2008 07:40 AM
01-27-2008 07:40 AM
Re: How to create a Striped Mirror logical volume
MirrorUx is also installed on this system. I will have a look into the CSE book on Monday.
But I think or hope it's possible to get a striped/mirrored lvol with the specific patch.
Thanks
Ralph
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2008 01:32 PM
01-28-2008 01:32 PM
Re: How to create a Striped Mirror logical volume
~hope it helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2008 01:44 PM
01-28-2008 01:44 PM
Re: How to create a Striped Mirror logical volume
The other question is - if you have the need for both mirroing and striping - then why do both logically?
IE - why not do hardware mirroing instead?
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2008 01:58 PM
01-28-2008 01:58 PM
Re: How to create a Striped Mirror logical volume
I concur with Geoff but apparently PHCO_36746 makes it happen. The patch database does not have enough information on how it is done. At the very least it should take a minimum of 4 PVs to create a striped and mirrored lvol. But that's just my 2 cents.
I am very interested in how that patch enables that functionality. Moreover it is better to have hardware based striping and mirroring (which is provided by most of the high end arrays like the XP storage line).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2008 05:24 AM
01-29-2008 05:24 AM
Re: How to create a Striped Mirror logical volume
Sandman said you would need at least 4 PVs for your command to work. However, reading the lvcreate manpage after installing the patches reveals that your vg would need at least 5 (!) PVs to to that.
I am currently looking for 5 disks, will let you know....
Regards,
Bernhard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2008 05:48 AM
01-29-2008 05:48 AM
Re: How to create a Striped Mirror logical volume
The system (Integrity RX6600) contains 16 harddisk. The SAS controllers are able to create a HW Raid, but I would really like to use Software Raid 10 with LVM.
The volumegroup vg02 contains six PVs.
I tried this command to have more then 4 PVs in the lvol:
Stripes 3
Mirror 1
lvcreate -l 2 -i 3 -I 64 -m 1 /dev/vg02
Not allowed to create a striped and mirrored logical volume.
Install the "16TB LV and Striped Mirror feature enabling patch",
to enable this feature.
But I recivied the same error..., swlist says I have installed the required patch.
swlist -l patch PHCO_36746
# Initializing...
# Contacting target "xxxxxx"...
#
# Target: xxxxxx:/
#
# PHCO_36746 1.0 LVM Striped/Mirror + 16TB LV Enablement
# PHCO_36746.LVM-RUN 1.0 LVM.LVM-RUN applied
Thanks
Ralph
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2008 05:56 AM
01-29-2008 05:56 AM
Re: How to create a Striped Mirror logical volume
I do have 5 disks now i my dummy_vg but I still get the same error as you do....
also when doing this in two steps and with or without PVGs...
Bad luck, there must be some switch to flick...
Regards,
Bernhard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2008 07:28 AM
01-29-2008 07:28 AM
Re: How to create a Striped Mirror logical volume
One question and one request for confirmation:
Have you tried creating the configuration using '-L
Everythihg would seem to be otherwise correct (all patches applied, etc.). It would also be "nice" to confirm that all three patches are configured:
# swlist -a state PHCO_36744 PHKL_36745 PHCO_36746
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2008 08:52 AM
01-29-2008 08:52 AM
Re: How to create a Striped Mirror logical volume
Everything looks good:
swlist -a state PHCO_36744 PHKL_36745 PHCO_36746
# Initializing...
# Contacting target "xxxxx"...
#
# Target: xxxxx:/
#
# PHCO_36744
PHCO_36744.LVM-ENG-A-MAN configured
PHCO_36744.LVM-MIRROR-RUN configured
PHCO_36744.LVM-RUN configured
PHCO_36744.UX-FRE-I-MSG configured
PHCO_36744.UX-FRE-U-MSG configured
PHCO_36744.UX-GER-I-MSG configured
PHCO_36744.UX-GER-U-MSG configured
PHCO_36744.UX-ITA-I-MSG configured
PHCO_36744.UX-ITA-U-MSG configured
PHCO_36744.UX-JPN-E-MSG configured
PHCO_36744.UX-JPN-S-MSG configured
PHCO_36744.UX-JPN-U-MSG configured
PHCO_36744.UX-KOR-E-MSG configured
PHCO_36744.UX-KOR-U-MSG configured
PHCO_36744.UX-SCH-H-MSG configured
PHCO_36744.UX-SCH-U-MSG configured
PHCO_36744.UX-SPA-I-MSG configured
PHCO_36744.UX-SPA-U-MSG configured
PHCO_36744.UX-TCH-B-MSG configured
PHCO_36744.UX-TCH-E-MSG configured
PHCO_36744.UX-TCH-U-MSG configured
# PHCO_36746
PHCO_36746.LVM-RUN configured
# PHKL_36745
PHKL_36745.CORE2-KRN configured
PHKL_36745.LVM-KRN configured
Also the size option does'nt work:
lvcreate -L 2048 -i 3 -I 64 -m 1 /dev/vg02
Not allowed to create a striped and mirrored logical volume.
Install the "16TB LV and Striped Mirror feature enabling patch",
to enable this feature.
Thanks a lot.
Ralph
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2008 09:24 AM
01-29-2008 09:24 AM
Re: How to create a Striped Mirror logical volume
The only other thing I could see would be to create 2 physical volume groups and then set the PVG-strict option for mirroring.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2008 11:10 AM
01-29-2008 11:10 AM
Re: How to create a Striped Mirror logical volume
# swlist -a software_spec -l fileset PHCO_36746
# ll /opt/lvm/.LargeLVStripeMirror
as ".LargeLVStripeMirror" is the file supposedly installed by the patch.
~cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2008 11:29 AM
01-29-2008 11:29 AM
Re: How to create a Striped Mirror logical volume
swlist -a software_spec -l fileset PHCO_36746
# Initializing...
# Contacting target "xxxxx"...
#
# Target: xxxxx:/
#
# PHCO_36746 PHCO_36746,l=/,r=1.0,a=HP-UX_B.11.23_IA/PA,v=HP
PHCO_36746.LVM-RUN PHCO_36746.LVM-RUN,l=/,r=1.0,a=HP-UX_B.11.23_IA/PA,v=HP,fr=1.0,fa=HP-UX_B.11.23_IA
ll /opt/lvm/.LargeLVStripeMirror
-r--r--r-- 1 bin bin 128 Dec 17 21:35 /opt/lvm/.LargeLVStripeMirror
I have opened a support case, I will keep you posted.
Thanks
Ralph
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2008 12:00 PM
01-29-2008 12:00 PM
Re: How to create a Striped Mirror logical volume
Are all the 6 PVs that make up /dev/vg02 volume group empty? And have you tried creating an lvol with 2 stripes instead of 3 stripes i.e.
# lvcreate -I 64 -m 1 -i 2 vg02
...and as suggested see if you can do extend-based mirrored stripes by using PVGs. Do a man on lvmpvg(4) for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2008 12:17 PM
01-29-2008 12:17 PM
Re: How to create a Striped Mirror logical volume
The volume group vg02 is totally empty:
vgdisplay -v vg02
--- Volume groups ---
VG Name /dev/vg02
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 0
Open LV 0
Max PV 16
Cur PV 6
Act PV 6
Max PE per PV 4375
VGDA 12
PE Size (Mbytes) 32
Total PE 26244
Alloc PE 0
Free PE 26244
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
Also two stripes are not working:
lvcreate -I 64 -m 1 -i 2 -L 2048 vg02
Not allowed to create a striped and mirrored logical volume.
Install the "16TB LV and Striped Mirror feature enabling patch",
to enable this feature.
I will have a look on PVGs, maybe this is also a solution for me.
Thanks
Ralph
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2008 12:58 PM
01-29-2008 12:58 PM
Re: How to create a Striped Mirror logical volume
Lets say I create this configuration:
VG /dev/vg02
PVG pvg0
/dev/dsk/c0t1d0
/dev/dsk/c0t2d0
/dev/dsk/c0t3d0
PVG pvg1
/dev/dsk/c1t1d0
/dev/dsk/c1t2d0
/dev/dsk/c1t3d0
If I create an lvol then the extends will be distributed over the pvols. That looks for me as a "normal" mirror Raid 1. But I want to create Raid01 or Raid10 lvols.
Ralph
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2008 01:16 PM
01-29-2008 01:16 PM
Re: How to create a Striped Mirror logical volume
The option must be activated:
export LVM_CONFIGURE=1; lvmadm -i LargeLVStripeMirror; krs_flush
Now everything is working:
lvcreate -L 90 -i 3 -I 64 -m 1 /dev/vg02
Warning: rounding up logical volume size to extent boundary at size "96" MB.
Logical volume "/dev/vg02/lvol1" has been successfully created with
character device "/dev/vg02/rlvol1".
Logical volume "/dev/vg02/lvol1" has been successfully extended.
Volume Group configuration for /dev/vg02 has been saved in /etc/lvmconf/vg02.conf
lvdisplay -v /dev/vg02/lvol1
--- Logical volumes ---
LV Name /dev/vg02/lvol1
VG Name /dev/vg02
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule striped
LV Size (Mbytes) 96
Current LE 3
Allocated PE 6
Stripes 3
Stripe Size (Kbytes) 64
Bad block on
Allocation strict
IO Timeout (Seconds) default
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c1t6d0 1 1
/dev/dsk/c1t5d0 1 1
/dev/dsk/c1t4d0 1 1
/dev/dsk/c2t6d0 1 1
/dev/dsk/c2t5d0 1 1
/dev/dsk/c2t4d0 1 1
--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c1t6d0 00000 current /dev/dsk/c2t6d0 00000 current
00001 /dev/dsk/c1t5d0 00000 current /dev/dsk/c2t5d0 00000 current
00002 /dev/dsk/c1t4d0 00000 current /dev/dsk/c2t4d0 00000 current
Thanks to all
Ralph
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2008 01:22 PM
01-29-2008 01:22 PM
Re: How to create a Striped Mirror logical volume
lvcreate -L 100 -i 2 -I 64 -m 1 -s g /dev/vg02
Your LV would hopefully be created as a stripe across 2 disks, hopefully in one PVG and then mirrored to the other PVG.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2008 01:24 PM
01-29-2008 01:24 PM
Re: How to create a Striped Mirror logical volume
Very good! Where is the 'lvmadm' that you posted, documented? Did the response center offer this?
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2008 01:29 PM
01-29-2008 01:29 PM
Re: How to create a Striped Mirror logical volume
Yes, the HP Support Center offered this additional information. It's not documented in the Patch description.
Ralph
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2008 01:32 PM
01-29-2008 01:32 PM
Re: How to create a Striped Mirror logical volume
That is a major oversight on HP's part.