LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-10-2010, 06:09 AM   #1
navraj 19
LQ Newbie
 
Registered: Nov 2010
Posts: 6

Rep: Reputation: 0
how to resize a filesystem in fedora and opensuse


does any one know how to resize the filesystem in fedora and opensuse i have succeded in doing it in centos using fdisk

i did the following steps
i delete the partition using d
then i create a new partition using n and then
i save the changes
then i run resize2fs and its done

but in fedora and opensuse its not happening can anyone help in determining the problem
 
Old 11-10-2010, 06:12 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Welcome to LQ

Any error messages?


Kind regards
 
Old 11-10-2010, 10:58 AM   #3
Ataher
LQ Newbie
 
Registered: Nov 2010
Posts: 5

Rep: Reputation: 0
If it's ext3 filesystem you will not be able to resize it if it's not over LVM
 
Old 11-10-2010, 11:28 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,717

Rep: Reputation: 8169Reputation: 8169Reputation: 8169Reputation: 8169Reputation: 8169Reputation: 8169Reputation: 8169Reputation: 8169Reputation: 8169Reputation: 8169Reputation: 8169
Duplicate of another post by the same user. Specifically asking about virtual disks, in other thread, after getting pressed for details.
 
Old 11-11-2010, 03:53 AM   #5
navraj 19
LQ Newbie
 
Registered: Nov 2010
Posts: 6

Original Poster
Rep: Reputation: 0
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.
 
  


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
Resize filesystem +RHEL alwosaby Linux - General 1 02-10-2010 11:02 AM
resize ext3 filesystem DaWallace Slackware 8 10-10-2007 06:15 AM
Resize ext3 filesystem svelloso Linux - Software 1 03-03-2006 03:54 PM
Resize ext3 filesystem dussel SUSE / openSUSE 1 02-07-2006 07:45 AM
need to resize ext3 filesystem clsonnt Linux - Newbie 2 07-09-2003 10:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:10 AM.

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
Open Source Consulting | Domain Registration