LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   howto find space on my hdd (https://www.linuxquestions.org/questions/linux-hardware-18/howto-find-space-on-my-hdd-857806/)

chamba 01-21-2011 10:05 AM

howto find space on my hdd
 
Hi folks,

i´m running RHEL 4.0 with 2 x 146 GB for the operating system and a storage with just 2 x 300GB for the application.

The application is almost 88% usage and this is the output of the fdis and df.

###################################
[root@ebs3 ~]# fdisk -lu

Disk /dev/cciss/c0d0: 146.7 GB, 146778685440 bytes
255 heads, 63 sectors/track, 17844 cylinders, total 286677120 sectors
Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System
/dev/cciss/c0d0p1 * 63 208844 104391 83 Linux
/dev/cciss/c0d0p2 208845 1237004 514080 83 Linux
/dev/cciss/c0d0p3 1237005 21976919 10369957+ 83 Linux
/dev/cciss/c0d0p4 21976920 286663859 132343470 5 Extended
/dev/cciss/c0d0p5 21976983 36660329 7341673+ 83 Linux
/dev/cciss/c0d0p6 36660393 47150774 5245191 83 Linux
/dev/cciss/c0d0p7 47150838 55536704 4192933+ 83 Linux
/dev/cciss/c0d0p8 55536768 63922634 4192933+ 83 Linux
/dev/cciss/c0d0p9 63922698 68115599 2096451 83 Linux
/dev/cciss/c0d0p10 68115663 69143759 514048+ 83 Linux
/dev/cciss/c0d0p11 69143823 77160194 4008186 83 Linux
/dev/cciss/c0d0p12 77160258 81176444 2008093+ 83 Linux
/dev/cciss/c0d0p13 81176508 85192694 2008093+ 83 Linux
/dev/cciss/c0d0p14 85192758 89208944 2008093+ 83 Linux

Disk /dev/cciss/c1d0: 299.9 GB, 299995248640 bytes
255 heads, 32 sectors/track, 71804 cylinders, total 585928220 sectors
Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System
/dev/cciss/c1d0p1 32 200009759 100004864 83 Linux
/dev/cciss/c1d0p2 200009760 420019679 110004960 83 Linux
/dev/cciss/c1d0p3 420019680 520028639 50004480 83 Linux
[root@ebs3 ~]#
#####################################

and here is the output of the DF

#####################################
[root@ebs3 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/cciss/c0d0p9 2.0G 205M 1.7G 11% /
/dev/cciss/c0d0p2 487M 17M 445M 4% /boot
none 4.0G 0 4.0G 0% /dev/shm
/dev/cciss/c0d0p10 487M 41M 421M 9% /home
/dev/cciss/c0d0p7 4.0G 621M 3.2G 17% /opt
/dev/cciss/c0d0p6 5.0G 346M 4.4G 8% /tmp
/dev/cciss/c0d0p5 6.9G 2.6G 4.0G 40% /usr
/dev/cciss/c0d0p8 4.0G 41M 3.7G 2% /usr/local
/dev/cciss/c0d0p3 9.8G 387M 8.9G 5% /var
/dev/cciss/c1d0p1 94G 79G 11G 88% /apps11i
/dev/cciss/c1d0p2 104G 86G 13G 88% /oracle11i
/dev/cciss/c1d0p3 47G 22G 24G 48% /oracle_tmp
[root@ebs3 ~]#

#########################################

My question is, where is the 50 GB so i can use it to extend the partition c1d0p1 and c1d0p2 that are running out of space.

Did they being used to build the mirror? is not much 50 gb?

Please help me it's a production server.

regards

PTrenholme 01-21-2011 10:59 AM

From your fdisk output it looks like you have some unpartitioned space on /dev/ccsis/c1d0. The device's last sector is shown as 585928220 and the last used sector on that device is shown as 520028639.

chamba 01-24-2011 04:28 AM

Thank you very much dear PTrenholme,

So how can i create a partition using that space? Second, is it possible to extend the /dev/cciss/c1d0p1 94G 79G 11G 88% /apps11i and /dev/cciss/c1d0p2 104G 86G 13G 88% /oracle11i to that partition?

And if i did well the calculation there is 31.42337 GB available.

cheers.

NC

PTrenholme 01-24-2011 08:19 AM

You should have at least parted on you system for editing a devices partition table, and you may have a GUI partitioning tool (qtparted, gparted, etc.) that you could use.

Warning: Never change a partition table without having a full device backup.

Note: Since you're using a (very obsolete) RHEL version, you should be paying Red Hat for system support. They should be able to help you with this problem.


All times are GMT -5. The time now is 06:57 AM.