1826499 Members
1599 Online
109692 Solutions
New Discussion

Extending the DP mount

 
SOLVED
Go to solution
Chad Brindley
Regular Advisor

Extending the DP mount

Hi, i am trying to extend the logical volume that data protector IDB uses (I think) /dev/vgdp/lvol1.

I have ran lvextend -L 2048 /dev/vgdp/lvol1 /dev/dsk/c9t1d1 which wrote to mntab. I have tried to now unmount the filesystem and get an error saying the device is busy.

I have tried to run the umount command before I run the extendfs command and before I mount again. how can I get around this. I run a fuser -cu /dp and it shows entries there so I believe there are processes being used.

I am quite new to HPUX (unix) and am following instructions left by a guy who left recently when he extended another logical volume.

His notes say to shutdown the SAP database first but I didnt do this because I didnt think the DP area would be causing any processes to be used due to the backups not running until later. I have tried after stopping the dp services but still no joy and also when the DP cluster package was stopped but then it did not recognise the DP filesystem mounted to umount.

Would appreciate any help.

Regards,

Chad

ps - many thanks in advance.
9 REPLIES 9
Mel Burslan
Honored Contributor
Solution

Re: Extending the DP mount

first off, if you have a product called OnlineJFS, you do not need to unmount the filesystem for extending. check if you have it by running

swlist -l product | grep -i jfs

if you see something like this in the output, you have it

OnlineJFS B.11.11 Online features of the VxFS File System

if you have it, after lvextend command completes, run this

fsadm -F vxfs -b 2048M /dp

should make you good to go.

if you do not have it, come back and indicate that for a more detailed troubleshooting.

As usual, try the simplest possibility first.

________________________________
UNIX because I majored in cryptology...
Raj D.
Honored Contributor

Re: Extending the DP mount

Hi Chad,

Check about your DP daemons and processes ,i.e , crs , rds , mmd if running from , that filesystem.
Usually it runs from /opt/omni/lbin/.

Check if any process running with omni.
# ps -ef | grep omni.

# fuser -cu /dp

Once everything is clear , u can unmount it.

cheers ,
Raj
" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: Extending the DP mount

Also , If you have online JFS installed , you can extend the filesystem online.

check it with:
# swlist -l bundle | grep -i online
swlist -l bundle | grep -i online
B3929DA 3.5-ga15-01 HP OnLineJFS 3.5
you should get like that. And then you can proceed for expansion of the file system.

Syntax:
-------
# lvextend -L 2048 /dev/vgdp/lvol1
# fsadm -F vxfs -b 2097152 /dp
( Remember this will be the total size of the file system, i.e total size will be= 2GB 2048MB, that is including the earlier size).

Cheers,

Raj.

" If u think u can , If u think u cannot , - You are always Right . "
Marvin Strong
Honored Contributor

Re: Extending the DP mount

you will need to shutdown omniback in order to umount the filesystem with extendfs.

if you have Online JFS you could do it while omniback was up and running.

fuser -cu /db should show you what is running against that filesystem. Stop those processes if they are something other than omniback and you can umount and extendfs.

Leif Halvarsson_2
Honored Contributor

Re: Extending the DP mount

Hi,

Is the DP database located on an own volume (/var/opt/omni or perhaps /var/opt/omni/db40) ? If it is, just shut down DP using "/opt/omni/sbin/omnisv stop". Then you can unmount the volume. Start DP again after mounting with "/opt/omni/sbin/omnisv start"
Florian Heigl (new acc)
Honored Contributor

Re: Extending the DP mount

As already said, OnlineJFS would be a better way to go, shutting down SAP definitely not :)

But one more thing catched my eye:

"I have ran lvextend -L 2048 /dev/vgdp/lvol1 /dev/dsk/c9t1d1 which wrote to mntab."

Can You be a bit more verbose about this - nothing except the mount command itself should write to /etc/mntab. Can You explain a bit more?
yesterday I stood at the edge. Today I'm one step ahead.
Marlou Everson
Trusted Contributor

Re: Extending the DP mount

As others have said, if /dev/vgdp/lvol1 is jfs then you can just fsadm to finish increasing the size. You can do fstyp /dev/vgdp/lvol1 to find out if it is vxfs.

You mentioned stopping the DP cluster package. If this is a ServiceGuard package, then when you stopped it, did it start on another node/system? That would be one reason why it would not find the filesystem to unmount - because it was mounted on another system. Stopping a SG package, unmounts the relevant file systems.

Marlou
Marlou Everson
Trusted Contributor

Re: Extending the DP mount

If this a ServiceGuard package and the logical volume is not jfs then you need to halt it so that it does not start on another node before you can use extendfs.

Marlou
Chad Brindley
Regular Advisor

Re: Extending the DP mount

Thanks we have online JFS, I used the advice of Mel Burslan and this worked great.

The command used 'fsadm -F vxfs -b 2048M /dp'

Thanks all for your help.

Chad