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

Re: ext3 Partition 6GB less than underlying logical volume even after resizing using resize2fs



On 4/6/07, Douglas Allan Tutty <dtutty@porchlight.ca> wrote:
On Fri, Apr 06, 2007 at 09:58:41PM +0530, Siju George wrote:
> On 4/6/07, Douglas Allan Tutty <dtutty@porchlight.ca> wrote:
> >On Fri, Apr 06, 2007 at 06:52:30PM +0530, Siju George wrote:
> >> I got a Server Installed with LVM by a third party.
> >> the /var/www is on LV /dev/vg1/www
> >> df -h Shows  /var/www is only 394 GB
> >> whereas lvdisplay shows /dev/vg1/www to be 400 GB
> >
> >I use JFS for everything, running Etch with its 2.6 kernel and I haven't
> >had any problems.
> >
>
> Have you used JFS on LVM with large sized Logical Volumes and extended
> online with the syntax
>
> mount -o remount,resize /home
>
> without specifying file system size in blocks as in
>
> mount -o remount,resize=1048576 /home

I have JFS on LVM on raid1.

I have been chicken to resize my / fs (its a bit small) until Etch is
stable.  I plan to do this when it is stable after I've downloaded and
burned CD1.

Since you already have LVM set up, why not create an LV, put JFS on it,
extend the LV, then resize the JFS and see how it goes?


Well it Goes very well :-)
Surprisingly easy. My Apache was running with files from /var/www and
is still doing good :-)
Details below. changed the fstab for jfs from ext3

===========================================================================
websrv-1:/var/www# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/sda2       /               ext3    defaults,errors=remount-ro 0       1
/dev/sda1       /boot           ext3    defaults        0       2
/dev/mapper/vg1-home /home           reiserfs defaults        0       2
/dev/mapper/vg1-tmp /tmp            reiserfs defaults        0       2
/dev/mapper/vg1-usr /usr            reiserfs defaults        0       2
/dev/mapper/vg1-var /var            reiserfs defaults        0       2
/dev/mapper/vg1-log /var/log        reiserfs defaults        0       2
/dev/mapper/vg1-www /var/www        jfs    defaults        0       2
/dev/mapper/vg1-swap none            swap    sw              0       0
/dev/hda        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
websrv-1:/var/www# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             1.9G  140M  1.7G   8% /
tmpfs                 2.0G     0  2.0G   0% /lib/init/rw
udev                   10M   40K   10M   1% /dev
tmpfs                 2.0G     0  2.0G   0% /dev/shm
/dev/sda1             274M   24M  237M   9% /boot
/dev/mapper/vg1-home  2.0G   33M  2.0G   2% /home
/dev/mapper/vg1-tmp   2.0G   33M  2.0G   2% /tmp
/dev/mapper/vg1-usr   5.0G  249M  4.8G   5% /usr
/dev/mapper/vg1-var    10G  190M  9.9G   2% /var
/dev/mapper/vg1-log    31G   45M   31G   1% /var/log
/dev/mapper/vg1-www   390G   49M  390G   1% /var/www
websrv-1:/var/www# lvdisplay /dev/vg1/www
 --- Logical volume ---
 LV Name                /dev/vg1/www
 VG Name                vg1
 LV UUID                qEaBfH-1fg5-f7Qg-VHfZ-azNM-beaf-vNbljL
 LV Write Access        read/write
 LV Status              available
 # open                 1
 LV Size                390.00 GB
 Current LE             99840
 Segments               1
 Allocation             inherit
 Read ahead sectors     0
 Block device           254:6

websrv-1:/var/www# lvextend -L395G /dev/vg1/www
 Extending logical volume www to 395.00 GB
 Logical volume www successfully resized
websrv-1:/var/www# lvdisplay /dev/vg1/www
 --- Logical volume ---
 LV Name                /dev/vg1/www
 VG Name                vg1
 LV UUID                qEaBfH-1fg5-f7Qg-VHfZ-azNM-beaf-vNbljL
 LV Write Access        read/write
 LV Status              available
 # open                 1
 LV Size                395.00 GB
 Current LE             101120
 Segments               1
 Allocation             inherit
 Read ahead sectors     0
 Block device           254:6


websrv-1:/var/www# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             1.9G  140M  1.7G   8% /
tmpfs                 2.0G     0  2.0G   0% /lib/init/rw
udev                   10M   40K   10M   1% /dev
tmpfs                 2.0G     0  2.0G   0% /dev/shm
/dev/sda1             274M   24M  237M   9% /boot
/dev/mapper/vg1-home  2.0G   33M  2.0G   2% /home
/dev/mapper/vg1-tmp   2.0G   33M  2.0G   2% /tmp
/dev/mapper/vg1-usr   5.0G  249M  4.8G   5% /usr
/dev/mapper/vg1-var    10G  190M  9.9G   2% /var
/dev/mapper/vg1-log    31G   45M   31G   1% /var/log
/dev/mapper/vg1-www   390G   49M  390G   1% /var/www
websrv-1:/var/www# mount -o remount,resize /var/www
websrv-1:/var/www# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             1.9G  140M  1.7G   8% /
tmpfs                 2.0G     0  2.0G   0% /lib/init/rw
udev                   10M   40K   10M   1% /dev
tmpfs                 2.0G     0  2.0G   0% /dev/shm
/dev/sda1             274M   24M  237M   9% /boot
/dev/mapper/vg1-home  2.0G   33M  2.0G   2% /home
/dev/mapper/vg1-tmp   2.0G   33M  2.0G   2% /tmp
/dev/mapper/vg1-usr   5.0G  249M  4.8G   5% /usr
/dev/mapper/vg1-var    10G  190M  9.9G   2% /var
/dev/mapper/vg1-log    31G   45M   31G   1% /var/log
/dev/mapper/vg1-www   395G   50M  395G   1% /var/www
websrv-1:/var/www#
======================================================================


I started, like everyone else, with ext2.  I used to live in an area
with frequent power failures without a UPS.  I tried ext3 but still had
fs problems.  I tried reiser; ditto.  Once JFS came out, I tried it and
it has been great.


Thankyou so  much :-) That is good news.
How about JFS's Speed compared to ext3, ReiserFS. XFS etc in your observation?

LVM/raid is new to me since I installed Etch on my new box.  I havn't
tried a resize yet.


Thankyou so much Dough for the info.

I think i'll stick to JFS for the /var/www partition.

Kind Regards

Siju



Reply to: