/srv/irclogs.ubuntu.com/2011/04/04/#upstart.txt

=== ion_ is now known as ion
=== SpamapS_ is now known as SpamapS
=== ion_ is now known as ion
=== Will|- is now known as Will|
=== jMCg_ is now known as jMCg
=== jMCg is now known as zeronull
=== zeronull is now known as jMCg
=== robins is now known as robinsmidsrod
=== ev_ is now known as ev
=== rrerolle_ is now known as rrerolle
=== jMCg_ is now known as jMCg
=== apachelogger_ is now known as apachelogger
bbucommanderHello all.  Not sure if this the right place to ask, but I am trying to run a shell script to mount my RAID 5 disk on boot and am wondering how I can use Upstart to accomplish this.  I followed the basic Upstart tutorials and tried placing a source reference to the script in pre-start and post-start sections of several files, but so far no luck.22:56
bbucommanderI am using Ubuntu 10.10 with latest updates.  My RAID 5 is fakeraid using Intel Matrix Raid tech.22:57
ionIn Ubuntu the udev stuff should handle that. If it doesn’t you probably should report a bug against whatever package provides the required stuff for the fakeraid in question.22:58
bbucommanderThe problem is that my RAID 5 partition is larger than 2 TB, so I have to use GPT for my partition table.  Since dmraid does not support GPT out of the box, I have to run a script calling kpartx to handle the task.22:59
ionkpartx probably should come with the necessary udev stuff to automate that then.23:01
bbucommanderIs there a systematic way to check for udev automation?23:02
bbucommanderOr an easy way? :-)23:02
ionLook in /lib/udev/rules.d23:03
ionPerhaps dpkg -L kpartx | fgrep udev/rules.d23:03
bbucommanderSure enough!  I found: /lib/udev/rules.d/95-kpartx.rules23:04
JanCbbucommander: do you have multiple partitions on the RAID 5 disk ?23:04
bbucommanderNo, just one.23:05
JanCthen why use a partition table at all?  ☺23:05
bbucommanderCould I still read the disk from Windows without one?23:06
JanCmaybe not23:06
JanCno idea23:06
bbucommanderI will look into it.  Good idea, hadn't thought of not using a partition table whatsoever.23:07
JanCI think Windows can mount USB flash sticks without a partition table, so in theory it should be possible23:07
bbucommanderForgive my ignorance of udev, but are all udev rules executed every boot?  Is there way to check if the kpartx rule is firing?23:10
bbucommanderAh, never mind.  I stumbled upon an Ubuntu bug report that essentially cleared up the issue.  The udev rule for kpartx is in fact buggy and needs repair.  Thanks ion and JanC for your help!23:15

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!