1830616 Members
2659 Online
110015 Solutions
New Discussion

pkg cannot be halted.

 
huaxiang
Frequent Advisor

pkg cannot be halted.

1. pkg " /dev/vgxkfs1/lv_vgxkfs1" mount at /zw;
2. cannot be halted cause the /zw is busy.below is infomatin;
3. i set the umountcount to 2,see below:
# FILESYSTEM UNMOUNT COUNT
# Specify the number of unmount attempts for each filesystem during package
# shutdown. The default is set to 1.
FS_UMOUNT_COUNT=2
WARNING: Running fuser to remove anyone using the file system directly.
/dev/vgxkfs1/lv_vgxkfs1: 26781co(weblogic) 9667mct(plat) 17048co(plat) 6011co(plat) 26616co(plat) 17047co(plat
) 9461co(weblogic) 11571co(weblogic) 26893c(root) 26768co(plat) 5944co(weblogic) 11585mco(weblogic) 9670mcto
(plat) 25902c(webapp) 1188co(weblogic) 5436co(weblogic)

umount: cannot unmount /dev/vgxkfs1/lv_vgxkfs1 : Device busy
umount: return error 1.
ERROR: Function umount_fs
ERROR: Failed to unmount /dev/vgxkfs1/lv_vgxkfs1


3. i set the umountcount to 2,see below:
# FILESYSTEM UNMOUNT COUNT
# Specify the number of unmount attempts for each filesystem during package
# shutdown. The default is set to 1.
FS_UMOUNT_COUNT=2
4. still cannot umount the filesystem,;
5. any good idea?
10 REPLIES 10
Hasan  Atasoy
Honored Contributor

Re: pkg cannot be halted.

hi ;

it seems that some parent process starts weblogic after killing child process. it may be useful to stop application first . I think it is started from root volume.


Hasan.
Johnson Punniyalingam
Honored Contributor

Re: pkg cannot be halted.

can you stop the weblogic & than

fuser -c /zw

cmhaltpkg -n node1 -v package1,

also please help to post /etc/cmcluster/pkg_name/pkg.log


Rgds,
Johnson
Problems are common to all, but attitude makes the difference
rajv
Advisor

Re: pkg cannot be halted.

Hi,

first you can check & kill which user using that filesystem,

#fuser -u /dev/vgxkfs1/lv_vgxkfs1
#fuser -k /dev/vgxkfs1/lv_vgxkfs1

then you can try
#cmhaltpkg

if its not stopping the package.

Activate the VG in exclusive mode

# vgchange â a e /dev/vgxkfs1

# cmhaltcl

# cmruncl

it will start the package and cluster.

enable the autorun

#cmmodpkg -e


Cheers!!!

-VRS-
rajv
Advisor

Re: pkg cannot be halted.

or

If stopped the package

#cmrunpkg -n

#cmmodpkg -e

Cheers!!!
-VRS-
huaxiang
Frequent Advisor

Re: pkg cannot be halted.

hi,all,
in order to make MC auto halt, I set "FS_UMOUNT_COUNT=2", see below.
is it a correct way to solve this problem?

***********************************************

# FILESYSTEM UNMOUNT COUNT
# Specify the number of unmount attempts for each filesystem during package
# shutdown. The default is set to 1.
FS_UMOUNT_COUNT=2 //*default is 1
Johnson Punniyalingam
Honored Contributor

Re: pkg cannot be halted.

Hi ,

FS_UMOUNT_COUNT=1 --> default should ok,

how does your pkg.cntl file looks "do you have the below enhancement for you umount the file system ..?

please check this_out

Example :-
============

# Unmount each logical volume.

function umount_fs
{
integer UM_CNT=${LV_UMOUNT_COUNT:-1}

if [[ $UM_CNT < 1 ]]
then
UM_CNT=1
fi

for I in $(print ${LV[@]} | awk '{ for(i=NF; i>0; i--) print $i }')
do
mount | grep -e $I" " > /dev/null 2>&1
if (( $? == 0 ))
then
print "$(date '+%b %e %X') - Node \"$(hostname)\": Unmounting filesystem on $I"
print "\tWARNING: Running fuser to remove anyone using the file system directly."
UM_COUNT=$UM_CNT
while (( $UM_COUNT > 0 ))
do
fuser -ku $I
umount $I
if (( $? == 0 ))
then
(( UM_COUNT = 0 ))
else
if (( $UM_COUNT == 1 ))
then
let 0
test_return 13
fi
(( UM_COUNT = $UM_COUNT - 1 ))
sleep 1
if (( $UM_COUNT > 0 ))
then
print "\t$(date '+%b %e %X') - Unmount failed, trying again."
fi
fi
done
fi
done
}


function deactivate_volume_group
{
for I in ${VG[@]}
do
print "$(date '+%b %e %X') - Node \"$(hostname)\": Deactivating volume group $I"
vgchange -a n $I
test_return 14
done
}

Thanks,
Best Regards,
Johnson
Problems are common to all, but attitude makes the difference
huaxiang
Frequent Advisor

Re: pkg cannot be halted.

attache is the cntl file, almost the same.
sreekanthtm
Trusted Contributor

Re: pkg cannot be halted.

Hi,

FILESYSTEM UNMOUNT COUNT Option specifies, How many time the system could try to unmount the file system if its not getting unmount in the first attempt. So system will exicute the same command ( umount /dev// ) as many time u specified here. But no use, if there is any real problem in unmounting the file system.

There is one more option available, ie; to run "fuser", in case of any error occured in unmounting the filesystem. you have to enable that. Please have a look into your controll script. I don't know where it is located. :(

Rgds
Sreekanth
Frank_W
Frequent Advisor

Re: pkg cannot be halted.

Hi,

are there some other filesystems mounted underneath /zw ?
Such as: /zw/.
Then you have to unmount these before.
Johnson Punniyalingam
Honored Contributor

Re: pkg cannot be halted.

Hi Huaxiang,

Can please replace your "fuser -ku" to "fuser -km" =====> pkg.cntl.file

/var/adm/syslog/syslog.log --> file
/etc/cmcluster/pkg.log --> file

if still some -one holding the mount -point

Application "could be that place we need look closely"





Problems are common to all, but attitude makes the difference