- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Logical volume mirrir and strip
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
05-10-2001 07:09 AM
05-10-2001 07:09 AM
Logical volume mirrir and strip
i have 4 disks in a vol grp of equal sizes 2mb each, with one logical volume of 3mb size which is stiped across first two disks. I want to mirror(along with strip) the above logical volume on to two other two disks. Can someone sugget me how to go about.
tots
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2001 07:20 AM
05-10-2001 07:20 AM
Re: Logical volume mirrir and strip
You can mirror and strip with "extent-based mirrored strips". A good discussion is actually in the man pages for 'lvcreate'. There is a detailed example at the end.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2001 07:20 AM
05-10-2001 07:20 AM
Re: Logical volume mirrir and strip
What you can use is the '-D' option to lvcreate which creates the lv as a distributed lv. A distributed lv basically does striping, but it is extent based striping. This means that when the lv is created the first extent is put on disk1, the second extent on disk2, the third on disk1, etc until your lv is created.
To create a distributed lv, your disks MUST be in a PVG (physical volume group). This can be done when the VG is created, or can be done later by editing the /etc/lvmpvg file (do a 'man lvmpvg' for more info.).
When using the -D to create a distributed LV, you CAN then use -m to create a mirror. I think you also have to use the '-s g' option so that your mirror will be PVG-strict.
Here is the full command you can use to create a distributed, mirrored LV:
lvcreate -L20 -D y -s g -m 1 -n name /dev/vg02
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2001 07:31 AM
05-10-2001 07:31 AM
Re: Logical volume mirrir and strip
You can use following command.
#lvextend -m
here physical device is optional. But be sure about your physical volume sizes it can not be in Mbs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2001 07:41 AM
05-10-2001 07:41 AM
Re: Logical volume mirrir and strip
I am sorry. I could get it now you r looking for RAID 1 + 0 setup .I agree with patrick.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2001 08:20 AM
05-10-2001 08:20 AM
Re: Logical volume mirrir and strip
JRF, Patrick and Rajeev you all gave food for my thought. I was thinking about using -i & -I option with lvcreate for contolling striping. Any suggestion for this.
tots
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2001 08:24 AM
05-10-2001 08:24 AM
Re: Logical volume mirrir and strip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2001 08:32 AM
05-10-2001 08:32 AM
Re: Logical volume mirrir and strip
Then how am i going to control the size of the strip. Oops.
I would have tried it but short of system to check on.
tots
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2001 08:39 AM
05-10-2001 08:39 AM
Re: Logical volume mirrir and strip
Have a look at the man page for lvcreate and read the section that talks about the '-D' option. There is lots of good information there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2001 03:28 AM
05-11-2001 03:28 AM
Re: Logical volume mirrir and strip
Striping with 1MB (minimal extend size or worse the default 4MB size) is not recommended by storage experts. Striping should be done with pieces of 2-64KB blocks, anything bigger is a waste of resources. Therefore, even using the -I option to 1MB and than (manually!) assigning the extends to the disks will not help.
If you want to be save, just mirror the disks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2001 04:49 PM
05-17-2001 04:49 PM
Re: Logical volume mirrir and strip
If you haven't got the answer you are looking then here it is:
-> You need to recreate your VG,LVs for doing this.
Add /etc/lvmpvg file with the disk names. See man pages of lvmpvg for the syntax. Create two PVG with teo disks each ( say PVG1, PVG2)
Create the VG using the PVG Name (PVG1, PVG2) instead of Disk name
Create the LV using PVG1
extend LV on to PVG1 with mirror option
ex: lvextend -m 1 /dev/vgx/lvolx PVG1 ( see lvextend for more option)
hope this helps
Manju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2001 02:55 AM
05-18-2001 02:55 AM
Re: Logical volume mirrir and strip
Tot, does you system support HW mirroring? if so then you can use thin stripes. If not, then you are stuck with mirror no stripes(RAID1) or extent based [wide] stripes with mirroring (RAID1+0).
Tim