Results 1 to 7 of 7
Dear Sir/Madam,
I tried the following commands and found the space is plenty to do many jobs. However, when I used "df" to check the space remained and used, the ...
- 09-15-2011 #1Just Joined!
- Join Date
- Jan 2009
- Posts
- 5
Disk Full?
Dear Sir/Madam,
I tried the following commands and found the space is plenty to do many jobs. However, when I used "df" to check the space remained and used, the total disk space is just 75G.
=============================================
[root(at)rhlinux /]# cat /proc/partitions
major minor #blocks name
104 0 878807854 cciss/c0d0
104 1 104391 cciss/c0d0p1
104 2 878699272 cciss/c0d0p2
253 0 8388608 dm-0
253 1 8388608 dm-1
253 2 8388608 dm-2
253 3 2097152 dm-3
253 4 8388608 dm-4
253 5 8388608 dm-5
253 6 8388608 dm-6
253 7 2097152 dm-7
253 8 10485760 dm-8
[root(at)rhlinux /]# /sbin/fdisk -l
Disk /dev/cciss/c0d0: 899.8 GB, 899899242496 bytes
255 heads, 63 sectors/track, 109406 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/cciss/c0d0p1 * 1 13 104391 83 Linux
/dev/cciss/c0d0p2 14 109406 878699272+ 8e Linux LVM
[root(at)rhlinux /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rootvg-root_lv
7.8G 400M 7.0G 6% /
/dev/mapper/rootvg-opt_lv
7.8G 233M 7.2G 4% /opt
/dev/mapper/rootvg-var_lv
7.8G 3.9G 3.6G 52% /var
/dev/mapper/rootvg-tmp_lv
2.0G 68M 1.8G 4% /tmp
/dev/mapper/rootvg-home_lv
7.8G 1.7G 5.7G 23% /home
/dev/mapper/rootvg-usr_lv
7.8G 2.8G 4.6G 38% /usr
/dev/mapper/rootvg-usr_local_lv
7.8G 4.7G 2.8G 63% /usr/local
/dev/cciss/c0d0p1 99M 12M 82M 13% /boot
tmpfs 16G 12G 4.3G 74% /dev/shm
/dev/mapper/rootvg-opt_oss_lv
9.9G 498M 8.9G 6% /opt/oss
[root(at)rhlinux /]#
=============================================
How can I use the remaining disk space?
Is it possible to mount the free disk space to the root directory?
Thank you very much!
Best Regards,
Chris.
- 09-15-2011 #2
Hi and Welcome !
Which version of RHEL or Fedora are you using? Have you tried to clean cache of Package Manager?
Execute this in Terminal as root :
Post the output of df -h command again.Code:yum clean all
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 09-15-2011 #3Just Joined!
- Join Date
- Jan 2009
- Posts
- 5
Dear devils casper,
Thanks for your reply!
Here is the output:
=============================================
[root(at)rhlinux /]# uname -a
Linux rhlinux 2.6.18-238.el5PAE #1 SMP Sun Dec 19 14:42:44 EST 2010 i686 i686 i386 GNU/Linux
[root(at)rhlinux /]# yum clean all
Loaded plugins: rhnplugin, security
Cleaning up Everything
[root(at)rhlinux /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rootvg-root_lv
7.8G 401M 7.0G 6% /
/dev/mapper/rootvg-opt_lv
7.8G 233M 7.2G 4% /opt
/dev/mapper/rootvg-var_lv
7.8G 3.8G 3.6G 52% /var
/dev/mapper/rootvg-tmp_lv
2.0G 68M 1.8G 4% /tmp
/dev/mapper/rootvg-home_lv
7.8G 1.7G 5.7G 23% /home
/dev/mapper/rootvg-usr_lv
7.8G 2.8G 4.6G 38% /usr
/dev/mapper/rootvg-usr_local_lv
7.8G 4.7G 2.8G 63% /usr/local
/dev/cciss/c0d0p1 99M 12M 82M 13% /boot
tmpfs 16G 12G 4.3G 74% /dev/shm
/dev/mapper/rootvg-opt_oss_lv
9.9G 498M 8.9G 6% /opt/oss
[root(at)rhlinux /]#
=============================================
Thank you very much!
Best Regards,
Chris.
- 09-15-2011 #4
Post the output of these commands :
Code:lvdisplay vgdisplay
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 09-15-2011 #5Just Joined!
- Join Date
- Jan 2009
- Posts
- 5
Dear devils casper,
Thanks for your reply!
Here is the output:
=============================================
[root(at)rhlinux /]# lvdisplay
--- Logical volume ---
LV Name /dev/rootvg/root_lv
VG Name rootvg
LV UUID SWUh6D-lOiH-F08R-ER7k-rwks-OPcg-67I9S4
LV Write Access read/write
LV Status available
# open 1
LV Size 8.00 GB
Current LE 256
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Name /dev/rootvg/opt_lv
VG Name rootvg
LV UUID uqjfDB-TkE0-GmGf-9QlM-mEtp-c33K-igkIJJ
LV Write Access read/write
LV Status available
# open 1
LV Size 8.00 GB
Current LE 256
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
--- Logical volume ---
LV Name /dev/rootvg/var_lv
VG Name rootvg
LV UUID yE5r4f-6pyG-6CE3-i8VA-aBhX-WVfx-SQqR0t
LV Write Access read/write
LV Status available
# open 1
LV Size 8.00 GB
Current LE 256
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
--- Logical volume ---
LV Name /dev/rootvg/tmp_lv
VG Name rootvg
LV UUID 88S10u-zhnp-IBMd-D17I-lJ7A-PfCR-40jg4x
LV Write Access read/write
LV Status available
# open 1
LV Size 2.00 GB
Current LE 64
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:3
--- Logical volume ---
LV Name /dev/rootvg/home_lv
VG Name rootvg
LV UUID 7jyb5a-0vfN-fLlG-CCTh-9EeL-3Zw8-5ViPLn
LV Write Access read/write
LV Status available
# open 1
LV Size 8.00 GB
Current LE 256
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:4
--- Logical volume ---
LV Name /dev/rootvg/usr_lv
VG Name rootvg
LV UUID 55ykkD-eicJ-x1yB-EPlr-ohAj-janW-qeEFmA
LV Write Access read/write
LV Status available
# open 1
LV Size 8.00 GB
Current LE 256
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:5
--- Logical volume ---
LV Name /dev/rootvg/usr_local_lv
VG Name rootvg
LV UUID Is2LhZ-SBQw-fUn0-IWCL-ey8o-gVlr-bjbPzY
LV Write Access read/write
LV Status available
# open 1
LV Size 8.00 GB
Current LE 256
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:6
--- Logical volume ---
LV Name /dev/rootvg/swap_lv
VG Name rootvg
LV UUID PbaW12-fHh4-6R5M-35sM-QhN7-mK6c-XHWcuy
LV Write Access read/write
LV Status available
# open 1
LV Size 2.00 GB
Current LE 64
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:7
--- Logical volume ---
LV Name /dev/rootvg/opt_oss_lv
VG Name rootvg
LV UUID vwF5Bl-dd33-LIB2-CjaA-aBdh-t5hV-WYdJMw
LV Write Access read/write
LV Status available
# open 1
LV Size 10.00 GB
Current LE 320
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:8
[root(at)rhlinux /]# vgdisplay
--- Volume group ---
VG Name rootvg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 10
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 9
Open LV 9
Max PV 0
Cur PV 1
Act PV 1
VG Size 837.97 GB
PE Size 32.00 MB
Total PE 26815
Alloc PE / Size 1984 / 62.00 GB
Free PE / Size 24831 / 775.97 GB
VG UUID T0fUZ1-iIWh-PkqF-Wvyj-fHKO-gkkE-diyo22
[root(at)rhlinux /]#
=============================================
I took a look on the website of http-www-howtoforge.com-linux_lvm.
I think that I should resize the Logical Volumes in order to make use of the full capacity of the hard discs.
Am I right?
Thank you very much!
Best Regards,
Chris.
- 09-15-2011 #6775.97GB is unused/free space in your Hard disk and you should resize LVM.Alloc PE / Size 1984 / 62.00 GB
Free PE / Size 24831 / 775.97 GB
Is it a production machine or a desktop/server for learning purpose only?It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 09-15-2011 #7Just Joined!
- Join Date
- Jan 2009
- Posts
- 5
Dear devils casper,
Thanks for your reply!
This is a production machine installed by my colleague from other department.
I am responsible for re-configuring the machine to suit the needs for my department.
Suppose the machine makes use of the RAID 5, is it good to disable the feature of LV and making use the feature of physical disk (full capacity) alone (i.e. /dev/hda or /dev/sda)?
Thank you very much!
Best Regards,
Chris.


Reply With Quote
