PDA

View Full Version : Mount iSCSI drives on SuSE



ddgaikwad
27-May-2015, 07:32
Hi There,

I was able to setup iSCSI initiator and connect to Delll Storage.
Now when I run lsscsi, those other 2 drives are listed, but how do I use them with SuSE here?
Here is the output:
SenHA01:~ # lsscsi
[0:0:0:0] disk VMware Virtual disk 1.0 /dev/sda
[2:0:0:0] cd/dvd NECVMWar VMware IDE CDR10 1.00 /dev/sr0
[3:0:0:0] disk DELL MD32xxi 0784 -
[3:0:0:31] disk DELL Universal Xport 0784 -

Any help...?

thsundel
27-May-2015, 08:18
Hi There,

I was able to setup iSCSI initiator and connect to Delll Storage.
Now when I run lsscsi, those other 2 drives are listed, but how do I use them with SuSE here?
Here is the output:
SenHA01:~ # lsscsi
[0:0:0:0] disk VMware Virtual disk 1.0 /dev/sda
[2:0:0:0] cd/dvd NECVMWar VMware IDE CDR10 1.00 /dev/sr0
[3:0:0:0] disk DELL MD32xxi 0784 -
[3:0:0:31] disk DELL Universal Xport 0784 -

Any help...?

Through YaST->Partitioner?

Thomas

ddgaikwad
27-May-2015, 08:54
I checked there, and I do not see these new iSCSI disk listed in Expert partitiioner....

thsundel
27-May-2015, 09:12
I checked there, and I do not see these new iSCSI disk listed in Expert partitiioner....

Did you follow the docs on how to setup iscsi? https://www.suse.com/documentation/sles11/stor_admin/data/sec_inst_system_iscsi_initiator.html

Thomas

ddgaikwad
27-May-2015, 11:36
Did you follow the docs on how to setup iscsi? https://www.suse.com/documentation/sles11/stor_admin/data/sec_inst_system_iscsi_initiator.html

Thomas

Yes followed the steps given in teh document and still I do not see the drives listed in partitioner...
Not sure how to mount them right?

SenHA01:~ # lsscsi
[0:0:0:0] disk VMware Virtual disk 1.0 /dev/sda
[2:0:0:0] cd/dvd NECVMWar VMware IDE CDR10 1.00 /dev/sr0
[3:0:0:0] disk DELL MD32xxi 0784 -
[3:0:0:31] disk DELL Universal Xport 0784 -

jmozdzen
27-May-2015, 15:30
Hi ddgaikwad,

Yes followed the steps given in teh document and still I do not see the drives listed in partitioner...
Not sure how to mount them right?

SenHA01:~ # lsscsi
[0:0:0:0] disk VMware Virtual disk 1.0 /dev/sda
[2:0:0:0] cd/dvd NECVMWar VMware IDE CDR10 1.00 /dev/sr0
[3:0:0:0] disk DELL MD32xxi 0784 -
[3:0:0:31] disk DELL Universal Xport 0784 -


it's catching the eye that no drive letter was assigned to those disk drives, hence the OS has no way to access these two disks.

Could you please share what's reported in syslog (/var/log/messages) when the iSCSI devices are connected?

And while we're at it, which SLES is this?

Regards,
Jens

ddgaikwad
29-May-2015, 09:15
Hi ddgaikwad,


it's catching the eye that no drive letter was assigned to those disk drives, hence the OS has no way to access these two disks.

Could you please share what's reported in syslog (/var/log/messages) when the iSCSI devices are connected?

And while we're at it, which SLES is this?

Regards,
Jens

