1836987 Members
1986 Online
110111 Solutions
New Discussion

Re: Remove Mirror

 
SOLVED
Go to solution
David Pscheid
Occasional Contributor

Remove Mirror

I am a relatively new sysadmin. We have a K200 with 16 2gb and 2 4gb disk mirrored. This used to be our production server, but now we want it to be used for test/development.
Each logical volume has 2 physical volumes mirrored accross two controllers.
I want to unmirror the disk so I can utilize all 40gb for the test & development data. I know I need to do the lvreduce - m 0 for each logicalvolume, but I am unsure what steps I need to do next so I can make the 'new' disk usable.
I am guessing I need to rename the 'new' logical volumes since they have have the same name, only a different physical path, but am not sure which commands need to be issued in which order.
Thanks in advance.
Dave Pscheid
2 REPLIES 2
Brian M. Fisher
Honored Contributor
Solution

Re: Remove Mirror

Use the following steps:
1) lvreduce -m 0 /dev/vgXX/lvolX
/dev/dsk/c#t#d#
(This will remove the specified PV from the mirror)
2) lvcreate -L ### /dev/vgXX
(Create a logical volume size ### to volume group XX with the next available logical volume number)
3) newfs -F hfs /dev/vgXX/lvolX
4) mount /dev/vgXX/lvolX /mountpoint
5) add entry to /etc/fstab

Brian
<*(((>< er
Perception IS Reality
CHRIS_ANORUO
Honored Contributor

Re: Remove Mirror

I would do "lvreduce -m 0 /dev/vg00/lvol10 /dev/dsk/XXXX. "XXXX" = disk device you want to remove mirroring from. Once you reduced all the lvols off the disk, if you want to put a new volume group on it don't forget to vgreduce it out of the current vg. "vgreduce /dev/vgXX /dev/dsk/XXXX. You can also do this in one step with the lvreduce command. lvreduce -m 0 /dev/vg00/lvol3 /dev/dsk/c*t*d*, or using SAM to split the disks and removing the copies. (Note: the disk specified is the one you wish to free, not the one you wish to remain in the volume group.)
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.