LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-29-2009, 09:01 AM   #1
don_wombat_73
Member
 
Registered: Sep 2005
Posts: 60

Rep: Reputation: 15
LVM needs e2fsck after Upgrade from Kubuntu 8.10 x64 to 9.04 x64


For the most part, the upgrade went fine. But I'm stuck with manually mounting my LVM every time.

Here is the output of /var/log/fsck/checkfs:

dpich@dpich-desktop:~$ sudo cat /var/log/fsck/checkfs
Log of fsck -C3 -R -A -a
Sun Apr 26 19:10:24 2009

fsck 1.41.4 (27-Jan-2009)
fsck.ext3: No such file or directory while trying to open /dev/Storage/Stuff
/dev/Storage/Stuff:
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>

fsck died with exit status 8

Sun Apr 26 19:10:24 2009
----------------
dpich@dpich-desktop:~$
 
Old 04-29-2009, 09:56 AM   #2
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Bullseye
Posts: 357

Rep: Reputation: 49
is the manual mouting working ?
are you (without any warning/error) able to mount the volume /dev/Storage/Stuff manually ?
when you are able to mount, is the VG Storage already active or do you manually activate it ?
 
Old 04-29-2009, 01:00 PM   #3
don_wombat_73
Member
 
Registered: Sep 2005
Posts: 60

Original Poster
Rep: Reputation: 15
Yes. It works perfectly if I do:

vgscan
vgchange -ay
mount

When I do those all in order, my lvm becomes active. Manually works like expected.
 
Old 04-30-2009, 05:13 AM   #4
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Bullseye
Posts: 357

Rep: Reputation: 49
the problem is somehow the machine is not enabling your LVM volumes during boot.
Based on the distribution, is the lvm service enabled during startup ?
in fedora it is netfs (which does the lvm work and mounts all the LVs)
in debian it is lvm2

make sure these are enabled in your runlevel and at the rcS.d level
 
Old 04-30-2009, 12:14 PM   #5
don_wombat_73
Member
 
Registered: Sep 2005
Posts: 60

Original Poster
Rep: Reputation: 15
Please help me understand what you are saying. I rechecked my script in which is /etc/init.d/lvm.

dpich@dpich-desktop:/$ cat /etc/init.d/lvm
#!/bin/sh

case "$1" in
start)
/sbin/vgscan
/sbin/vgchange -ay
;;
stop)
/sbin/vgchange -an
;;
restart|force-reload)
;;
esac

exit 0

dpich@dpich-desktop:/$


When I tried to update the service, I got the following:

dpich@dpich-desktop:/$ sudo update-rc.d lvm defaults
update-rc.d: warning: /etc/init.d/lvm missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
System startup links for /etc/init.d/lvm already exist.
dpich@dpich-desktop:/$


Am I missing something basic?
 
Old 04-30-2009, 04:53 PM   #6
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Bullseye
Posts: 357

Rep: Reputation: 49
what is the distro you are using ?
based on this the commands may change
in case fedora ... redhat versions you have to use
ntsysv --level S
and enable lvm

in case of debian
manually add lvm at a top runlevel (<20)
 
Old 04-30-2009, 05:13 PM   #7
don_wombat_73
Member
 
Registered: Sep 2005
Posts: 60

Original Poster
Rep: Reputation: 15
Running into some other problems with the upgrade from 8.10 to 9.04, I decided to scrap my 8.10 system and start fresh with 9.04.

Following this:
http://www.tldp.org/HOWTO/LVM-HOWTO/...iptdebian.html
still gives me a problem loading the lvm. I still have to manually run 'vgscan', 'vgchange -ay', and mount to get the lvm working.

I'm looking for bugs via Google, but nothing has come up. How else can I troubleshoot this?

Last edited by don_wombat_73; 05-10-2009 at 08:17 PM. Reason: Actually still doesn't work
 
  


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
Kubuntu 6.06/ x64. I want to eliminate login at startup brocki1 Linux - Desktop 2 11-06-2006 12:36 PM
Kubuntu dapper x64 intentsly Linux - Games 2 07-11-2006 12:08 AM
X64 Os meping Linux - Software 1 05-21-2006 06:04 PM
can i run linux mandriver x64 with windows x64 bit if so wich one should i install fi malmac2000 Linux - Software 2 04-26-2006 08:04 AM
Azureus and x64 purelithium Mandriva 1 11-16-2005 11:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:31 AM.

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
Open Source Consulting | Domain Registration