Operating System - HP-UX
1838661 Members
8748 Online
110128 Solutions
New Discussion

Cannot remove lvol via sam

 
Keely Jackson
Trusted Contributor

Cannot remove lvol via sam

Hi

I cannot remove a logical volume via sam. It just hangs during the umount and the only way out is to kill sam.

The sam log shows:
Entering Task Manager with task FS_REMOVE_FSTAB_ENTRY.
@!@8@1054738340@0
Performing task "Remove entry from /etc/fstab.".
@!@4@1054738340@0
Getting information from the /etc/fstab file.

The directory has actually been unmounted and I can then delete the logical volume using lvremove without any problem.

It's not a huge problem but I am curious as this has worked in the past. Anybody got any ideas? Box is a D370 hpux 10.20 (I know, it should be put out to pasture).

Thanks
Keely
Live long and prosper
10 REPLIES 10
Martin Johnson
Honored Contributor

Re: Cannot remove lvol via sam

Do you have the latest SAM patches installed?

Was the /etc/fstab entry for the lvol correct? What about the /etc/mnttab entry? Did the two match?

The /etc/fstab and /etc/mnttab entries should be the same or problems can occur. I had all sorts of problems when "/" was /dev/vg00/lvol1 in one file and /dev/vgroot/lvol1 in the other.

HTH
Marty
Helen French
Honored Contributor

Re: Cannot remove lvol via sam

Are you up to date with SAM patches? Apply latest SAM cumulative patch and LVM patches. I wouldn't worry about it if I can remove the LV from command line. Update system with latest patches, that may solve your issue.
Life is a promise, fulfill it!
Ross Zubritski
Trusted Contributor

Re: Cannot remove lvol via sam

This reeks of sam/Obam Cum patches.

Regards,

RZ
Keely Jackson
Trusted Contributor

Re: Cannot remove lvol via sam

Hi

The entry in /etc/fstab was correct. I don't know about mnttab as the entry had been removed by sam.

The box is up to date with the last support plus for 10.20 but it is possible the latest sam patch isn't there, I'll check once I've found which one to check for.

Strange that it has worked in the past.

Thanks
Keely
Live long and prosper
Helen French
Honored Contributor

Re: Cannot remove lvol via sam

Another thing to try:

# cd /etc
# mv mnttab mnttab.old
# mount -a

Now try SAM commands.
Life is a promise, fulfill it!
Keely Jackson
Trusted Contributor

Re: Cannot remove lvol via sam

Hi again

PHCO_22268 which appears to be the latest patch is installed.

Thanks for the suggestion Shiju, I'll create a test lvol and try it out. Will let you know.

Thanks
Keely
Live long and prosper
Keely Jackson
Trusted Contributor

Re: Cannot remove lvol via sam

Hello

Deleting mnttab and recreating it made no difference. It still hangs trying to update /etc/fstab.

Any other suggestions?

Thanks
Keely
Live long and prosper
Michael Tully
Honored Contributor

Re: Cannot remove lvol via sam

Hi Keely,

I know that SAM appears to be the problem, and I saw what the suggestions were made, but have you just tried to this from the command line just for the hell of it?

# umount /blah
# lvremove -f /dev/vgxx/lvolxx

You can manually edit /etc/fstab later.

Regards
Michael
"When I have trouble spelling, it's called fat finger syndrome."
Anyone for a Mutiny ?
Keely Jackson
Trusted Contributor

Re: Cannot remove lvol via sam

Hi Michael

Yes, I have removed it manually and amended the fstab. I am just curious as to why sam can no longer do it.

Cheers
Keely
Live long and prosper
Michael Tully
Honored Contributor

Re: Cannot remove lvol via sam

Hi Keely,

Unfortunately I can't answer that question as to whether SAM could or couldn't do it. I've been a CLI person from way back and don't use SAM very often at all. Using the command line gives you total control over what is happening, and of course you can use scripts as well.

I'm glad to see you have it under control.

Cheers
Michael
"When I have trouble spelling, it's called fat finger syndrome."
Anyone for a Mutiny ?