You are not logged in.
I want to set up my system with LVM. The first time around I followed the Wiki and when I rebooted I got error 15 in Grub (basically, no file was found). The wiki says to do
# mkinitcpio -g /boot/kernel26.img
but I could not complete this step as the file did exist... there was only Grub and some other directories in /boot. Perhaps this is because I installed Grub to /dev/sda1 instead of to /dev/sda? (The LVM group was on /dev/sda2)
After the Error 15 in Grub, I tried starting from scratch. Now, when I try to do
# pvcreate /dev/sda2
I get an error
Can't initialize physical volume "/dev/sda2" of volume group "VolGroup00" without -ff
I've tried
#dd if=/dev/zero of=/dev/sda bs=1k count=1
but dd seems to complete instantly, which makes me wonder if it is doing anything at all. And, of course, I still get the error about initialization if I try to recreate the LVM.
Last edited by badhat (2011-07-28 23:19:00)
Offline
dd seems to complete instantly
Of course it is, you're only asking it to write 1kB.
Offline
Is there a reason why the pvcreate program still sees VolGroup00? I've reformatted the disk with cfdisk and fdisk, wrote changes, and rebooted, but the old volume group remains.
Offline
I had this happen once and the only way I found to get rid of the old volgroup was to forcefully remove it with
vgremove -f volgroup000
You may need to remove the logical volumes you made before doing the volume group and then the physical volume. You have to do them in order, backwards, from how you made them in the first place. Sounds complicated but it's not that bad.
Offline
That worked. And I have LVM working now.
Offline