Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   EXT3 Users (http://www.linux-archive.org/ext3-users/)
-   -   ext3 partition size (http://www.linux-archive.org/ext3-users/302496-ext3-partition-size.html)

George Butler 12-29-2009 05:06 AM

ext3 partition size
 
Hi all,

*** I am running fedora 11 with kernel 2.6.30.9-102.fc11.x86_64 #1 SMP
Fri Dec 4 00:18:53 EST 2009 x86_64 x86_64 x86_64 GNU/Linux. I am
noticing a partition on* my drive is reporting incorrect size with
"df", the partition is ext3 size 204GB with about 79GB actual usage,
the "df" result show the partition size to be 111GB, 93GB is missing.
Please advice on what can be done to see why the system is reporting
incorrect partition size.



e2fsprogs version:



rpm -qa | grep e2fsprogs

e2fsprogs-libs-1.41.4-12.fc11.x86_64

e2fsprogs-1.41.4-12.fc11.x86_64

e2fsprogs-libs-1.41.4-12.fc11.i586

e2fsprogs-devel-1.41.4-12.fc11.x86_64

e2fsprogs-debuginfo-1.41.4-12.fc11.x86_64



mount: /dev/sdb8 on /srv/multimedia type ext3 (rw,relatime)



$ df -hT

Filesystem*** Type*** Size* Used Avail Use% Mounted on

/dev/sdb2**** ext3**** 30G* 1.1G** 28G** 4% /

/dev/sdb7**** ext3**** 20G* 1.3G** 18G** 7% /var

/dev/sdb6**** ext3**** 30G** 12G** 17G* 43% /usr

/dev/sdb5**** ext3**** 40G** 25G** 13G* 67% /home

/dev/sdb1**** ext3*** 107M** 52M** 50M* 52% /boot

/dev/sdb8**** ext3*** 111G** 79G** 27G* 76% /srv/multimedia

tmpfs******* tmpfs*** 2.9G** 35M* 2.9G** 2% /dev/shm



Parted info:



(parted) select
/dev/sdb*********************************************** **

Using /dev/sdb

(parted)
print********************************************* **************

Model: ATA ST3500630AS (scsi)

Disk /dev/sdb: 500GB

Sector size (logical/physical): 512B/512B

Partition Table: msdos



Number* Start** End**** Size*** Type***** File system* Flags

*1***** 32.3kB* 115MB** 115MB** primary** ext3******** boot

*2***** 115MB** 32.3GB* 32.2GB* primary** ext3*************

*3***** 32.3GB* 35.5GB* 3224MB* primary** linux-swap*******

*4***** 35.5GB* 500GB** 465GB** extended*******************

*5***** 35.5GB* 78.5GB* 43.0GB* logical** ext3*************

*6***** 78.5GB* 111GB** 32.2GB* logical** ext3*************

*7***** 111GB** 132GB** 21.5GB* logical** ext3*************

*8***** 132GB** 352GB** 220GB** logical** ext3*************

*9***** 352GB** 492GB** 140GB** logical** ext3





result of e2fsck:



$ e2fsck -f -v -c -E fragcheck /dev/sdb8

e2fsck 1.41.4 (27-Jan-2009)

Checking for bad blocks (read-only test):
done*******************************

sg500misc: Updating bad block inode.

Pass 1: Checking inodes, blocks, and sizes

**** 8(f): expecting* 32768 got phys* 34307 (blkcnt 31191)

491521(f): expecting 1049096 got phys 1081858 (blkcnt 6)

491521(f): expecting 1081864 got phys 1114626 (blkcnt -1)

491521(f): expecting 1114632 got phys 1180162 (blkcnt 17)

491521(f): expecting 1180168 got phys 1212930 (blkcnt 23)

491521(f): expecting 1212936 got phys 1505163 (blkcnt 29)



***********50K + more output lines******************



Pass 2: Checking directory structure

Pass 3: Checking directory connectivity

Pass 4: Checking reference counts

Pass 5: Checking group summary information



sg500misc: ***** FILE SYSTEM WAS MODIFIED *****



** 33658 inodes used (0.23%)

*** 3325 non-contiguous files (9.9%)

***** 24 non-contiguous directories (0.1%)

******** # of inodes with ind/dind/tind blocks: 25055/2723/2

21136610 blocks used (71.72%)

****** 0 bad blocks

****** 6 large files



** 31899 regular files

*** 1698 directories

****** 0 character device files

****** 0 block device files

****** 0 fifos

****** 0 links

***** 52 symbolic links (52 fast symbolic links)

****** 0 sockets

--------

** 33649 files





_______________________________________________
Ext3-users mailing list
Ext3-users@redhat.com
https://www.redhat.com/mailman/listinfo/ext3-users

Andreas Dilger 12-31-2009 08:39 PM

ext3 partition size
 
On 2009-12-28, at 23:06, George Butler wrote:
I am running fedora 11 with kernel 2.6.30.9-102.fc11.x86_64 #1
SMP Fri Dec 4 00:18:53 EST 2009 x86_64 x86_64 x86_64 GNU/Linux. I am
noticing a partition on my drive is reporting incorrect size with
"df", the partition is ext3 size 204GB with about 79GB actual usage,
the "df" result show the partition size to be 111GB, 93GB is
missing. Please advice on what can be done to see why the system is
reporting incorrect partition size.


mount: /dev/sdb8 on /srv/multimedia type ext3 (rw,relatime)

$ df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/sdb2 ext3 30G 1.1G 28G 4% /
/dev/sdb7 ext3 20G 1.3G 18G 7% /var
/dev/sdb6 ext3 30G 12G 17G 43% /usr
/dev/sdb5 ext3 40G 25G 13G 67% /home
/dev/sdb1 ext3 107M 52M 50M 52% /boot
/dev/sdb8 ext3 111G 79G 27G 76% /srv/multimedia
tmpfs tmpfs 2.9G 35M 2.9G 2% /dev/shm

Parted info:

(parted) select /dev/sdb
Using /dev/sdb
(parted) print
Model: ATA ST3500630AS (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 32.3kB 115MB 115MB primary ext3 boot
2 115MB 32.3GB 32.2GB primary ext3
3 32.3GB 35.5GB 3224MB primary linux-swap
4 35.5GB 500GB 465GB extended
5 35.5GB 78.5GB 43.0GB logical ext3
6 78.5GB 111GB 32.2GB logical ext3
7 111GB 132GB 21.5GB logical ext3
8 132GB 352GB 220GB logical ext3
9 352GB 492GB 140GB logical ext3


It definitely looks strange. Did you resize this partition after it
was created? In any case, running "resize2fs /dev/sdb8" should
enlarge the

filesystem to fill the partition.

Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.

_______________________________________________
Ext3-users mailing list
Ext3-users@redhat.com
https://www.redhat.com/mailman/listinfo/ext3-users

George Butler 01-13-2010 02:27 PM

ext3 partition size
 
Andreas.... thanks for the suggestion, I did a resize2fs -d -p
/dev/sdb8* on the partition* and is now showing the size and disk
usage correctly.



Thanks for your advise.



george



On 12/31/2009 03:39 PM, Andreas Dilger wrote:
On 2009-12-28, at 23:06, George Butler wrote:


*** I am running fedora 11 with kernel
2.6.30.9-102.fc11.x86_64 #1 SMP Fri Dec 4 00:18:53 EST 2009 x86_64
x86_64 x86_64 GNU/Linux. I am noticing a partition on* my drive is
reporting incorrect size with "df", the partition is ext3 size 204GB
with about 79GB actual usage, the "df" result show the partition size
to be 111GB, 93GB is missing. Please advice on what can be done to see
why the system is reporting incorrect partition size.




mount: /dev/sdb8 on /srv/multimedia type ext3 (rw,relatime)




$ df -hT


Filesystem*** Type*** Size* Used Avail Use% Mounted on


/dev/sdb2**** ext3**** 30G* 1.1G** 28G** 4% /


/dev/sdb7**** ext3**** 20G* 1.3G** 18G** 7% /var


/dev/sdb6**** ext3**** 30G** 12G** 17G* 43% /usr


/dev/sdb5**** ext3**** 40G** 25G** 13G* 67% /home


/dev/sdb1**** ext3*** 107M** 52M** 50M* 52% /boot


/dev/sdb8**** ext3*** 111G** 79G** 27G* 76% /srv/multimedia


tmpfs******* tmpfs*** 2.9G** 35M* 2.9G** 2% /dev/shm




Parted info:




(parted) select /dev/sdb


Using /dev/sdb


(parted) print


Model: ATA ST3500630AS (scsi)


Disk /dev/sdb: 500GB


Sector size (logical/physical): 512B/512B


Partition Table: msdos




Number* Start** End**** Size*** Type***** File system* Flags


*1***** 32.3kB* 115MB** 115MB** primary** ext3******** boot


*2***** 115MB** 32.3GB* 32.2GB* primary** ext3


*3***** 32.3GB* 35.5GB* 3224MB* primary** linux-swap


*4***** 35.5GB* 500GB** 465GB** extended


*5***** 35.5GB* 78.5GB* 43.0GB* logical** ext3


*6***** 78.5GB* 111GB** 32.2GB* logical** ext3


*7***** 111GB** 132GB** 21.5GB* logical** ext3


*8***** 132GB** 352GB** 220GB** logical** ext3


*9***** 352GB** 492GB** 140GB** logical** ext3





It definitely looks strange.* Did you resize this partition after it
was created?* In any case, running "resize2fs /dev/sdb8" should enlarge
the


filesystem to fill the partition.




Cheers, Andreas


--


Andreas Dilger


Sr. Staff Engineer, Lustre Group


Sun Microsystems of Canada, Inc.







_______________________________________________
Ext3-users mailing list
Ext3-users@redhat.com
https://www.redhat.com/mailman/listinfo/ext3-users


All times are GMT. The time now is 09:57 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.