- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: lvreduce and lvcreate -m 1 over 2 disks
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
09-05-2002 04:10 AM
09-05-2002 04:10 AM
How I can reduce an lv there go over 2 disks. Do I have to chose both HDD in the command?
It this correct if I use the following command:
lvreduce -m 0 /dev/vg00/lvol9 /dev/dsk/c0t8d0 /dev/dsk/c0t9d0
And for built the mirroring I have to use the 'same' command: lvextend -m 1 /dev/vg00/lvol9 /dev/dsk/c0t8d0 /dev/dsk/c0t9d0
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2002 04:17 AM
09-05-2002 04:17 AM
Re: lvreduce and lvcreate -m 1 over 2 disks
In both cases, specifying the dead disk or new disk alone would be enough.
HTH,
Vince
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2002 04:17 AM
09-05-2002 04:17 AM
Re: lvreduce and lvcreate -m 1 over 2 disks
You don't have to turn off mirroring and then rearm it. For a full procedural discussion see Technical Knowledge Base document #KBAN00000347.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2002 04:19 AM
09-05-2002 04:19 AM
Re: lvreduce and lvcreate -m 1 over 2 disks
The only thing you may need to do is to probably run a vgcfgrestore to get the header info back to the disks (may need to run a vgchange -a y .. to reactivate the vg) and then you should just need to resync the mirrors, using either lvsync or vgsync.
If I have understood what you said....
Just a quick thought,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2002 04:32 AM
09-05-2002 04:32 AM
Re: lvreduce and lvcreate -m 1 over 2 disks
As others have correctly stated you do not need to break the mirror to replace the drive.
But what you need to do is insure the replacement disk is of the same size & in the SAME position using the same SCSI ID as the one that it's replacing.
Then you can use the vgsync to get the data mirrored once more.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2002 04:44 AM
09-05-2002 04:44 AM
Re: lvreduce and lvcreate -m 1 over 2 disks
Vicent: If I have to reduce the mirroring, then I have to work with both disks, because 1 lvol goes over both disks and if you reduce it, it will delete the mirroring in both disks. I did it, but only with one HDD in the command and the HPUX delete the 2nd part of the mirroring on the wrong disk ;-(
JRF: You are right, but I want to do this, because we had last week problems with sync (the replaced disk was also bad - directly from HP).
Rita: Sorry my english. Wy I didn't work with lvsync?: Please read the reason in the colume above (JRF)
Jeff: It was in a 'Jamaika'. And I replaced the same disk, at the same place with the same SCSI-ID, size and more.
----------------------------
The question is not only for know the right way, it is for understand also the mirroring (I'm a rookie in this things).
It is know possible to create oder remove a mirroring over 2 disks with the command above?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2002 05:02 AM
09-05-2002 05:02 AM
Re: lvreduce and lvcreate -m 1 over 2 disks
lvreduce -m 0 /dev/vg00/lvol9
after replace the bad disk, run:
lvextend -m 1 /dev/vg00/lvol9
But before you run lvextend, you have to run vgcfgrestore and vgchange first.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2002 05:04 AM
09-05-2002 05:04 AM
Re: lvreduce and lvcreate -m 1 over 2 disks
lvreduce -m 0 /dev/vg00/lvol9 /dev/dsk/c0t9d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2002 05:30 AM
09-05-2002 05:30 AM
SolutionIn answer to your last question, yes, it is possible to specify the 'pv_path'(s) of all physical volume in both the 'lvextend' and 'lvreduce' commands to specifically target selected physical volumes on which the logical volume extents are to be placed or removed.
See the man pages for more information.
Regards!
...JRF...