- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Remove a mirror .
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
тАО12-10-2003 09:20 PM
тАО12-10-2003 09:20 PM
Remove a mirror .
I have a logical volume : /dev/vg01/lvol1
with 2 disks c0t2d0 (master) & c0t8d0 (slave) .
I want to remove the mirror and to have the slave disk on new vg - VG02 .
I thougt to do it with vgchgid but i must have EMC disks .
Give me the set of commands to do it .
Thanks ,
Eran .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2003 09:25 PM
тАО12-10-2003 09:25 PM
Re: Remove a mirror .
# lvextend -m 0 /dev/vg01/lvol1
# vgreduce /dev/vg01 /dev/dsk/c0t8d0
# vgextend /dev/vg02 /dev/dsk/c0t8d0
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2003 09:33 PM
тАО12-10-2003 09:33 PM
Re: Remove a mirror .
lvreduce -m 0 /dev/vg01/lvol1 /dev/dsk/c0t8d0
This way you're also certain it stops mirroring to that disk and not the other one, because LVM sees no difference between slaves and masters...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2003 09:37 PM
тАО12-10-2003 09:37 PM
Re: Remove a mirror .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2003 09:57 PM
тАО12-10-2003 09:57 PM
Re: Remove a mirror .
For the reduction of the mirror, follow the steps above.
DO not ever use vgchgid on only one disk of a vg, unless you want to gain deep knoledge on lvm, because it is a very destructive operation.
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2003 11:44 PM
тАО12-10-2003 11:44 PM
Re: Remove a mirror .
Perhaps Eran is right ... and the question isn't clear :-) !
If you have a mirrored VG and you want to create 2 new VG with the same data on disks without having to recreate the lvm structure or copy the data the procedure could basically be as follows, but fully not supported ...
- deactivate the vg
- export the vg
- create and import the vg with only the first disk.
- lvreduce the missing copy using lvreduce -k -m 0 key (get the key using lvdisplay -v -k, it's the number of the missing disk)
- vgreduce -f the vg
- vgchgid the second disk
- import the new vg and do the same other things with lvreduce
It could work ... I didn't test. Take a good backup first !!! Also be careful of the lvreduce man page which seems to be wrong for the -k usage (in the synopsis, in the option description and in the example !).
Syntax is :
lvreduce -m 0 -k /dev/vgxxx key
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2003 10:25 PM
тАО12-13-2003 10:25 PM
Re: Remove a mirror .
According to Jean , it's impossible to activate a VG just with one disk :( .
Vgchgid is working just on EMC disks and not on regular disks .
BR ,
Eran .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2003 07:54 AM
тАО12-15-2003 07:54 AM
Re: Remove a mirror .
So am I understanding you are going to be unmirrored SPOF on vg01? and vg02? having only one disk in vg01 and 1 disk in vg02? OR are you later going to add a mirror back to each of them after you split them?
Also, what is your ultimate goal here? are you trying to duplicate your data on a new VG/LVOL filesystem?
IF so you can merely create the new vg02 with your other disks and do a straight copy over... with out all the disk manipulation...
Please correct me if my assumption is wrong.