On 4/6/07, Douglas Allan Tutty <[EMAIL PROTECTED]> wrote:
On Fri, Apr 06, 2007 at 06:52:30PM +0530, Siju George wrote:
> Hi,
>
> 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.
Thankyou so much for the reply Douglas :-)
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
Could the difference between what lvdisplay shows and df be a
combination of:
df shows the free space available within a filesystem
lvdisplay shows the free space available on an LV
Could the diff be the amount of space taken up by the filesystem
infrastructure itself (metadata, inode tables, etc)?
What about the difference between -h (K=1024) and --si (K=1000)?
--si shows more than the LV size
===========================================================================
websrv-1:~# df --si
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 2.0G 145M 1.8G 8% /
tmpfs 2.2G 0 2.2G 0% /lib/init/rw
udev 11M 41k 11M 1% /dev
tmpfs 2.2G 0 2.2G 0% /dev/shm
/dev/sda1 287M 25M 248M 9% /boot
/dev/mapper/vg1-home 2.2G 34M 2.2G 2% /home
/dev/mapper/vg1-tmp 2.2G 34M 2.2G 2% /tmp
/dev/mapper/vg1-usr 5.4G 278M 5.1G 6% /usr
/dev/mapper/vg1-var 11G 199M 11G 2% /var
/dev/mapper/vg1-log 34G 47M 34G 1% /var/log
/dev/mapper/vg1-www 429G 208M 407G 1% /var/www
tutorom-websrv-1:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 1.9G 139M 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 265M 4.8G 6% /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 399G 199M 379G 1% /var/www
tutorom-websrv-1:~# lv display /dev/vg1/www
-bash: lv: command not found
websrv-1:~# 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 405.00 GB
Current LE 103680
Segments 2
Allocation inherit
Read ahead sectors 0
Block device 254:6
websrv-1:~#
===========================================================================
but the df -h output and lvdisplay output for a ReiserFS file system
shows the same value.
Wondering what is wrong with ext3 :-(
Below is details of /var/log on /dev/vg1/log
===========================================================================
tutorom-websrv-1:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 1.9G 139M 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 265M 4.8G 6% /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 399G 199M 379G 1% /var/www
tutorom-websrv-1:~# lvdisplay /dev/vg1/log
--- Logical volume ---
LV Name /dev/vg1/log
VG Name vg1
LV UUID CXNdWq-1tYr-R7Pc-fMVu-YDdj-x8U3-0P34hj
LV Write Access read/write
LV Status available
# open 2
LV Size 31.00 GB
Current LE 7936
Segments 2
Allocation inherit
Read ahead sectors 0
Block device 254:5
tutorom-websrv-1:~#
========================================================================
Thankyou so mcuh :-)
Kind Regards
Siju
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]