View previous topic :: View next topic |
Author |
Message |
noneya n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 16 Jun 2004 Posts: 1
|
Posted: Wed Jun 16, 2004 2:17 am Post subject: lvm2 and checkfs |
|
|
I am fairly new with gentoo and have ran into a problem with lvm2 and have found a work around, but I'm hoping someone can point me to the fix.
I installed gentoo from a live-cd for an athlon-xp.
I decided to add some hard drives and followed the LVM2 guide at http://www.gentoo.org/doc/en/lvm2.xml as close as possible.
Here are my symptoms.
On boot I receive a segmentation fault during the LVM initialization. I believe that has to do with the vgscan timeout problem posted elsewhere. I'm pretty sure the seg fault causes this line to fail in /etc/init.d/checkfs
if [ "$?" -eq 0 ] && [ -x /sbin/vgchange ] && \
[ -f /etc/lvmtab -o -d /etc/lvm ]
My work around is to add the else statement below.
if [ -z "${CDBOOT}" -a -x /sbin/vgscan ] && \
[ -d /proc/lvm -o "$(grep device-mapper /proc/misc 2>/dev/null)" ]
then
ebegin "Setting up the Logical Volume Manager"
#still echo stderr for debugging
/sbin/vgscan >/dev/null
if [ "$?" -eq 0 ] && [ -x /sbin/vgchange ] && \
[ -f /etc/lvmtab -o -d /etc/lvm ]
then
/sbin/vgchange -a y >/dev/null
else
/sbin/vgchange -a y >/dev/null
fi
eend $? "Failed to setup the LVM"
fi
I first thought the test was failing because the lvmtab wasn't present on my system. So, I created it and put the name of my volume group into it. I believe this file is supoosed to be generated during the lvm2 install or during the vgscan. After creating the lvmtab and rebooting, the problem with the lvm being initialized during boot still occurred. However, with the above fix the seg fault still occurs but my volume group is now available which my fstab can now mount.
So, should I worry about the seg fault? if so, how can I fix it? I have tried filters in the lvm.conf file to limit the time vgscan takes but that doesn't seem to work. The volume group mounts (with my else fix) but I haven't written anything to it yet. I will be soon, but I don't want to take any chances on further problems down the line.
Let me know if I'm totally lost or I'm just over looking something. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jackthebookie n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 23 Feb 2004 Posts: 7
|
Posted: Tue Jun 22, 2004 9:49 pm Post subject: bump |
|
|
Hi,
I'm wondering if you ever solved the segentation fault?
Thanks |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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 vote in polls in this forum
|
|