1846865 Members
11909 Online
110256 Solutions
New Discussion

Space Allocation Issue

 
wish_1
Frequent Advisor

Space Allocation Issue

Dear All

We are having HP 9000 L with 2 Node Cluster. Each node is having 8GB Disk and array of 8GB X3 Disk also. With HP-UX B.11.00 ver and Oracle 8i.

We have plans of, using one of the nodes as standalone. I am facing problem of organizing space.

I am pasting bdf listing of node A as follows

/dev/vg00/lvol3 4063232 3836286 214975 95% /
/dev/vg00/lvol1 99669 54381 35321 61% /stand
/dev/vg00/lvol4 2617344 1665779 899840 65% /oracle


bdf listing of node B as follows
# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 4063232 3800837 246044 94% /
/dev/vg00/lvol1 99669 54127 35575 60% /stand
/dev/vg00/lvol4 2617344 413169 2068213 17% /oracle


Please let me know about space that could be released from Node A. What files that can be deleted from root(/), /stand

Kindly help me at the earliest.

Thanks & Regards

4 REPLIES 4
Raj D.
Honored Contributor

Re: Space Allocation Issue

Hi Wish ,

Perhaps you cannot delete anything from /stand , as /stand contains all kernel configuration files.


1. Quickly you can try :
# ls -lR | sort +4 -5nr | more
(To see the largest files.


2. Check for big files on / (root)

# cd /
# find . -type f -xdev -exec ls -l {} \; > /tmp/out.txt
# cat out.txt | sort +4 -5nr > out1.txt

Check out1.txt file , all largest file will be listing from the top , and what you can delete you can determine.


hth,
Raj
" If u think u can , If u think u cannot , - You are always Right . "
Ivan Ferreira
Honored Contributor

Re: Space Allocation Issue

Is not easy to say what can be erased, you should find out the biggest files, and then verify if can be deleted.

Use the following command:

find / -xdev -type f -exec ls -la {} \; | sort +5 -nrb > /tmp/find.out

Examine the file and post the biggest files to verify that can be deleted if you are unsure.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Bill Hassell
Honored Contributor

Re: Space Allocation Issue

It appears that someone overrode the 'normal' disk volume layout and put everything in / (4 Gb), a very bad idea for a production server running something like Oracle. /stand is fine, but / needs so much re-arranging, that you will likely need to re-install. 4Gb sounds about right as the total for all filesystems in a typical HP-UX system.

If there are indeed other mounted filesystems such as /var and /usr, then 4Gb is WAY too large and something does not belong in /. The typical size for / is 100-250 megs. So do not look for big files. Instead, analyze all the directtories and post the top 10 using:

du -kx / | sort -rn | head

Once the largest directory is located, space problems can be determined easily. The largest directories in / will be /sbin and /etc.


Bill Hassell, sysadmin
Piergiacomo Perini
Trusted Contributor

Re: Space Allocation Issue

Hi Wish,
check also if under "/" file system exist
core file .

regards