1848915 Members
7877 Online
104039 Solutions
New Discussion

Re: Mirror Disk Question

 
ROSS HANSON
Regular Advisor

Mirror Disk Question

I had to add a disk to vg00 in order to increase the size
of /home. Do I now have to add a disk, brake my mirror,
then remirror vg00?
Ross Hanson
4 REPLIES 4
Jeffrey L. Huff
Occasional Advisor

Re: Mirror Disk Question

Ross,

If I understood your question properly, no you should not have to break the mirror and re-mirror /home. This is assuming that you have already expanded /home. What you need to be careful of, is that the current mirror of /home is also not on the new disk that /home was expanded to. If you do a "lvdisplay -v /dev/vg00/home | more" that should give you the information you are looking for to determine the current status of both /home, and the mirror locations.
Terja
Frequent Advisor

Re: Mirror Disk Question

try and keep your filesystems on one disk if you dont need absolute performance of striped volumes. I would suggest you pvmove /home from the orginal location to the new disk, thus if one disk fails you dont have to restore filesystems that are only partially on that disk. the pvmove goes somehing like

pvmove -n /dev/vg00/home /dev/dsk/cxtyd0 /dev/dsk/cztad0
where x,z are the channel ids, and y,a are the scsi addresses.

NB> you cannot pvmove between volumengroups.
UNIX - Live free or Die
unixdaddy
Trusted Contributor

Re: Mirror Disk Question

This shouldn't be a problem IF there is enough space on your mirrored disk. As The system hasn't complained when you extend /home it should be OK. Use vgdisplay/lvdisplay to check that your mirrored disk has the same number of used extents as your original disk.
Vincenzo Restuccia
Honored Contributor

Re: Mirror Disk Question

lvreduce -m 0 /dev/vg00/lvol5
umount /home
lvextend -L xxx /dev/vg00/lvol5
extendfs -F vxfs /dev/vg00/lvol5
lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/cxtyd0