[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] Help : vg not accessible



Hello, 
It seems that diskdrake uses a pvcreate to add the pv in the vg. 
After I made a lvextend on the lv mounted as / of 500Mb and a 
rizerfsresize. 
This was working fine. The problem occured after reboot. 
 
I did not run lilo to recreate the Master boot sector and may be it is 
one 
problem as / in a lv. 
 
I tried the recue disk, but Mandrake did not include the lvmtools, so I 
tried a 
new installation. The installation process told me that there was illegal 
division by 0 when acessing the information of the vg. So i did not 
change 
anything an stopped the installation, (switch off the pc because there is 
no 
sofware abort possible without change of the disk data at this stage of 
the 
installation). 
 
As I had no solution on the portable, I took the disk out of my portable, 
and 
put it as primary (so the disk is hda as in the portable) in a fixed 
machine  
(special cables available), I added a second disk as slave and installed 
the  
distribution on the second disk. Then the MSB has been replaced. 
That is really a problem because now I can not even start booting on the 
portable 
disk. 
 
 
All the tools are now available, diskdrake told me that the partition I 
finally  
added was not in the vg. So I added the partition. It was an error I 
completly  
realize it now. 
An error has been repported on pvcreate, but mainly it has been done, but 
the data  
in /etc has not been created. 
 
whith pvdata now I can see that I have 2 pvs with number one. The 
orgiginal 
first and the volume i finally added. 
 
pvremove reports an error, and does nothing. 
 
vgscan does nothing on rootvg as it is inconsistant. Anyway the system do 
not know 
the vg, /dev/rootvg/[12] do not exist. 
 
I think I should first, by patching the data by hand, either remove the 
last pv I  
added, or make it as beeing the 3rd pv of the vg. What ever I have to 
patch, I have 
to make the data on the 3 pv consistant. 
After I may have to mknod few things to have the/dev/rootvg/[12] device 
available. I hope a vgscan will be able recretate the data /etc/lvmconf 
and that the  
data will then be available. 
I will then backup the data, put the disk back in the portable and 
reinstall  
everything. 
 
Is there any hope such a process would work, and what to patch, where can 
I find a 
description of the data structure ? 
 
I am preparing a mail whith pvdata results ... 
 
Pascal Garcia 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]