LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-30-2009, 08:51 PM   #1
CyberMonk6
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Rep: Reputation: 0
LVM (pvmove) problem


I have a frightening problem after a recent attempt at move from a RAID-5 to a RAID-6 (using mdadm) with the help of LVM.
I'm running on Ubuntu 9.04, currently with one degraded RAID-5 and one degraded RAID-6 (both still operational).

I followed this process: http://www.fedoraforum.org/forum/sho...d.php?t=213698

However, I was forced to force one of the steps using the -ff option because of an error that
I unfortunately don't recall. (It was either vgextend /dev/vg0 /dev/md1 or pvmove -v /dev/md0 that needed to be forced,
but the move took so long that I no longer remember which it was.) I don't know that I should have, however, as the
pvmove process is now failing to complete, and I'm stumped.

My setup is one volume group (vg0), which formerly had only one physical volume (/dev/md0), but to which I added
the degraded RAID-6 (/dev/md1) for the process in the above-linked post. I had to force the a step, as mentioned--if
I recall, the error that required the force referenced a duplicate name or something like that--but afterward pvmove seemed
to be going alright. However, pvmove now seems to be going awry. On a fresh boot, when I issue "sudo pvmove -v /dev/md0",
here's the message I receive:

File descriptor 5 left open
Finding volume group "vg0"
Detected pvmove in progress for /dev/md0
Found volume group "vg0"
Found volume group "vg0"
Found volume group "vg0"
Checking progress every 15 seconds
/dev/md0: Moved: 100.0%
Updating volume group metadata
Creating volume group backup "/etc/lvm/backup/vg0" (seqno 1346).
Found volume group "vg0"
Found volume group "vg0"
Suspending vg0-backup (252:1) with device flush
Suspending vg0-pvmove0 (252:0) with device flush
Found volume group "vg0"
Found volume group "vg0"
Suspending vg0-data (252:2) with device flush
Found volume group "vg0"
Found volume group "vg0"
Found volume group "vg0"
Loading vg0-pvmove0 table
Suppressed vg0-pvmove0 identical table reload.
Resuming vg0-pvmove0 (252:0)
Found volume group "vg0"
Loading vg0-pvmove0 table
Suppressed vg0-pvmove0 identical table reload.
Loading vg0-backup table
Suppressed vg0-backup identical table reload.
Resuming vg0-backup (252:1)
Found volume group "vg0"
Loading vg0-pvmove0 table
Suppressed vg0-pvmove0 identical table reload.
Loading vg0-data table
Suppressed vg0-data identical table reload.
Resuming vg0-data (252:2)

This repeats indefinitely until the system finally seems to be unable to handle it (a "ps -A" shows a huge number of
processes named "lvm"). vg0-data is actually available for a little bit upon booting at its mounted point of /media/data,
and vg0-backup doesn't seem to be mounted any longer, but after a few minutes I can no longer access vg0-data
(presumably because some process here is going crazy).

In any case, I'm very much a novice here, and any help would be sincerely appreciated. The fact that I can still access
my data, if only for a short while on a fresh boot, is heartening, but I'm worried about losing data. Thanks in advance for
any assistance, and let me know if I've left out any needed information.
 
Old 11-30-2009, 11:48 PM   #2
CyberMonk6
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Looked back at my log and this is the step where I had to force something:

> sudo pvcreate /dev/md1
Found duplicate PV qX0uCfI4rv8TsYonwcM3L1S9gGwOvcjw: using /dev/md0 not /dev/md1
get_pv_from_vg_by_id: vg_read failed to read VG fVSm
Can't initialize physical volume "/dev/md1" of volume group "vg0" without -ff
 
  


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
Removing Physical Disk from LVM via pvmove jamoody Linux - Newbie 2 07-07-2012 02:33 PM
LVM / PVMOVE ? Disk Image Ammad Linux - General 0 03-01-2009 11:28 AM
Logical Volume Management "pvmove" Question jamida Linux - Software 1 02-23-2008 10:56 AM
Red Hat and pvmove bartojc Red Hat 2 08-17-2006 07:37 AM
lost power during a pvmove operation... matt.x33 Linux - Software 1 06-12-2005 10:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:44 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