Linux – Can’t access to a iSCSI volume

iscsilinux

I have a iSCSI target on a customer place I'm using from an old Fedora (Core6) server. I configured it and formatted as ext3 (mistake, now I know) and I've been working with it for some time.

Now I need to access this volume from other machine. As far as I've read, I can't do it safely from two machines at the same time (yep, that's the first thing I tried). So I've umount it from original server and tried to mount it on the new server (I did it at first with Ubuntu 10 LTS but when I was unable to do it I installed another Fedora with the same configuration) with no success.

The problem: I can see all target on NAS but when I do a "fdisk -l" to see all devices and know which mount I see all targets as SFS filesystem. From the original server I see all SFS (after all, they belong to my customer and don't know what he have in) except the one I manage which I see as 'Linux'.

Here it is the partition table as seen in the server (Fedora) which see it right. Spanish language, sorry. I hope it can be understood. My comments between […]

[.. at beginning the real local drive ..]

Disco /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cilindros of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000080

Disposit. Inicio    Comienzo      Fin      Bloques  Id  Sistema
/dev/sda1               1          26      204800   83  Linux
/dev/sda2              26        6400    51200000   83  Linux
[.. more local partitions ..]

[... then iSCSI drives ...]

Disposit. Inicio    Comienzo      Fin      Bloques  Id  Sistema
/dev/sdc1               1      130541  1048570551   42  SFS

Disco /dev/sdf: 2147.5 GB, 2147483649024 bytes
255 heads, 63 sectors/track, 261083 cylinders 
Units = cilindros of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x2257d76f


[..... Other devices in between, and here it is the one I mind .....]

Disco /dev/sde: 2147.5 GB, 2147483648000 bytes
255 heads, 63 sectors/track, 261083 cylinders 
Units = cilindros of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 262144 bytes 
Disk identifier: 0x93afd446

Disposit. Inicio    Comienzo      Fin      Bloques  Id  Sistema
/dev/sde1               1      261083  2097149166   83  Linux  


[ .... and ever more devices ....]

On the machine I'm trying to configure, the one which should access the drive (but don't) I see the offending target as:

[....]

Disk /dev/sdc: 2147.4 GB, 2147483649024 bytes
255 heads, 63 sectors/track, 261083 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1      261083  2097149166   42  SFS


[....]

And I see rest of targets as SFS, the same as in first case.

Thank you in advanced,

Best Answer

fdisk reported labels don't mean much nowadays -- in fact as MS-DOS partition tables fall out of use, it even can be entirely misleading. If you want to know what's on a partition, better use file -s /dev/sdXX:

 file -s /dev/sda1
/dev/sda1: Linux rev 1.0 ext2 filesystem data (mounted or unclean), UUID=ebf12615-9c1a-4aca-9111-bebd1eaf4ed3 (large files)
file -s /dev/sda3
/dev/sda3: Linux rev 1.0 ext4 filesystem data, UUID=7322a490-8814-4f0b-92a7-a6f4287acadc (needs journal recovery) (extents) (large files) (huge files)
Related Topic