테스트 용도 및 데이터를 이관할 때 사용한다. 기존 볼륨을 스토리지 내에 Disk 볼륨을 복제하여 복제 Disk를 서버에 마운트 한다. 아래의 커맨드로 서버에 마운트한다. 마운트 할 때 복제 Disk가 원본 장치 개수(Disk 수량)가 틀리면 안된다.
복제본 스토리지 연결
[root@test /]# df -Ph Filesystem Size Used Avail Use% Mounted on /dev/sda4 486G 3.0G 458G 1% / tmpfs 95G 224K 95G 1% /dev/shm /dev/sda2 976M 41M 885M 5% /boot /dev/sda1 500M 280K 500M 1% /boot/efi [root@test /]# pvscan PV /dev/mapper/mpathc VG vg01 lvm2 [140.00 GiB / 0 free] PV /dev/mapper/mpathb VG vg01 lvm2 [100.00 GiB / 0 free] PV /dev/mapper/mpathd VG vg01 lvm2 [100.00 GiB / 0 free] PV /dev/mapper/mpathep1 VG vg01 lvm2 [299.99 GiB / 0 free] [root@test /]# vgscan Reading all physical volumes. This may take a while... Found volume group "vg01" using metadata type lvm2 [root@test /]# vgchange -a n vg01 0 logical volume(s) in volume group "vg01" now active [root@test /]# lvscan inactive '/dev/vg01/lvol01' [100.00 GiB] inherit inactive '/dev/vg01/lvol02' [399.99 GiB] inherit inactive '/dev/vg01/lvol03' [100.00 GiB] inherit inactive '/dev/vg01/lvol04' [39.99 GiB] inherit [root@test dev]# vgchange -a y vg01 4 logical volume(s) in volume group "vg01" now active [root@test dev]# lvscan ACTIVE '/dev/vg01/lvol01' [100.00 GiB] inherit ACTIVE '/dev/vg01/lvol02' [399.99 GiB] inherit ACTIVE '/dev/vg01/lvol03' [100.00 GiB] inherit ACTIVE '/dev/vg01/lvol04' [39.99 GiB] inherit [root@test app]# df -Ph Filesystem Size Used Avail Use% Mounted on /dev/sda4 486G 3.0G 458G 1% / tmpfs 95G 224K 95G 1% /dev/shm /dev/sda2 976M 41M 885M 5% /boot /dev/sda1 500M 280K 500M 1% /boot/efi /dev/mapper/vg01-lvol01 99G 31G 64G 33% /app