Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 391809 - System fails to reboot/halt when root is on iSCSI
Summary: System fails to reboot/halt when root is on iSCSI
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-24 20:09 UTC by Hydrar Draconis
Modified: 2012-08-21 07:24 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,4.99 KB, text/plain)
2011-11-24 21:06 UTC, Hydrar Draconis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hydrar Draconis 2011-11-24 20:09:52 UTC
My system installed on iSCSI always hangs on "Killing remaining processes" or "Saving dependency cache" because iscsid gets killed and connection to root severed by the first one.
This keeps causing metadata corruption with ext4 every few reboots, because the only way to get the system to reboot is Sysrq-B, Sysrq-O doesn't work for poweroff, have to actually hold down power button to do that. SysRq-S won't work since disk is disconnected

Reproducible: Always

Steps to Reproduce:
1. Installed on iSCSI, using dracut initramfs since genkernel acted "funny" last I tried with this setup
2. Boot into system
3. Attempt to shut down/reboot
Actual Results:  
System hangs on "Killing remaining processes" or "Saving dependency cache"

Expected Results:  
iSCSI should have been synced and reboot/shutdown should succeed

This is about third time I get data loss from this now, leaving as normal priority, since it's a pretty uncommon setup, will attach emerge --info as soon as I get FS repaired enough to boot it again
Comment 1 Hydrar Draconis 2011-11-24 21:06:47 UTC
Created attachment 293643 [details]
emerge --info

Forgot to mention, using multilib-portage on this, but I don't think it should be interfering with boot process. Don't have any other computers to test this on right now
Comment 2 Christian Ruppert (idl0r) gentoo-dev 2012-01-05 02:43:10 UTC
As a workaround for now:
If you're using DHCP, start e.g. dhcpcd with the -p option to *not* shutdown/reset the interface on shutdown/exit.

Add "-o <pid of iSCSI>" to /etc/conf.d/killprocs to *omit* this pid.
That should allow you to do a clean shutdown/reboot. Note: You can use sub-shells like in a shell script, to get the pid.

The DHCP thingy above is important, as omitting it from killprocs doesn't help because (at least dhcpcd) has still files open for read/write thus the rootfs can't be umounted nor read-only remounted.