- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- mirroring a lvol ... where how does it know where ...
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
тАО05-15-2003 05:09 AM
тАО05-15-2003 05:09 AM
mirroring a lvol ... where how does it know where to place the mirror copy?
lvcreate -m 1 -L 800 -n lvomniback /dev/vg00
knows which pv to mirror to, since none is specified here. Where is the physical relationship estahblished between the "mirroree" and the "mirror"? How dooes it know?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2003 05:10 AM
тАО05-15-2003 05:10 AM
Re: mirroring a lvol ... where how does it know where to place the mirror copy?
You can pass the PV name as an argument to the lvextend command to specify which PV to use. Normally we just do the lvcreate, and then do the lvextend -m ... PV to specify which PV we want the mirror to go to.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2003 05:15 AM
тАО05-15-2003 05:15 AM
Re: mirroring a lvol ... where how does it know where to place the mirror copy?
vgextend /dev/vg## /dev/dsk/cXtYdZ
lvcreate -L ### -n "lvolname" /dev/vg##
lvextend -m 1 /dev/vg## /dev/dsk/cXtYdZ
Its good to use the same SCSI targets when mirroring. So c1t4do should mirror to cXt4d0.
Use 'pvdisplay -v' to see what lvols reside upon a pv.
pvdisplay -v /dev/dsk/cXtYdZ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2003 05:18 AM
тАО05-15-2003 05:18 AM
Re: mirroring a lvol ... where how does it know where to place the mirror copy?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2003 05:19 AM
тАО05-15-2003 05:19 AM
Re: mirroring a lvol ... where how does it know where to place the mirror copy?
Mirror placement is constrained by the 'strict' and 'contiguous' allocation policies the logical volume as established by 'lvcreate' and/or modified by 'lvchange'.
See the man pages for 'lvcreate', 'lvextend' and 'lvchange' for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2003 05:25 AM
тАО05-15-2003 05:25 AM
Re: mirroring a lvol ... where how does it know where to place the mirror copy?
Here is LVM quick reference.
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062684323
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2003 05:53 AM
тАО05-15-2003 05:53 AM
Re: mirroring a lvol ... where how does it know where to place the mirror copy?
http://www.docs.hp.com/cgi-bin/onlinedocs.py?mpn=B2355-90742&service=hpux&path=00/00/1&title=Managing%20Systems%20and%20Workgroups%3A%20A%20Guide%20for%20HP-UX%20System%20Administrators
Goto "Managing Disks&Files"->"Managing FS".
Before you run lvcreate with the mirror option, you can examine what is the allocation policy set on that LV by running ..
# lvdisplay /dev/vg0X/lvolX|grep -i allocation
By default when you create the LV it'll set the allocation policy to "strict". That simply means the mirrored extents can reside in any other PVs BUT not in the same PVs where the "primary" copy sits. For example ..
/dev/vg02/lvol1
diskA = 200 extents here
diskB = 400 extents here
diskC = none here
If you extend a mirror copy of lvol1 (based on strict), the "primary" extents that resides on diskA can have it's mirrore copies sitting in diskB or diskC, not on diskA.
My favorite way of setting up mirror LVs is to create PVG (physical volume group) and placing sets of disks into separate PVG. Telling the LVs to mirror as PVG-strict so that I know which PVG has the mirrored extents. This way I have more control.