- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: does the mirroring supported by LVM ( LINUX )
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-26-2007 03:24 PM
тАО06-26-2007 03:24 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2007 04:29 PM
тАО06-26-2007 04:29 PM
Re: does the mirroring supported by LVM ( LINUX )
I quote the man page for 'lvcreate' on my RHEL4 box:
------------------------------------
-m, --mirrors Mirrors
Creates a mirrored logical volume with "Mirrors" copies. For example, specifying "-m 1" would result in a mirror with two-sides; that is, a linear volume plus one copy.
------------------------------------
That being said, this is from the man page for 'lvextend':
------------------------------------
lvextend allows you to extend the size of a logical volume. Extension of snapshot logical volumes (see lvcreate(8) for information to create snapshots) is supported as well. But to change the number of copies in a mirrored logical volume use lvconvert(8).
------------------------------------
'lvconvert' has the exact same '-m' options as 'lvcreate'.
NOTE: As this is RHEL4, this is all LVM2. LVM1 does *NOT* have any Mirroring capabilities (unless using md over LVM).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2007 02:00 AM
тАО06-27-2007 02:00 AM
Re: does the mirroring supported by LVM ( LINUX )
Red Hat Enterprise Linux AS release 4 (Nahant Update 4);lvm2-2.02.06-6.0.RHEL4
Red Hat Enterprise Linux AS release 3 (Taroon Update 8);lvm-1.0.8-14
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2007 02:05 AM
тАО06-27-2007 02:05 AM
Re: does the mirroring supported by LVM ( LINUX )
cat /etc/redhat-release
Red Hat Enterprise Linux ES release 4 (Nahant Update 5)
rpm -qi lvm2
Name : lvm2
Version : 2.02.21
Release : 5.el4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2007 06:27 AM
тАО06-27-2007 06:27 AM
Re: does the mirroring supported by LVM ( LINUX )
You still need to use fdisk to set up the partition structure on the second disk.
Its somewhat easier to do the mirroring at install time and do one gigantic partion and use lvm to subdivide it.
This methodology, which you can use to mirror a system after install seems quite possible as well using Stuart's plan.
This thread is so good its going on my permanent bookmark list in ITRC.
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
тАО06-27-2007 01:45 PM
тАО06-27-2007 01:45 PM
Re: does the mirroring supported by LVM ( LINUX )
I did not undesrtand this point.
This methodology, which you can use to mirror a system after install seems quite possible as well using Stuart's plan
r u talking about lvconvert/lvextend/lvcreate? Even i dont see a man page for lvconvert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2007 04:29 PM
тАО06-27-2007 04:29 PM
Re: does the mirroring supported by LVM ( LINUX )
I personally feel tat using a whole-device for PE's is the easiest and most maintainable method of things.
That being said, after the fact 'lvconvert' into available PE's shouldn't be an issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2007 06:16 PM
тАО06-27-2007 06:16 PM
SolutionI'm operating LVM2 v2.02.06 and it does not have a "-m" option.
That said, afaik (until this thread) the only way to mirror volumes is to use device mapper RAID support with a tool called 'mdadm' (which works pretty well, and it too can convert a running system on 1 disk live to a RAID 1 on 2 disks (presuming you already have the second disk installed or you've got hot-swap capabilities).
Off topic:
A difference between mdadm RAID 1 and LVM mirrors (such as in HP-UX) is that the linux device mapper utilises both disks for reading operations, resulting in a pretty good read performance whilst ie. HP-UX uses a single disk for read operations and the other only to write (until disk failure of first disk). I do not know how RH made the behaviour of the "-m" option in LVM, you still might be better using mdadm if you're looking for performance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2007 08:47 PM
тАО06-27-2007 08:47 PM
Re: does the mirroring supported by LVM ( LINUX )
When I initially started using LVM (albiet late, using a 1.0.3 version on FC1, with partial manual upgrads to 1.0.8), the documentation and notes were litted with people saying that it was being worked on, but not ready.
When LVM2 was released using device mapper support (ported back to 2.4 kernels), mirroring was added, but was quite buggy, and not in any of the man pages.
The documentation in the 'man' pages was added in 2.02.10.
If you read through the change log for LVM2 ( ftp://sources.redhat.com/pub/lvm2/WHATS_NEW ), you get quite the fascinating history.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2007 11:46 PM
тАО06-27-2007 11:46 PM