//创建源vdisk挂载目录;
mkdir vd1

//创建目标vdisk挂载目录;
mkdir vd2

//只需第一次执行 iscsiadm -m discovery --type sendtargets --portal 192.168.3.221

//挂载;
\root\4xvd_loginx
mount -o loop /dev/sdc /mnt/vdisk

//挂载源vdisk;
mount -o loop /mnt/vdisk/vmm4_vm9_dt.img /mnt/vd1

//制作vdisk;以VMM1的VM1为例(初始化)
dd if=/dev/zero of=/mnt/vdisk/vmm1_vm1_dt.img bs=1M seek=81920 count=1
mkfs -t ext4 /mnt/vdisk/vmm1_vm1_dt.img

//挂载目标vdisk;以VMM1的VM1为例
mount -o loop /mnt/vdisk/vmm1_vm1_dt.img /mnt/vd2

results matching ""

    No results matching ""