iscsi mounts in fstab break the booting sequence

Hello there everyone

I am experiencing the following problem with my iscsi volumes - I believe it is related to the way I am trying to mount the iscsi targets through my /etc/fstab file:

First let me cite a copy of it

01 /dev/disk/by-id/md-uuid-98e8ec2e:e9201e85:444f2355:763a47ca-part1 swap swap defaults 0 0
02 /dev/disk/by-id/md-uuid-98e8ec2e:e9201e85:444f2355:763a47ca-part2 / ext4 acl,user_xattr 1 1
03 /dev/disk/by-id/md-uuid-98e8ec2e:e9201e85:444f2355:763a47ca-part3 /home ext4 acl,user_xattr 1 2
04 proc /proc proc defaults 0 0
05 sysfs /sys sysfs noauto 0 0
06 debugfs /sys/kernel/debug debugfs noauto 0 0
07 devpts /dev/pts devpts mode=0620,gid=5 0 0
08 /dev/disk/by-uuid/d2768de7-2207-40e7-b919-37cf02f11805 /iSCSI/TS809/Music ext4 acl,user_xattr 0 0
09 /dev/disk/by-uuid/b962558b-fd13-4e8f-bee1-d4950ddc7a48 /iSCSI/TS809/Data ext4 acl,user_xattr 0 0
10 192.168.1.100:/QBackup /nfs/TS809/QBackup nfs defaults,noauto,_netdev 0 0
11 192.168.1.100:/Qdownload /nfs/TS809/QDownload nfs defaults,noauto,_netdev 0 0

the iscsi volumes are those on lines 08 and 09

Whenever I am booting the machine (opensuse 12.1), the boot procedure fails and I am given the emergency recovery mode: there I have to comment out lines 08 and 09 from my fstab file, reboot, login as root, login into the iscsi shares, remove the comments from the fstab file and perform a “mount -a”. After that everything works o.k.

I just wonder if there might be some other, easier way!

Any suggestions ?

mimis

Was it working and just stopped? or did you do a upgrade and it stopped or something else?

Sounds like a timing problem (ie the source is not ready when the new systemD tries to mount). Have you tried booting with systemV??

1st thanks for taking the pain to look over my problem :wink:

As to your question: no, no upgrade caused it. It was like that from the begining: actually, mounting the targets through yast2 was a failure. The iscsi-target module of yast instisted to try mounting the targets as non-password-protected (the respective “No Authentication” tick-box becomes ticked every time I run the iscsi module of yast). I, therefore, wrote a small script based on the iscsiadm command that I execute after my PC boots in order to mount my targets manually. The real problem seems to be the respective entries in fstab that break the booting process.

mimis

mimis60 wrote:
> I therefore, wrote a small script based on the iscsiadm command that I
> execute after my PC boots in order to mount my targets manually. The
> real problem seems to be the respective entries in fstab that break the
> booting process.

Surely your fstab lines should have ‘noauto’ options if you’re mounting
manually then?

BTW, when posting computer output like fstab, please use CODE tags

On 2012-04-11 23:56, mimis60 wrote:
> I just wonder if there might be some other, easier way!

You can use the option “nofail”, so that a failure does not stop the boot
process. But you will have to mount them manually, and a failure at that
point will not produce an error message, it will silently fail.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)