Le 13/07/2011 00:09, Mike Christie a écrit :
On 07/12/2011 08:51 AM, Pierre-O wrote:
Hi there !

I'm trying to boot from an iSCSI target using open-iscsi and a ubuntu
karmic revision.

# uname -a
Linux 2.6.35.9 #40 SMP Fri Jul 8 10:27:20 EDT 2011 armv6l GNU/Linux

# iscsid -v
iscsid version 2.0-870

I've managed to build a valid initramfs, to boot on it and get a valid
mount point giving a perfect acces to my iSCSI target contents. But
when my init script chroot to iSCSI rootfs and run real root /sbin/
init execution get unexpectedly stopped and kernel crashes.

So, I did the following test in my initramfs :

# iscsiadm -m node -T iqn.2011-06.net.online:tgt05 --login
Logging in to [iface: default, target: iqn.2011-06.net.online:tgt05,
portal: 192.168.11.42,3260]
Login to [iface: default, target: iqn.2011-06.net.online:tgt05,
portal: 192.168.11.42,3260]: successful
# mount /dev/sda /mnt
After you mount sda, do a killall iscsid, then do the chroot. After you
have changed to the iscsi root. Start iscsid again.

Well, always the same issue :

# mount /dev/sda /mnt
# killall iscsid
# chroot /mnt /sbin/iscsid
Segmentation fault
# chroot /mnt /sbin/iscsid
Segmentation fault
# chroot /mnt /sbin/iscsid
#

I just can't get any execution working the first time while chrooted.


Or in the initramfs just do a iscsistart for each session you want to
start, then mount, then chroot, then start iscsid.

Same results this way :

# iscsistart -i iqn.1993-08.org.debian:01:fce89798abd -t iqn.2011-06.net.online:tgt05 -g 1 -a 192.168.11.42
# mount /dev/sda /mnt
# chroot /mnt /sbin/iscsid
Segmentation fault
# chroot /mnt /sbin/iscsid
Segmentation fault
# chroot /mnt /sbin/iscsid
#



# chroot /mnt /bin/ls /
Segmentation fault
# chroot /mnt /bin/ls /
Segmentation fault
# chroot /mnt /bin/ls /
bin  boot  chroot.sh  dev  etc  home  lib  lost+found  media  mnt
opt  proc  root  sbin  selinux  setup.sh  srv  sys  tmp  usr  var
\

--
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/open-iscsi?hl=en.

Reply via email to