linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Problems with LVM
@ 2006-01-26 11:15 C'est Pierre
  0 siblings, 0 replies; 11+ messages in thread
From: C'est Pierre @ 2006-01-26 11:15 UTC (permalink / raw)
  To: linux-lvm

Hello,

I've been trying to compile Linux 2.6.14-3 on my RHEL-AS-4 instalation
and I can't seem to get it to boot. I've /, /home & /tmp as LVs of
only one VG (surprisingly called vg). My hdds are all IDE and the
distro boots with the generic kernel normally. However, with my
compiled kernel and the initrd image (the I created afterwards
installing the kernel's modules), I can't boot.

The error is the following:

Mounting root file system
mount : error 6 mounting ext3
mount: error 2 mounting none
switching to new root
switchroot: mount failed 22
umount /initrd/dev failed: 2

I am sure you know how to fix, I just can't seem to though. I do have
ext3 as module right now, but I did tests with ext3 built-in, so I
don't think that all I need is to have ext3 built-in  to fix my
problem as I was able to find online through google.

Thanks very much for any sugestions/solutions!
Pierre

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [linux-lvm] Problems with LVM
@ 2004-12-16 19:22 Mattias Runge
  2004-12-21 20:36 ` Alasdair G Kergon
  0 siblings, 1 reply; 11+ messages in thread
From: Mattias Runge @ 2004-12-16 19:22 UTC (permalink / raw)
  To: LVM general discussion and development

Hi

I had a lvm-array with 3 disks � 120gb. One failed and then I could not 
bring the array online. I had one partition spanning the whole array. 
Finaly I tried vgreduce --removemissing, this got rid of the errors, but 
unfortunatly it now seems that the whole lvm-array of the two remaing 
disks is unallocated. My problem is that I would like to get the data of 
the two remaining disks. Is there any way of doing this or did I !@"#� 
up when i did vgreduce --removemissing?
I am using reiserfs on the disk.

Thanks
Mattias

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [linux-lvm] Re: Safely removing a phantom disc-wide PV
@ 2003-07-11 18:28 Chip McArtor
  2003-07-11 19:02 ` [linux-lvm] Problems with LVM Petro
  0 siblings, 1 reply; 11+ messages in thread
From: Chip McArtor @ 2003-07-11 18:28 UTC (permalink / raw)
  To: linux-lvm

Well, I feel sort of dumb for answering my own problem, but since none of the lvm tools seemed to be of any use, as my VG was non-existant, I might as well tell you how I fixed my problem.

Basically, I reassigned the VG of the two corrupt PVs to some dummy VG.  In this case, the real VG was "array" and the dummy VG was "arrey".


#dd if=/dev/hdf of=hdf.head bs=1024 count=1
#sed s/array/arrey/ hdf.head > hdf.test
#dd if=hdf.test of=/dev/hdf bs=1024 count=1

Those commands are pretty self-explanatory.  Upon running vgscan after this, the hdf PV was still there, but instead of being assigned to 'array', it was assigned to 'arrey'.  This meant that 'array' had no corrupt volumes in it, and as such could be loaded without incident.

There's probably a cleaner way of fixing the problem of a bad device-level PV, but this method seems to work pretty well.

-Chip

>In my current setup, I have 4 PVs forming my VG.  Initially, two of the PVs took up only single partitions on separate discs [/dev/hdk2 and /dev/hdi2], while the other two PVs spanned the entirety of another two discs [/dev/hdf and /dev/hdj].
>
>At some point, I installed windows on an entirely different drive, and it must have recognized hdf and hdj as being empty (since they didnt' contain a partition table) and overwrote a bit here and there, corrupting both of those PVs.  Realizing the problem with a device-wide PV, I built the VG again from scratch, this time creating partitions hdf1 and hdj1 which spanned the entire space of those drives.
>
>VG creation was successfully done with the following command:
>vgcreate array /dev/hdk2 /dev/hdi2 /dev/hdf1 and /dev/hdj
>
>The VG creation was a success, and soon I had created an LV and a filesystem on top of that.  After I rebooted, however, I got the following error message:
>
>
>bash-2.05b# vgscan 
>vgscan -- reading all physical volumes (this may take a while...)
>vgscan -- ERROR "vg_read_with_pv_and_lv(): current PV" can't get data of volume group "array" from physical volume(s)
>vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
>vgscan -- WARNING: This program does not do a VGDA backup of your volume group
>
>
>Running pvscan showed me that /dev/hdk2, /dev/hdi2, /dev/hdf1, and /dev/hdj1 were all indeed shown belonging to my VG "array".  However, the old PVs /dev/hdf and /dev/hdj were also present, also pointing to group "array".  Because /dev/hdf and /dev/hdj were corrupt, the VG is now unloadable.  How could I safely remove/disable hdf and hdj, without harming the valid PVs hdf1 and hdj1?  vgremove is inoperable, since my VG "array" in unloadable.  One possibility I was considering was running dd from /dev/zero to certain blocks on hdf and hdj, but I'm afraid to try something like that, since it might very well wipe out the partition tables and destroy hdf1 and hdj1 if I write to the wrong blocks.
>
>Any ideas?
>
>
>-Chip

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-01-26 11:15 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-26 11:15 [linux-lvm] Problems with LVM C'est Pierre
  -- strict thread matches above, loose matches on Subject: below --
2004-12-16 19:22 Mattias Runge
2004-12-21 20:36 ` Alasdair G Kergon
2003-07-11 18:28 [linux-lvm] Re: Safely removing a phantom disc-wide PV Chip McArtor
2003-07-11 19:02 ` [linux-lvm] Problems with LVM Petro
2003-07-13  5:14   ` Heinz J . Mauelshagen
2003-07-13 13:29     ` Petro
2003-07-13 15:26       ` Heinz J . Mauelshagen
2003-07-13 19:35         ` Petro
2003-07-13 22:43           ` Petro
2003-07-15 13:58           ` Heinz J . Mauelshagen
2003-07-15 20:09             ` Petro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).