- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Striping plus mirror with LVM
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
тАО04-09-2003 07:11 AM
тАО04-09-2003 07:11 AM
Striping plus mirror with LVM
In a case with two FC10 I want to create striped logical volumes on disks on FC10 "A" and then to mirror that logical volumes on disks on FC10 "B".
For instance:
vgcreate /dev/vgname (disks on FC10 "A")
lvcreate -i X ... (X - number of disks that included in the "vgname")
Next step,
vi /etc/lvmpvg
VG /dev/vgname
PVG FC10A
(list of disks on FC10 "A")
PVG FC10B
(list of disks on FC10 "B")
then
lvextend -m 1 -s g ....
Is it possible? Is it correct?
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2003 07:52 AM
тАО04-09-2003 07:52 AM
Re: Striping plus mirror with LVM
To get striping and mirroring together you have to use the extent-based distributed striping. Have a look at the '-D' option to lvcreate.
'man lvcreate' for more information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2003 07:58 AM
тАО04-09-2003 07:58 AM
Re: Striping plus mirror with LVM
Nope, sorry.
Patrick's correct.
You'll have to use extent-based striping to utilize mirrors. This has the unfortunate effect of requiring stripe size = extent size. Which is hardly ever optimal. Also requires the use of PVGs (Physical Volume Groups) instead of standard VGs.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2003 12:18 PM
тАО04-09-2003 12:18 PM
Re: Striping plus mirror with LVM
Mirror the cA disks on the cB disks.
cAt6d0 cBt6d0
cAt5d0 cBt5d0
a. cAtTdD disks already exist and lvols already exist.
b. Type commands:
pvcreate /dev/rdsk/cBt6d0 # mirror disks
pvcreate /dev/rdsk/cBt5d0
vgextend vg00 /dev/dsk/cBt6do /dev/dsk/cBt5d0
lvextend -m 1 /dev/vg01/lvol1 /dev/dsk/cBt6d0
lvextend -m 1 /dev/vg01/lvol2 /dev/dsk/cBt6d0
lvextend -m 1 /dev/vg01/lvol3 /dev/dsk/cBt6d0
lvextend -m 1 /dev/vg01/lvol4 /dev/dsk/cBt6d0
lvextend -m 1 /dev/vg01/lvol5 /dev/dsk/cBt6d0
lvextend -m 1 /dev/vg01/lvol6 /dev/dsk/cBt6d0
I NEVER use PVGs. It's just an extra layer of complexity. There may be a reason for them, but I could never figure it out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2003 12:20 PM
тАО04-09-2003 12:20 PM
Re: Striping plus mirror with LVM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2003 05:28 PM
тАО04-09-2003 05:28 PM
Re: Striping plus mirror with LVM
lvcreate -D y -s g -c n -I 1024 ......
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x768fe7613948d5118fef0090279cd0f9,00.html
Man page:
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B9106-90008/B9106-90008_top.html&con=/hpux/onlinedocs/B9106-90008/00/02/208-con.html&toc=/hpux/onlinedocs/B9106-90008/00/02/208-toc.html&searchterms=stripe%7cmirror%7clvcreate&queryid=20030407-193228
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2003 06:03 PM
тАО04-09-2003 06:03 PM
Re: Striping plus mirror with LVM
The stripe size with extent based stripes is taken from the PE-SIZE of the VG. The '-D' option takes one PE from the first drive in the PVG, then next extent from the next drive in the PVG, etc.
The only option you have to control the stripe size with extent-based stripes is to recreate the VG with a different PE-Size.
When creating an extent based mirrored LV you would do it like this:
# lvcreate -L 500 -D y -s g -m 1 /dev/vgwhatever
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2003 10:43 PM
тАО04-09-2003 10:43 PM
Re: Striping plus mirror with LVM
because youve already done most of the setup , I believe you can do the following
1. Create two striped lvols, one on each array.
2. Lvmerge them to create the mirror.
Cheers
Darren
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2003 06:39 AM
тАО04-11-2003 06:39 AM
Re: Striping plus mirror with LVM
This is not possible either.
LVM doesn't support raid 1+0, no matter what way you are trying to set it.
It will let you do the lvmerge but data corruption occurs.
by,
Stefan