Re: Mounting iscsi devices with sles 11

"Alexei_Roudnev" <[email protected]>
Newsgroups gmane.linux.suse.oracle.general
Message-ID <[email protected]>
I am not sure abpout sles11, but you need a patch (which was posted to Novell a few times) to do it @ sles10 sp2. 

I put it here, just in case:

##echo "patching iSCSI:- change LVM to watch out /dev/disk/by-id and wait for the multipath- rescan LVM groups when iscsi login to the targets- mount 'hotplug' devices when lvm find new volumesEdit /etc/lvm/lvm.conf manually if you dont wang lvm changes. Open-iscsi patch is harmless and can be applied in ALL casesDon't forget to add hotplug option to the iSCSI disks and TEST system reboot few timesINCLUDING reboot with 1 iscsi paths down."mv /etc/lvm/lvm.conf /etc/lvm/lvm.conf-ORIG; cp FILES.d/lvm.conf /etc/lvm/lvm.conf## Now patch open-iscsi if it was not pached already#grep lvm /etc/init.d/open-iscsi || patch /etc/init.d/open-iscsi < FILES.d/open-iscsi.patch## Now move all orig and reject files out of /etc/init.d because it can confuse # the system elsewhere#if [ -f /etc/init.d/open-iscsi.orig ]thenmkdir -p /etc/init.d/OLD; mv /etc/init.d/*orig /etc/init.d/*.rej /etc/init.d/OLDecho "Please check how open-iscsi was patched - patch failed.Old files are at /etc/init.d/OLD"fiif [ ! -f /etc/multipath.conf ]then    cp FILES.d/multipath.conf /etc/multipath.conffi## Now enable #chkconfig open-iscsi onchkconfig boot.lvm onchkconfig multipathd onAnd then

iscsi.patch:

*** /etc/init.d/iscsi Mon Jun 25 18:01:15 2007
--- /etc/init.d/iscsi.new Mon Jun 25 18:03:46 2007
***************
*** 219,224 ****
--- 219,230 ----
       touch /var/lock/subsys/iscsi 
   fi
          
+  echo -n "Waiting 10 seconds to allow iSCSI logins to pass thru"
+  sleep 10
+  echo "Done, running boot.lvm start"
+  /etc/init.d/boot.lvm start
+  sleep 5
+  
          # if we have an iSCSI fstab, process it
          if [ -f /etc/fstab.iscsi ] ; then
              echo -n " fsck/mount "
***************
*** 242,248 ****
          echo -n " sync"
          sync
          sleep 3
! 
   if [ -d /sys/class/scsi_host/iscsi ]; then
       for dev in /sys/class/scsi_host/iscsi/device/*; do
    if [ -d $dev ] && [ -f $dev/delete ]; then
--- 248,257 ----
          echo -n " sync"
          sync
          sleep 3
!  
!  /etc/init.d/boot.lvm stop
!  sleep 3
!  
   if [ -d /sys/class/scsi_host/iscsi ]; then
       for dev in /sys/class/scsi_host/iscsi/device/*; do
    if [ -d $dev ] && [ -f $dev/delete ]; then

Don't ask me why SuSe team can't make so simple thing for the 2 years (already) and adjust all 3 components - iscsi, lvm, multipath - properly so that they wil work _out of the box_ (as in RHEL for example).


----- Original Message ----- 
From: "carlopmart" <[email protected]>
To: <[email protected]>
Sent: Monday, April 27, 2009 8:06 AM
Subject: [suse-sles-e] Mounting iscsi devices with sles 11


> Hi all,
> 
>  I have a very strange problem. I am trying to mount automatically iscsi 
> devices on sles test host without luck. My iscsi initiator is configured in 
> automatic mode to connect to iscsitarget host every host reboot. My fstab looks 
> like this:
> 
> 
> /dev/sda1            swap                 swap       defaults              0 0
> /dev/sda2            /                    ext3       acl,user_xattr        1 1
> proc                 /proc                proc       defaults              0 0
> sysfs                /sys                 sysfs      noauto                0 0
> debugfs              /sys/kernel/debug    debugfs    noauto                0 0
> devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
> /dev/disk/by-uuid/67b243ca-fc67-4f6a-b164-7ae8b960c48a  /srv/www/htdocs 
> ext3       acl,user_xattr,hotplug 0 0
> 
>  What am I doing wrong??
> 
>  Many thanks.
> 
> -- 
> CL Martinez
> carlopmart {at} gmail {d0t} com
> _______________________________________________
> suse-sles-e mailing list
> [email protected]
> http://listx.novell.com/mailman/listinfo/suse-sles-e
>

_______________________________________________
suse-sles-e mailing list
[email protected]
http://listx.novell.com/mailman/listinfo/suse-sles-e
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.