View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 4 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Verify a boot script
PostPosted: Wed Feb 02, 2005 12:50 pm 
Offline
Joined: Wed Nov 12, 2003 11:23 am
Posts: 33
I am almost done with my firewire LVM installation. I have everything working exept for the lvm script.

I have the firewire devices autodetecting at boot (yay), so the hard part is over.

I followed the Wiki for adding the lvm script at boot by using:

update-rc.d lvm start 26 S . stop 82 1 .

Now, the problem is it does not appear this actually gets called at boot. Webmin shows it is set to load at boot time and everything seems to be configured properly.

If I boot my Myth box and then ssh in and fire off:

/etc/init.d/lvm start && mount /dev/vg/myth /myth

Everything is happy and ready to go. How can I tell (or where should I look) to see if this is really being started?

If I can get past this then I think I have it about set to run with firewire. For those that are wondering, a standard firewire setup runs videos without a hitch. Some people have questioned the speed factor here, but there have been no problems at all with watching a ripped movie or listening to music. I am about to pull the trigger on getting a 4 or 8 bay setup so I can drop a few more disks in since the process (once it runs) is extremely easy to maintain.

Ok, so where do I go from here?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 02, 2005 7:40 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
Is /dev/vg/myth in /etc/fstab? If it isn't, it doesn't matter if the script is set to start, /myth won't be mounted. ls /etc/rc3.d (maybe rc5.d)is lvm there?

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 02, 2005 9:38 pm 
Offline
Joined: Wed Nov 12, 2003 11:23 am
Posts: 33
Here is /etc/fstab:

Code:
# /etc/fstab: filesystem table.
#
# filesystem  mountpoint  type  options  dump  pass
/dev/hda1  /  ext3 defaults,errors=remount-ro  0  1
/dev/hda3  /cache  auto  defaults,auto  0  2
#/dev/hda4  /myth  auto  defaults,auto  0  2
/dev/vg/myth /myth auto  defaults,auto  0  2

proc  /proc  proc  defaults  0  0
/dev/fd0  /floppy  vfat  defaults,user,noauto,showexec,umask=022  0  0
/dev/cdrom /cdrom  iso9660  defaults,ro,user,noexec,noauto  0  0
/dev/dvd /dvd  iso9660  defaults,ro,user,noexec,noauto  0  0
/dev/cdaudio /cdaudio  iso9660  defaults,ro,user,noexec,noauto  0  0
# Added by KNOPPIX
/dev/hda2 none swap defaults 0 0



It's in rc5.d
Code:
root@htpc:~ # ls -l /etc/rc5.d
total 0
lrwxrwxrwx    1 root     root           18 Jan 23 00:45 S10sysklogd -> ../init.d/sysklogd
lrwxrwxrwx    1 root     root           15 Jan 23 00:45 S11klogd -> ../init.d/klogd
lrwxrwxrwx    1 root     root           14 Jan 23 18:13 S12alsa -> ../init.d/alsa
lrwxrwxrwx    1 root     root           17 Jan 23 00:45 S12kerneld -> ../init.d/kerneld
lrwxrwxrwx    1 root     root           13 Jan 23 00:45 S14ppp -> ../init.d/ppp
lrwxrwxrwx    1 root     root           15 Jan 23 00:46 S20Sound -> ../init.d/Sound
lrwxrwxrwx    1 root     root           16 Jan 23 00:46 S20apache -> ../init.d/apache
lrwxrwxrwx    1 root     root           15 Jan 23 00:45 S20inetd -> ../init.d/inetd
lrwxrwxrwx    1 root     root           15 Jan 23 23:18 S20local -> ../init.d/local
lrwxrwxrwx    1 root     root           17 Jan 23 00:45 S20logoutd -> ../init.d/logoutd
lrwxrwxrwx    1 root     root           17 Jan 23 00:46 S20makedev -> ../init.d/makedev
lrwxrwxrwx    1 root     root           15 Jan 23 00:46 S20mysql -> ../init.d/mysql
lrwxrwxrwx    1 root     root           20 Jan 23 00:15 S20nvidia-glx -> ../init.d/nvidia-glx
lrwxrwxrwx    1 root     root           13 Jan 23 00:46 S20ssh -> ../init.d/ssh
lrwxrwxrwx    1 root     root           16 Jan 23 00:03 S20webmin -> ../init.d/webmin
lrwxrwxrwx    1 root     root           24 Jan 23 00:46 S25mythtv-backend -> ../init.d/mythtv-backend
lrwxrwxrwx    1 root     root           15 Jan 23 00:46 S35lircd -> ../init.d/lircd
lrwxrwxrwx    1 root     root           17 Jan 23 00:46 S40hotplug -> ../init.d/hotplug
lrwxrwxrwx    1 root     root           13 Jan 23 00:46 S89atd -> ../init.d/atd
lrwxrwxrwx    1 root     root           14 Jan 23 00:46 S89cron -> ../init.d/cron
lrwxrwxrwx    1 root     root           13 Jan 23 00:46 S99gdm -> ../init.d/gdm
lrwxrwxrwx    1 root     root           15 Jan 23 14:30 S99lvm -> /etc/init.d/lvm
lrwxrwxrwx    1 root     root           19 Jan 23 00:46 S99rmnologin -> ../init.d/rmnologin
lrwxrwxrwx    1 root     root           17 Jan 24 01:33 S99samba -> /etc/init.d/samba
lrwxrwxrwx    1 root     root           28 Feb  2 08:15 S99scsitools-pre.sh -> /etc/init.d/scsitools-pre.sh
lrwxrwxrwx    1 root     root           24 Feb  2 08:15 S99scsitools.sh -> /etc/init.d/scsitools.sh


So, it's there and fstab works, but I still need to run the above LVM commands or I cannot make the call to /mount

After looking at it (and thanks for jarring my mind on this one cesman), I see that LVM is being called before the scsitools which should happen first.

It needs to fire like this:

scsitools-pre.sh
scsitools
lvm

I'll head over to Google for a bit to see what I can find out about this. I am sure it is some admin 101 stuff, but I know enough Linux to be very dangerous.

Thanks for the push in the right direction :)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 03, 2005 2:10 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
You're welcome.

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 76 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu