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. Or in the initramfs just do a iscsistart for each session you want to start, then mount, then chroot, then start 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.
