[Open-FCoE] fcoe target add new disk bug

muthu kumar muthumailbox at gmail.com
Wed Apr 22 09:38:47 UTC 2009


Hi
 using this following command i have create new vdisk  in taget machine
after that display disk(fdisk -l) but i can't see this disk in initiator

  mkfs.ext3 /dev/ram0
  echo "open vdisk0 /dev/ram0 WRITE_THROUGH" > /proc/scsi_tgt/vdisk/vdisk
  echo "add vdisk0 0" > /proc/scsi_tgt/groups/Default/devices

[root at localhost ~]# fdisk -l

Disk /dev/sda: 12.8 GB, 12884901888 bytes
255 heads, 63 sectors/track, 1566 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000d87e7

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          25      200781   83  Linux
/dev/sda2              26        1566    12378082+  8e  Linux LVM

Disk /dev/dm-0: 11.6 GB, 11676942336 bytes
255 heads, 63 sectors/track, 1419 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 939 MB, 939524096 bytes
255 heads, 63 sectors/track, 114 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x30307800

Disk /dev/dm-1 doesn't contain a valid partition table

-- 
Regards
Muthukumar



More information about the devel mailing list