* [linux-lvm] pvmove didn't work - now system won't boot
@ 2006-03-09 15:29 Chad Rebuck
2006-03-09 16:53 ` Luca Berra
0 siblings, 1 reply; 6+ messages in thread
From: Chad Rebuck @ 2006-03-09 15:29 UTC (permalink / raw)
To: linux-lvm
I ran "pvmove -v /dev/hdc2" to move the data off the drive but it
stopped before any real drive activity happened. The system was stuck
for about 30 minutes not doing anything so I powered off/on. Now it
boots into a bash prompt but suggests I run fsck manually. I noticed
that lvm only reported that 2 of the 3 physical volumes were found. I
can't run any lvm commands from here as I get a 'Locking type 1
initialization failed'.
What steps do I take to get the system to boot again? The root dir is
part of the lvm volume. The /boot is separate from the lvm volume but
maybe this is required anyway for lvm to work.
Thanks,
Chad
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-lvm] pvmove didn't work - now system won't boot
2006-03-09 15:29 [linux-lvm] pvmove didn't work - now system won't boot Chad Rebuck
@ 2006-03-09 16:53 ` Luca Berra
2006-03-09 17:36 ` Chad Rebuck
0 siblings, 1 reply; 6+ messages in thread
From: Luca Berra @ 2006-03-09 16:53 UTC (permalink / raw)
To: linux-lvm
On Thu, Mar 09, 2006 at 10:29:41AM -0500, Chad Rebuck wrote:
>I ran "pvmove -v /dev/hdc2" to move the data off the drive but it
>stopped before any real drive activity happened. The system was stuck
>for about 30 minutes not doing anything so I powered off/on. Now it
>boots into a bash prompt but suggests I run fsck manually. I noticed
>that lvm only reported that 2 of the 3 physical volumes were found. I
>can't run any lvm commands from here as I get a 'Locking type 1
>initialization failed'.
>
run lvm commands with --ignorelockingfailure option
>What steps do I take to get the system to boot again? The root dir is
>part of the lvm volume. The /boot is separate from the lvm volume but
>maybe this is required anyway for lvm to work.
>
>Thanks,
>Chad
>
>_______________________________________________
>linux-lvm mailing list
>linux-lvm@redhat.com
>https://www.redhat.com/mailman/listinfo/linux-lvm
>read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
--
Luca Berra -- bluca@comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-lvm] pvmove didn't work - now system won't boot
2006-03-09 16:53 ` Luca Berra
@ 2006-03-09 17:36 ` Chad Rebuck
2006-03-10 0:23 ` Chad Rebuck
0 siblings, 1 reply; 6+ messages in thread
From: Chad Rebuck @ 2006-03-09 17:36 UTC (permalink / raw)
To: LVM general discussion and development
Thanks
Seems like some commands like the --ignorelockingfailure and some don't
pvscan shows /dev/hdc2 as [2g / 2g free]
and it my other drive now has 2g less free space so do I assume the
transfer of data worked correctly?
Now I need to run vgreduce I suppose to remove that drive from the
group. However, the ignorelockingfailure option doesn't work. Do I
just boot from a recovery cd and delete the lock file in /var/log/lvm
to proceed?
Chad
On 3/9/06, Luca Berra <bluca@comedia.it> wrote:
> On Thu, Mar 09, 2006 at 10:29:41AM -0500, Chad Rebuck wrote:
> >I ran "pvmove -v /dev/hdc2" to move the data off the drive but it
> >stopped before any real drive activity happened. The system was stuck
> >for about 30 minutes not doing anything so I powered off/on. Now it
> >boots into a bash prompt but suggests I run fsck manually. I noticed
> >that lvm only reported that 2 of the 3 physical volumes were found. I
> >can't run any lvm commands from here as I get a 'Locking type 1
> >initialization failed'.
> >
> run lvm commands with --ignorelockingfailure option
>
> >What steps do I take to get the system to boot again? The root dir is
> >part of the lvm volume. The /boot is separate from the lvm volume but
> >maybe this is required anyway for lvm to work.
> >
> >Thanks,
> >Chad
> >
> >_______________________________________________
> >linux-lvm mailing list
> >linux-lvm@redhat.com
> >https://www.redhat.com/mailman/listinfo/linux-lvm
> >read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
> --
> Luca Berra -- bluca@comedia.it
> Communication Media & Services S.r.l.
> /"\
> \ / ASCII RIBBON CAMPAIGN
> X AGAINST HTML MAIL
> / \
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-lvm] pvmove didn't work - now system won't boot
2006-03-09 17:36 ` Chad Rebuck
@ 2006-03-10 0:23 ` Chad Rebuck
2006-03-10 15:57 ` Chad Rebuck
0 siblings, 1 reply; 6+ messages in thread
From: Chad Rebuck @ 2006-03-10 0:23 UTC (permalink / raw)
To: LVM general discussion and development
When I boot my system the two PVs are found, but it drops me to a
prompt when attempting to start LVM. It says to run fsck manually
because there is a superblock or partition problem. If I do run fsck
on /dev/volgroup/logvol it can't fix the problems because of a write
error. I believe all my files are intact on the two remaining drives
but I just can't find out what needs to be done. Between the man
pages and everything I have read so far I just can't figure it out.
If my root fs is on lvm I really have no way to copy/paste the output
of all these various commands. How am I supposed to go about doing
so?
As my system boots it is trying to read PV or LV data from /dev/hdd -
which is not one of my drives now. Is some part of LVM config trying
to read from this drive? I ran "grep -r hdd /etc/lvm" and only found
references to this drive in the older configs, but it isn't in the
latest config.
Still looking for help,
Chad
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-lvm] pvmove didn't work - now system won't boot
2006-03-10 15:57 ` Chad Rebuck
@ 2006-03-10 15:52 ` Josef Whiter
0 siblings, 0 replies; 6+ messages in thread
From: Josef Whiter @ 2006-03-10 15:52 UTC (permalink / raw)
To: LVM general discussion and development
Hello,
Yeah you'll want to reduce the size of your filesystem, though you might want to
back stuff up first (dd and such), just incase, since the last time i checked
(which admittedly has been a while) this feature would sometimes result in an
unusable filesystem. Thank you,
Josef
On Fri, Mar 10, 2006 at 10:57:02AM -0500, Chad Rebuck wrote:
> I am confident someone else will read and reply someday so I'll keep posting :)
>
> I believe the source of my problem is that I reduced the size of my LV
> by 10G to make room for the PV I moved. However, I did not reduce the
> filesystem by 10G so fsck is seeing the filesystem is too big for the
> LV.
>
> If I run 'e2fsadm -L-10G /dev/pv00/lv00' then maybe everything will
> work once again?
>
> This util wasn't available on my fedora 4 rescue CD but maybe I can
> find it on knoppix or another rescue disk.
>
> My file system is ext3. Is this any problem with versions of e2fsadm
> I am likely to find on popular live or recovery CDs?
>
> Chad
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-lvm] pvmove didn't work - now system won't boot
2006-03-10 0:23 ` Chad Rebuck
@ 2006-03-10 15:57 ` Chad Rebuck
2006-03-10 15:52 ` Josef Whiter
0 siblings, 1 reply; 6+ messages in thread
From: Chad Rebuck @ 2006-03-10 15:57 UTC (permalink / raw)
To: LVM general discussion and development
I am confident someone else will read and reply someday so I'll keep posting :)
I believe the source of my problem is that I reduced the size of my LV
by 10G to make room for the PV I moved. However, I did not reduce the
filesystem by 10G so fsck is seeing the filesystem is too big for the
LV.
If I run 'e2fsadm -L-10G /dev/pv00/lv00' then maybe everything will
work once again?
This util wasn't available on my fedora 4 rescue CD but maybe I can
find it on knoppix or another rescue disk.
My file system is ext3. Is this any problem with versions of e2fsadm
I am likely to find on popular live or recovery CDs?
Chad
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-03-10 16:08 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-09 15:29 [linux-lvm] pvmove didn't work - now system won't boot Chad Rebuck
2006-03-09 16:53 ` Luca Berra
2006-03-09 17:36 ` Chad Rebuck
2006-03-10 0:23 ` Chad Rebuck
2006-03-10 15:57 ` Chad Rebuck
2006-03-10 15:52 ` Josef Whiter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox