fsadm got stuck and did not give output for long duration. The fsadm command is run to take effect of extension or reduction of a file system.
EXTENSION of a File System
Question :- What is the to command to extend a File system HP UX?
Answer :- we have to use 2 commands :-
first :- lvextend -L "desired total size of LV in mb" "name of the lv in /dev/vg00/lvolXX"
fsadm -b "desired total size of LV in mb" /name of the mount point
if command comes out properly or successfully then just run bdf. the extended size will be in front of you.
REDUCTION of a File system
Question :- What are the command to reduce the size of a file system.
Answer :- first of all be very much carefull while reducing the size of a file system. ensure you have a backup with you, using fbackup or any other too.
first :- fsadm -b "the desired reduced size which you want to keep" /mount point
next :- lvreduce -L "desired reduced size" /dev/vg00/lvolXX
if command comes out properly or successfully then just run bdf. the reduced size will be in front of you.
some times while extension and reduction, the fsadm command takes so much time that it seems it got hanged or the server become unresponsive. let it take its own time. i waited for 25 minute when i reduced 50 GB of spae from a file system. the fsadm didn't response for that duration. i was about to kill the porcess ID, but waited for some more time. it successfully come out and then i ran lvreduce.
if it is like 1 hour or more for waiting then you can kill the fsadm process id, with kill -9 also. and still if the processs is not getting killed then reboot is the option left. this I know, i may be lacking in information or knowledge. but would like to learn more for it.
ps -ef |grep -i fsadm
is the command to get the process ID or parent process ID.
EXTENSION of a File System
Question :- What is the to command to extend a File system HP UX?
Answer :- we have to use 2 commands :-
first :- lvextend -L "desired total size of LV in mb" "name of the lv in /dev/vg00/lvolXX"
fsadm -b "desired total size of LV in mb" /name of the mount point
if command comes out properly or successfully then just run bdf. the extended size will be in front of you.
REDUCTION of a File system
Question :- What are the command to reduce the size of a file system.
Answer :- first of all be very much carefull while reducing the size of a file system. ensure you have a backup with you, using fbackup or any other too.
first :- fsadm -b "the desired reduced size which you want to keep" /mount point
next :- lvreduce -L "desired reduced size" /dev/vg00/lvolXX
if command comes out properly or successfully then just run bdf. the reduced size will be in front of you.
some times while extension and reduction, the fsadm command takes so much time that it seems it got hanged or the server become unresponsive. let it take its own time. i waited for 25 minute when i reduced 50 GB of spae from a file system. the fsadm didn't response for that duration. i was about to kill the porcess ID, but waited for some more time. it successfully come out and then i ran lvreduce.
if it is like 1 hour or more for waiting then you can kill the fsadm process id, with kill -9 also. and still if the processs is not getting killed then reboot is the option left. this I know, i may be lacking in information or knowledge. but would like to learn more for it.
ps -ef |grep -i fsadm
is the command to get the process ID or parent process ID.
No comments:
Post a Comment