1856502 Members
4161 Online
104113 Solutions
New Discussion

Re: LVM and mirroring

 
Chris Fadrowski
Super Advisor

LVM and mirroring

Here is the question,

I have 2 disks in my server. One disk has Oracle Binaries (10 gig) and (8 gig) of secondary swap. (18 gb drive). I want to mirror my Oracle Binaries to the 2nd disk. How can i go about mirroring my 10 gig LVOL to the other disk. Or do i have to mirror the whole disk instead of the LVOL. Basically i just want to mirror /dev/vg01/lvol21 to another device. I am concerned however that the size of the mirror has to be the same. Can some one layout the procedure for me?
4 REPLIES 4
Pete Randall
Outstanding Contributor

Re: LVM and mirroring

Chris,

MirrorDisk/UX functions at the Lvol level, so you can mirror either, both, or none.

Pete

Pete
Ken Hubnik_2
Honored Contributor

Re: LVM and mirroring

Mirroring has nothing to do with the physical disk. It is done on the lvol level.

lvextend -m 1 /dev/vg01/lvol21
Sean OB_1
Honored Contributor

Re: LVM and mirroring

Mirrordisk mirrors at the volume level so you can simply mirror the oracle volume to the other disk.

lvextend -m 1 /dev/vgnn/lvoltomirror /dev/dsk/cNtNdN

Rajasekhar Raman
Frequent Advisor

Re: LVM and mirroring

All suggestions made above are absolutely correct. The only other precautionary statement I would make is that make sure the disks are identical in performance, other wise you will be operation at the speed of the slower disk, also if they have the same capacity it helps in case you need to expand the logical volume in the future.