On my CentOS 5 server, fdisk -l
outputs:
Disk /dev/xvda: 100.0 GB, 100000595968 bytes
255 heads, 63 sectors/track, 12157 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/xvda1 1 487 3911796 83 Linux
/dev/xvda2 488 731 1959930 82 Linux swap / Solaris
/dev/xvda3 732 12157 91779345 8e Linux LVM
and df -h
outputs:
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 3.7G 1.4G 2.4G 37% /
/dev/mapper/vg00-usr 4.0G 4.0G 20K 100% /usr
/dev/mapper/vg00-var 4.0G 440M 3.6G 11% /var
/dev/mapper/vg00-home 4.0G 269M 3.8G 7% /home
none 512M 1.4M 511M 1% /tmp
tmpfs 512M 0 512M 0% /usr/local/psa/handlers/before-local
tmpfs 512M 0 512M 0% /usr/local/psa/handlers/before-queue
tmpfs 512M 0 512M 0% /usr/local/psa/handlers/before-remote
tmpfs 512M 16K 512M 1% /usr/local/psa/handlers/info
tmpfs 512M 0 512M 0% /usr/local/psa/handlers/before-local
tmpfs 512M 0 512M 0% /usr/local/psa/handlers/before-queue
tmpfs 512M 0 512M 0% /usr/local/psa/handlers/before-remote
tmpfs 512M 16K 512M 1% /usr/local/psa/handlers/info
tmpfs 512M 0 512M 0% /usr/local/psa/handlers/spool
My /usr
drive doesn't have any free space, but fdisk
shows 100GB of unused space. Can I use that space to increase the capacity of the /usr
directory? How? And how can I remove unwanted files from /usr
?
lvs
andpvs
give ? you should be able to expand the /dev/mapper/vg00-usr logical volume if you have some space space withlvextend
– Sirex Sep 13 '11 at 12:31