Here is the output when we are connecting these SCSI drives:
May 29 08:04:29 SenHA01 kernel: SUSE Linux Enterprise Server 11 (x86_64)
May 29 08:06:59 SenHA01 kernel: SUSE Linux Enterprise Server 11 (x86_64)
May 29 08:08:20 SenHA01 sshd[6764]: Accepted keyboard-interactive/pam for root from 10.20.151.62 port 56072 ssh2
May 29 08:08:29 SenHA01 wtmp: root pts/0 10.20.151.62 Fri May 29 08:08:20 2015 still logged in
May 29 08:08:59 SenHA01 kernel: SUSE Linux Enterprise Server 11 (x86_64)
May 29 08:09:27 SenHA01 sshd[6898]: Accepted keyboard-interactive/pam for root from 10.20.151.62 port 56073 ssh2
May 29 08:09:29 SenHA01 wtmp: root pts/1 10.20.151.62 Fri May 29 08:09:28 2015 still logged in
May 29 08:09:52 SenHA01 kernel: [244618.655998] scsi 3:0:0:0: rdac: Detached
May 29 08:09:52 SenHA01 kernel: [244619.070005] connection1:0: detected conn error (1020)
May 29 08:09:53 SenHA01 iscsid: Connection1:0 to [target: iqn.1984-05.com.dell:powervault.md3200i.6782bcb00024c1c0000 000004daf8dde, portal: 192.168.133.101,3260] through [iface: default] is shutdown.
May 29 08:10:29 SenHA01 kernel: [244655.451731] scsi4 : iSCSI Initiator over TCP/IP
May 29 08:10:29 SenHA01 kernel: [244655.713498] scsi 4:0:0:0: Direct-Access DELL MD32xxi 0784 PQ: 1 ANSI: 5
May 29 08:10:29 SenHA01 kernel: [244655.715069] scsi 4:0:0:0: rdac: LUN 0 (IOSHIP) (unowned)
May 29 08:10:29 SenHA01 kernel: [244655.715216] scsi 4:0:0:0: Attached scsi generic sg2 type 0
May 29 08:10:29 SenHA01 kernel: [244655.719075] scsi 4:0:0:31: Direct-Access DELL Universal Xport 0784 PQ: 0 ANSI: 5
May 29 08:10:29 SenHA01 kernel: [244655.719244] scsi 4:0:0:31: Attached scsi generic sg3 type 0
May 29 08:10:29 SenHA01 iscsid: Connection2:0 to [target: iqn.1984-05.com.dell:powervault.md3200i.6782bcb00024c1c0000 000004daf8dde, portal: 192.168.133.101,3260] through [iface: default] is operational now
May 29 08:10:59 SenHA01 kernel: SUSE Linux Enterprise Server 11 (x86_64)


We are using:
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 3

Thanks,

jmozdzen
29-May-2015, 15:43
Hi ddgaikwad,

does one the following commands help to resolve the issue? (Please make sure to replace "host4" by the actual controller created for the iSCSI connection.)


# echo "- - -" > /sys/class/scsi_host/host4/scan

# echo "- - 0" > /sys/class/scsi_host/host4/scan

Regards,
Jens

ddgaikwad
02-Jun-2015, 13:40
Hi ddgaikwad,

does one the following commands help to resolve the issue? (Please make sure to replace "host4" by the actual controller created for the iSCSI connection.)


# echo "- - -" > /sys/class/scsi_host/host4/scan

# echo "- - 0" > /sys/class/scsi_host/host4/scan

Regards,
Jens

Tried the same, but I do not see any scsi devices there, I have the following output:

Sen-SAN-Test:/sys/class/scsi_host/host2 # ls -l /dev/disk/by-id/
total 0
lrwxrwxrwx 1 root root 9 Jun 2 15:43 scsi-36000c290a37250c0e9b24fa0f32b277c -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 2 15:43 scsi-36000c290a37250c0e9b24fa0f32b277c-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 2 15:43 scsi-36000c290a37250c0e9b24fa0f32b277c-part2 -> ../../sda2
lrwxrwxrwx 1 root root 9 Jun 2 15:43 wwn-0x6000c290a37250c0e9b24fa0f32b277c -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 2 15:43 wwn-0x6000c290a37250c0e9b24fa0f32b277c-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 2 15:43 wwn-0x6000c290a37250c0e9b24fa0f32b277c-part2 -> ../../sda2

Seems that those 2 disk are not at all displayed here...

jmozdzen
02-Jun-2015, 14:26
Hi ddgaikwad,

> Seems that those 2 disk are not at all displayed here...

yes, this will only happen once the kernel / driver identified the SCSI device as a disk and assigned a new device name... udev then (and only then) will create symlinks like the ones you quotes.

Unfortunately I have no idea why your iSCSI devices aren't handled as disks, you may have to open a service request to get this issue resolved. Unless someone else here comes up with a helpful idea.

Regards,
Jens

ddgaikwad
15-Jun-2015, 11:36
Hi jmozdzen,

I was going through the set for SAN and found that, the iSCSI drives that I am trying to mount are actually shared between two ESX servers.
The format for these drives is, VMFS5, so is it due to this they are not being shown in SuSE servers?

The funny part is that they are accessible from both those two ESX servers!
We are able also able to read and write to them via the ESX servers.

So the other question is that, is there something that SuSE server do not support VMFS file system?

Any thoughts over this?