On 2/13/2013 6:56 PM, Leland Lucius wrote:
On 2/13/2013 10:07 AM, Peter Oberparleiter wrote:
On 13.02.2013 00:38, Leland Lucius wrote:
Create the following file and remove all of your existing
51-dasd*.rules.

cat /etc/udev/rules.d/51-dasd.rules
# Rule to add all eckd devices
ACTION=="add", SUBSYSTEM=="ccw", DRIVER=="dasd-eckd", ATTR{online}="1"

Note that adding kernel/module parameter dasd=autodetect should achieve
the same result.

That's really weird.  We always specify dasd=autodetect.  I even just
double checked to make sure.  All of the disks are certainly detected,
they just don't come up online.

But, you've got me curious, so I'm going to modify an initrd and see if
the devices are online prior to any initrd processing.  Mayhap something
in boot is putting them offline before udev is getting his mitts on 'em.
  Probably not, but I just HAVE to know.  :-)

Definitely detected but offline no matter if I specify dasd=autodetect
or a device range like dasd=0.0.0000-0.0.ffff.  Even tried
dasd=0.0.0000-0.0.ffff,autodetect for the heck of it.

I just added:

grep -ir '.*' /sys/bus/ccw/devices/*/online

as the second line of the "init" script in the initrd.  The only device
at this point that shows as being online is the console device (0009).

/sys/bus/ccw/devices/0.0.0009/online:1
/sys/bus/ccw/devices/0.0.000c/online:0
/sys/bus/ccw/devices/0.0.000d/online:0
/sys/bus/ccw/devices/0.0.000e/online:0
/sys/bus/ccw/devices/0.0.0190/online:0    <--- disk
/sys/bus/ccw/devices/0.0.0191/online:0    <--- disk
/sys/bus/ccw/devices/0.0.019d/online:0    <--- disk
/sys/bus/ccw/devices/0.0.019e/online:0    <--- disk
/sys/bus/ccw/devices/0.0.0592/online:0    <--- disk
/sys/bus/ccw/devices/0.0.1000/online:0    <--- disk
/sys/bus/ccw/devices/0.0.3000/online:0
/sys/bus/ccw/devices/0.0.3001/online:0
/sys/bus/ccw/devices/0.0.3002/online:0
/sys/bus/ccw/devices/0.0.3200/online:0
/sys/bus/ccw/devices/0.0.3201/online:0
/sys/bus/ccw/devices/0.0.3202/online:0
/sys/bus/ccw/devices/0.0.4000/online:0    <---- disk

Leland

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to