- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- I still don't get it (moving drives)
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-16-2006 03:59 AM
тАО05-16-2006 03:59 AM
I understand the hardware part and which slots the drive belong so the mirrored drives will be using different controllers. I can always backup up the system and do this the hard way. I am looking for another way.
Here is what I still am stuck on.
Each pair of drives are one VG, one LV, and one mount point.
How do break the mirror and/or remove the drive from the VG.
I think I should break the mirror and remove one drive from the system with our losing data or downing the system.
I am looking at "When Good Drives go bad." I stll don't get it.
Marty
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2006 04:09 AM
тАО05-16-2006 04:09 AM
Re: I still don't get it (moving drives)
lvreduce -m 0 /dev/vgxx/lvol$ /dev/dsk/cxtydz
#Vgreduce /dev/vgxx /dev/dsk/cxtydz
Remove the drive if its hotspare & connect it to other controller
#insf -H
#pvcreate /dev/rdsk/cxtydz
#vgextend /dev/vgxx /dev/dsk/cxtydz
#lvextend -m 1 /dev/vgxx /dev/dsk/cxtydz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2006 04:10 AM
тАО05-16-2006 04:10 AM
Re: I still don't get it (moving drives)
Two ways I know to break softwar mirrors.
lvextend -m 0
lvsplit
There are probably others.
I recommend splitting all the mirrors and removing the second copy with lvremove.
Then recreate the mirrors specifying which disk the mirror is going to.
Example the lvol name ls /vg01/lvol1
lvextend -m 1 /vg01/lvol1 /dev/dsk/c1t1d0
Never extend a mirror onto the same controller.
c1 should be extended to c0 or c2 etc.
The nice thing about mirror/ux is you can do this all on the fly.
Letting sam decide where to make the mirror is the normal cause of mirror copies landing on the same disk or controller.
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
тАО05-16-2006 04:15 AM
тАО05-16-2006 04:15 AM
Solutionlvreduce -m 1 /dev/vgxx/lvyy /dev/dsk/[one of the disks on the old controller]
That will mean that you never go without a mirrored pair.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2006 04:42 AM
тАО05-16-2006 04:42 AM
Re: I still don't get it (moving drives)
Break the mirror:
lvreduce -m 0 /dev/vg12/lvol12 /dev/dsk/c10t13d0
Drive is available?
Add another Mirror to vg11 (from above)
lvextend -m 2 /dev/vg11 /dev/dsk/c10t13d0
Now vg11 has a 3 drive mirror?
Remove the unwanter drive from mirror
lvreduce -m 1 /dev/vg11 /dev/dsk/c10t11d0
now vg11 has a 2 drive mirror again?
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2006 05:46 AM
тАО05-16-2006 05:46 AM
Re: I still don't get it (moving drives)
First, you have to create /etc/lvmpvg file that should look like this:
VG /dev/vg01
PVG controller0
/dev/dsk/c0t1d0
/dev/dsk/c0t2d0
PVG controller1
/dev/dsk/c1t1d0
/dev/dsk/c1t2d0
at this point you might want to run vgdisplay -v on your volume group to verify that you PVG are correctly displayed.
then, reduce a mirror with
lvreduce -m 0 /dev/vgXX/lvolXX
change the lvol allocation policy to PVG-strict with
lvchange -s g /dev/vgXX/lvolXX
and add a mirror with
lvextend -m 1 /dev/vgXX/lvolXX
that's all, now you have your lvol mirrored accross different controllers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2006 07:34 AM
тАО05-16-2006 07:34 AM
Re: I still don't get it (moving drives)
When you have dropped whichever mirror disk you want to remove from the volume group, you can add it to another volume group instead, where it may be used as a mirror for a disk elsewhere.
For example, suppose you have 8 disks on c10 and 10 disks on c11, you should include some disks from both controllers in each volume group. Just make sure that the disks are the same size, or else things would get more complicated, but not impossible. Something like this:
c10t0d0, c11t0d0, c10t1d0, c11t1d0 in vg01
c10t2d0, c11t2d0, c10t3d0, c11t3d0 in vg02