- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Split Logical Volume Mirroring
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-21-2005 12:34 AM
05-21-2005 12:34 AM
Split Logical Volume Mirroring
I am thinking of splitting the mirror on a particular LV /dev/vg00/lvol13 which is currently residing in the following harddisks.
LV Name /dev/vg00/lvol13
LV Status available/syncd
LV Size (Mbytes) 1024
Current LE 64
Allocated PE 128
Used PV 2
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c1t2d0 64 64
/dev/dsk/c2t2d0 64 64
#lvreduce -m 0 /dev/vg00/lvol13
Queries:
1) How do I identify which is the mirrored copies? Is it the first row in the distribution will be the primary copy?
2) If I need to have the same mirroring format will the following command suffice:
#lvextend -m 1 /dev/vg00/lvol13 /dev/dsk/c2t2d0
Assuming /dev/dsk/c2t2d0 is the mirrored harddisk
Thanks and Regards/cliff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2005 01:26 AM
05-21-2005 01:26 AM
Re: Split Logical Volume Mirroring
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2005 01:30 AM
05-21-2005 01:30 AM
Re: Split Logical Volume Mirroring
Once a LV is mirrored both copies are synchronized. There is no primary copy and secondary copy.
If you want remove the mirror copy from c2t2d0, then the command would be
lvreduce -m 0 /dev/vg00/lvol13 /dev/dsk/c2t2d0
For extending back your command is correct.
When you reduce or extend root,boot,swap
run lvlnboot. See man page of lvlnboot
Note: The term "split" is diffrent from "reduce". Reduce removes the mirror copy and split (see man page lvsplit) splits the LV online. The data would be available in both LV's(the splited LV is named as
see also man page of lvmerge
Hope this helps
Regds
TT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2005 02:18 AM
05-21-2005 02:18 AM
Re: Split Logical Volume Mirroring
If I run the following commands,
lvsplit /dev/vg00/lvol13
Queries:
-The following lv /dev/vg00/lvol13b will be created automatically?
-In order to merge back the lv, the following command will be executed without the need to specify the harddisk?
-Can I said that the 2nd column from lvdisplay -v /dev/vg00/lvol13 should be corresponding to /dev/vg00/lvol13b?
lvmerge /dev/vg00/lvol13b /dev/vg00/lvol13
Thanks/cliff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2005 03:19 AM
05-21-2005 03:19 AM
Re: Split Logical Volume Mirroring
In answer to you last questions:
The lvol13b is created automatically by the split command -- you can use the -s option on lvsplit if you want to call the split lvol something else, eg -s _bkup will create lvol13_bkup.
If you want the split lvol to be created using the data on a particular pv, then you need to create PVGs within the VG for the disks you want, then use the -g option on lvsplit to tell lvsplit to use that disk. Otherwise I don't think you can be certain which copy will be used -- but I'm willing to be corrected!
For the lvmerge, the syntax is correct, the first lvol you specify is the destination, the second the source, so if you wanted to sync so that the data on lvol13 is now mirrored, use the command you have specified.
Don't forget to fsck the split lvol (lvol13b) (assuming it contains a file system) before you use it for anything.
HTH
Tony