LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-25-2013, 01:38 PM   #1
alendar
LQ Newbie
 
Registered: Apr 2013
Posts: 2

Rep: Reputation: Disabled
Newbie, found bug and possible fix in SW 14 /etc/rc.d/rc.6 (LVM)


Hello,

I am learning linux, since I'm unemployed and have little better to do. I chose Slackware 14 after a few distros, and I like it - it's a bastard just like me!

I used the standard menu installation, all packages, and I had to modify the lilo.conf and fstab, since I'm mixing my PATA and SATA drives out of sheer stubbornness. I'm ctrl-alt-deleting from the main console (not in X), and the reboot locks up after stdout message " 0 logical volume(s) in volume group "vol_grp1" now active".

I added "set -x" to the /etc/rc.d/rc.6 script so I could get some more detail, and I see it's locking up on line 247:

Code:
  /sbin/vgchange -an --ignorelockingfailure
I looked at the options for vgchange, and it included --noudevsync, which made me wonder if udevd had been shut down already. At line 171 it was:

Code:
  sh /etc/rc.d/rc.udev force-stop
So I added "--noudevsync" to the vgchange arguments, since udevd was off anyway, and it fixed the reboot problem - no more hang.

Being a newb, (first post), I didn't want to log this anywhere else.

FYI, for any fixers.

Slackware 14 64, kernel 3.2.29 with SMP on AMD.
rc.6 version: 2.47 Sat Jan 13 13:37:26 PST 2001
author: Miquel van Smoorenburg, Patrick J. Volkerding.
multiuser mode.

May be the fact that I haven't mounted any of the LVMs yet, but I was trying to just get a full boot/reboot cycle to work before I added anything beyond a boot drive.

Jeff
 
Old 04-25-2013, 03:02 PM   #2
Nbiser
Member
 
Registered: Oct 2012
Location: Maryland
Distribution: Fedora, Slackware, Debian, Ubuntu, Knoppix, Helix,
Posts: 302
Blog Entries: 7

Rep: Reputation: 44
I am just a little unclear on what the problem is.....At one point in you post you said that you had fixed the problem. Please clarify!

Cheers,
Nbiser
 
1 members found this post helpful.
Old 04-26-2013, 01:59 PM   #3
alendar
LQ Newbie
 
Registered: Apr 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi Nbiser,

The problem was that my Slackware 14 installation would not reboot when I pressed ctrl-alt-delete. It started the shutdown cycle and hung after the message " 0 logical volume(s) in volume group "vol_grp1" now active" displays on the screen. I was able to isolate what caused the hang. It was because the /etc/rc.d/rc.6 script first shuts down udevd, and then tries to shut down lvm. But the lvm daemon tries to sync with the udev daemon, so I added --noudevsync to the lvm shutdown command vgchange, and the reboot was fixed. My installation now reboots perfectly.

I was hoping someone who owned the rc.6 script could modify it more appropriately than I could. I may be the only one experiencing this bug. It may only have occurred because I had no active/mounted logical volumes when I tried to go to level 6.

I probably just made it more confusing. Sorry.

I'd post the rc.6 script, but I haven't got any communication up between my Windows computer and my linux box yet. I'm trying to isolate installation issues in Slackware. Maybe I can enhance the Slackware installer? It needs enhancement for us weirdos with crazy boxes.
 
Old 04-26-2013, 02:13 PM   #4
Nbiser
Member
 
Registered: Oct 2012
Location: Maryland
Distribution: Fedora, Slackware, Debian, Ubuntu, Knoppix, Helix,
Posts: 302
Blog Entries: 7

Rep: Reputation: 44
Quote:
Originally Posted by alendar View Post
Hi Nbiser,

The problem was that my Slackware 14 installation would not reboot when I pressed ctrl-alt-delete. It started the shutdown cycle and hung after the message " 0 logical volume(s) in volume group "vol_grp1" now active" displays on the screen. I was able to isolate what caused the hang. It was because the /etc/rc.d/rc.6 script first shuts down udevd, and then tries to shut down lvm. But the lvm daemon tries to sync with the udev daemon, so I added --noudevsync to the lvm shutdown command vgchange, and the reboot was fixed. My installation now reboots perfectly.

I was hoping someone who owned the rc.6 script could modify it more appropriately than I could. I may be the only one experiencing this bug. It may only have occurred because I had no active/mounted logical volumes when I tried to go to level 6.

I probably just made it more confusing. Sorry.

I'd post the rc.6 script, but I haven't got any communication up between my Windows computer and my linux box yet. I'm trying to isolate installation issues in Slackware. Maybe I can enhance the Slackware installer? It needs enhancement for us weirdos with crazy boxes.
I've never had this problem. However, it seems to me that you have fixed it. As long as the system continues to function properly you should be OK.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
want to fix the bug kpadhy90 Linux - Newbie 3 09-01-2011 02:15 AM
please fix the bug lipun4u Programming 3 02-21-2011 03:49 PM
Bug#314905 bug fix for Ubuntu and gcc is 4.4.1 bostan Linux - General 1 12-11-2010 01:35 PM
xorg-x11-libxcb Java fix for BOINC etc.... Found Bug fixed but where do I get it rundarm Fedora 4 12-10-2007 05:10 PM
Bug Fix Ctp. Obvious Linux - Newbie 5 08-02-2004 07:58 AM


All times are GMT -5. The time now is 08:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration