System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: degragmentation on disk or ram

 
SOLVED
Go to solution
Mahesh Kumar Malik
Honored Contributor

Re: degragmentation on disk or ram

Hi Shiv

Following link may be of help

http://docs.hp.com/en/5187-1375/ch05s06.html

Regards

Mahesh
Steven E. Protter
Exalted Contributor

Re: degragmentation on disk or ram

Shalom Shiv,

Online JFS fsadm defragmenting provides a report that can give you an idea as to whether defragmentation was really necessary, be it after the fact.

I would suggest you see if the utility has a preview mode as many utilities do.

It's important that once its running it be left to complete its task.

Here are the guts to the script I ran in the US:

while read -r aa bb cc dd ee
do
FILESYSTEM=$bb
echo "fs is $bb $cc"
if [ "$cc" = "vxfs" ]
then
/usr/sbin/fsadm -F vxfs -D -d -E -e -s $FILESYSTEM
fi

done < /etc/fstab

# As you see it reads /etc/fstab and only touches those filesystems with vxfs on them.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
A. Clay Stephenson
Acclaimed Contributor

Re: degragmentation on disk or ram

While one can certainly defragment a vxfs filesystem, my experience has been --- except in rare circumstances --- that it is difficult to achieve measurable, much less significant, results. Bear in mind that vxfs filesystems are extent-based and try to allocate large chunks and UNIX filesystems are geared towards creating many, many files in a short period of time.

If it ain't broke, I can fix that.