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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-29-2009, 09:01 AM
|
#1
|
Member
Registered: Sep 2005
Posts: 60
Rep:
|
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:~$
|
|
|
04-29-2009, 09:56 AM
|
#2
|
Member
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Bullseye
Posts: 357
Rep:
|
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 ?
|
|
|
04-29-2009, 01:00 PM
|
#3
|
Member
Registered: Sep 2005
Posts: 60
Original Poster
Rep:
|
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.
|
|
|
04-30-2009, 05:13 AM
|
#4
|
Member
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Bullseye
Posts: 357
Rep:
|
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
|
|
|
04-30-2009, 12:14 PM
|
#5
|
Member
Registered: Sep 2005
Posts: 60
Original Poster
Rep:
|
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?
|
|
|
04-30-2009, 04:53 PM
|
#6
|
Member
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Bullseye
Posts: 357
Rep:
|
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)
|
|
|
04-30-2009, 05:13 PM
|
#7
|
Member
Registered: Sep 2005
Posts: 60
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 11:31 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|