Hi,
(TO the moderator : I accidentally posted it in the wrong forum. Sorry.
But I guess its now in the correct forum. Also can any moderator delete the following new topic I started when I didnt get the topic I started in the networking forums :
http://www.linuxquestions.org/questi...ensuse-843595/ (Sorry about it))
Let me try to explain the whole situation again.
I have made a fedora and opensuse 1gb image in Xen HVM.
Now I want to make multiple DomUs with the 1GB .img files I made for fast deployment of DomUs.
The domUs will have 10GB+ LVMs as their Disks. So I need to resize the filesystems.
Firstly I dd the 1GB image to the 10Gb LVM.
Then when I try to fdisk /dev/vg/fedora (The 10GB LVM) I get the following message :
Quote:
The number of cylinders for this disk is set to 3771.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
|
The fdisk still works though so I delete the first partition and add a new partition to use the whole 10GB. Writing the new partition table gives no errors.
Then I proceed to resize the filesystem.
I kpartx the LVM and run e2fsck on /dev/vg/fedorap1 and this is the following ERROR I get :
Quote:
e2fsck 1.39 (29-May-2006)
Couldn't find ext2 superblock, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/mapper/fedorap1
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
|
So I think the fdisk corrupted the superblock of the LVM.
What did I do wrong ???
Please help me. I think its because of the CYLINDER warning fdisk gave me.
Pleaaaaase help me.