Cannot mount partition on iSCSI LUN
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
open-iscsi (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Distro: Jaunty
Package: open-iscsi-
Iscsi target: openfiler
Expected outcome: mount succeeds
Actual outcome: mount fails
Details:
I am able to log in to my iSCSI LUN using iscsiadm, but when I try to mount the partition I get an error. This used to work on Intrepid, and the same commands currently work when run from a CentOS 5.2 or Debian Lenny host. The commands I am running are:
root@galois:~# iscsiadm -m node -p 10.80.224.21:3260,1 -T iqn.2006-
Logging in to [iface: default, target: iqn.2006-
Login to [iface: default, target: iqn.2006-
root@galois:~# mount /dev/disk/
mount: /dev/sdg1 already mounted or /mnt busy
I think the "already mounted or /mnt busy" message is a red-herring as I am able to mount other filesystems on /mnt with no problems.
The kernel messages all look okay:
Apr 28 10:19:40 galois kernel: [324463.676641] scsi30 : iSCSI Initiator over TCP/IP
Apr 28 10:19:40 galois kernel: [324463.929278] scsi 30:0:0:0: Direct-Access OPNFILER VIRTUAL-DISK 0 PQ: 0 ANSI: 4
Apr 28 10:19:40 galois kernel: [324463.930571] sd 30:0:0:0: [sdg] 20971520 512-byte hardware sectors: (10.7 GB/10.0 GiB)
Apr 28 10:19:40 galois kernel: [324463.934014] sd 30:0:0:0: [sdg] Write Protect is off
Apr 28 10:19:40 galois kernel: [324463.935164] sd 30:0:0:0: [sdg] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Apr 28 10:19:40 galois kernel: [324463.935842] sd 30:0:0:0: [sdg] 20971520 512-byte hardware sectors: (10.7 GB/10.0 GiB)
Apr 28 10:19:40 galois kernel: [324463.936397] sd 30:0:0:0: [sdg] Write Protect is off
Apr 28 10:19:40 galois kernel: [324463.936967] sd 30:0:0:0: [sdg] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Apr 28 10:19:40 galois kernel: [324463.936970] sdg: sdg1 sdg2
Apr 28 10:19:40 galois kernel: [324463.953384] sd 30:0:0:0: [sdg] Attached SCSI disk
Apr 28 10:19:40 galois kernel: [324463.953441] sd 30:0:0:0: Attached scsi generic sg2 type 0
Changed in open-iscsi (Ubuntu): | |
status: | New → Invalid |
Got it!
There's a conflict between open-iscsi and multipath-tools. After removing multipath-tools, mounting iSCSI LUNs works fine! So there are two options:
1. quick fix: mark the conflict in the package meta-data so that they cannot be installed simultaneously
2. slow fix: work out why mounting iSCSI LUNs fails if multipath-tools are installed and fix it.
Personally, I don't mind which..., I'm now happy.
Regards,
Alex Zeffertt