Operating System - HP-UX
1838123 Members
4331 Online
110124 Solutions
New Discussion

sam fails to extend mounted filesystem, lvextend works fine

 
SOLVED
Go to solution
mike bayne
Occasional Advisor

sam fails to extend mounted filesystem, lvextend works fine

I have 2 HPUX 11.00 boxes with very similar configurations. One of them, sam works correctly to extend a mounted filesystem. The other fails because it tries to unmount the filesystem first. Running the lvextend command on the command line works correctly on both.

swlist shows the same files installed for JFS 3.3 and OnlineJFS. The only odd thing I can find is that on the "broken" system, the /etc/mnttab shows the filesystems mounted with the option "nodatainlog". This is not an option that was set in /etc/fstab.

Any ideas?

Thanks,
Mike
4 REPLIES 4
John Poff
Honored Contributor

Re: sam fails to extend mounted filesystem, lvextend works fine

Hi,

I have an idea. Don't use sam to do LVM work. I never do. :)

JP
Sridhar Bhaskarla
Honored Contributor

Re: sam fails to extend mounted filesystem, lvextend works fine

Hi Mike,

Use command line option and see what happens.

1. lvextend -L new_size_in_mb /dev/vgxx/lvolx
2. fsadm -b size_in_blocks /mount_point

size_in_blocks=new_size_in_mb x 1024

If the above returns any error, then there is a problem with onlineJFS.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: sam fails to extend mounted filesystem, lvextend works fine

I am going to guess that OnlineJFS has not been licensed on one of the boxes.

OnlineJFS 3.3 requires a run-time license to enable it rather than simply a codeword to unlock the software for install.

I would also make sure that the latest SAM cumulative patch has been applied.
If it ain't broke, I can fix that.
Patrick Wallek
Honored Contributor

Re: sam fails to extend mounted filesystem, lvextend works fine

If SAM is attempting to unmount the file system in order to extend the it means either 1) your Online JFS installation is broken or 2) the filesystem is HFS and not JFS.

SAM usually works pretty well to extend a filesystem, especially if you OnlineJFS installed and working.

One way to verify that Online JFS is installed is to do the following:

# grep vx /stand/system
vxadv
vxbase

If Online JFS is installed and configured correctly then you will see both vxadv and vxbase drivers in the /stand/system file. If Online JFS is NOT installed or configured correctly then you will only see vxbase in the /stand/system file. I suspect that this may be your problem.

If it is, reinstall Online JFS, which requires a reboot. Then see if you have all of the most recent LVM patches.

Good luck.