Operating System - HP-UX
1834148 Members
2267 Online
110064 Solutions
New Discussion

Defrag file system poblem

 
SOLVED
Go to solution
gigiz
Valued Contributor

Defrag file system poblem

Hi ,
I have a big problem ...
I have ha file system:
1600 Gb total
1100 Gb used
one Vg
one lvol
23 disk
I wanted recover any disk for another vg from that
I started :
/usr/sbin/fsadm -d -D -e -E /file_system

The problem is that now they are 24 hours and the fsadm not finished.
I would want to know if :
How can calculate a remaining time
i can kill fsadm process, how kill that, and the impact... it is dangerous
4 REPLIES 4
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: Defrag file system poblem

Hi gigiz,

You savely kill the fsadm defragmentation, but I don't understand "wanted recover any disk for another vg from that"

# ps -ef | grep fsadm
# kill pid

http://www5.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000080000377

Regards,
Robert-Jan
Steven E. Protter
Exalted Contributor

Re: Defrag file system poblem

Shalom,

It is dangerous to kill the process. That being said, I had an operator once boot a system while this was running and no data was lost. its well designed or we were lucky.

Calculating the time depends on how busy the disks are. It will go faster on an idle system.

Best practice is to let it run and schedule future runs for a weekend.

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
Sandman!
Honored Contributor

Re: Defrag file system poblem

Also the next time you run fsadm for defragmentation purposes on your filesystems, specify the "-Fvxfs" switch so that it doesn't traverse NFS mounts.
gigiz
Valued Contributor

Re: Defrag file system poblem

Ok
I had 3 process
I have killed the young process whith
kill pid_process
But not killed it
I re kill in order all 3 process
2 pocess died but the young process no
I kill it with "kill -9" and after 20 minutes
it died .

bye bye