UnixPedia : HPUX / LINUX / SOLARIS: How to mirror a logical volume on a specific physical volume

Friday, January 18, 2013

How to mirror a logical volume on a specific physical volume


      Note: the following example, is using the disk c1t10d0 for the
      primary copy, c2t10d0 for the mirror copy, the volume group vg01,
      the logical volume lvhome and the size will be 200M

      lvcreate -n lvhome /dev/vg01
      lvextend -L 200 /dev/vg01/lvhome /dev/dsk/c1t10d0
      lvextend -m 1 /dev/vg01/lvhome /dev/dsk/c2t10d0

No comments:

Post a Comment