LinHES Forums http://forums.linhes.org/ |
|
Verify a boot script http://forums.linhes.org/viewtopic.php?f=5&t=3422 |
Page 1 of 1 |
Author: | brianmat [ Wed Feb 02, 2005 12:50 pm ] |
Post subject: | Verify a boot script |
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? |
Author: | cesman [ Wed Feb 02, 2005 7:40 pm ] |
Post subject: | |
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? |
Author: | brianmat [ Wed Feb 02, 2005 9:38 pm ] |
Post subject: | |
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 ![]() |
Author: | cesman [ Thu Feb 03, 2005 2:10 pm ] |
Post subject: | |
You're welcome. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |