Operating System - HP-UX
1837239 Members
2021 Online
110115 Solutions
New Discussion

can not increase logical volume

 
SOLVED
Go to solution
szhiyong
Frequent Advisor

can not increase logical volume

Hi,

I want to increase logical volume for lvol3. it is mounted to "/" directory. I try to increase the logical volume, but there is error message "can not umount, device busy". Then I "fuser -ku /". Then I "fuser -cu /", I can see "root still use this directory", so I still have "device busy" error message.

Would someone tell me how to solve this problem?

Thanks a lot.

zhiyong
My life is now asking and learning, I wish It can change into replying and discussing
12 REPLIES 12
Ian Kidd_1
Trusted Contributor

Re: can not increase logical volume

What directory are you in? If you're in the mount point, you won't be able to umount it. Example:

# umount /opt/ignite
umount: cannot unmount /opt/ignite : Device busy
If at first you don't succeed, go to the ITRC
Ian Kidd_1
Trusted Contributor

Re: can not increase logical volume

Whoa, I reread your question. Are you trying to grow / (root)?
If at first you don't succeed, go to the ITRC
Joseph C. Denman
Honored Contributor
Solution

Re: can not increase logical volume

Not absolutely sure, but I think / need to be contiguous, which mean you will not be able to do it.

You could try booting from the support cd and attempting it. If not, you will need to create an ignite tape and rebuild from the tape.

...jcd...
If I had only read the instructions first??
S.K. Chan
Honored Contributor

Re: can not increase logical volume

Increasing "/" filesystem is not a straight forward task because of it's contigous nature. The make_tape_recovery method is the safest way to go. You cannot simply extend the logical volume while the system is running. Take a look at this thread (very recent), Patrick and Michael talk about using make_tape_recovery and I had a reference to another document that gives you another option by moving extents around.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xcd1a36e69499d611abdb0090277a778c,00.html
A. Clay Stephenson
Acclaimed Contributor

Re: can not increase logical volume

It's more than just a filesystem busy mount problem. The / filesystem, /stand, and primary swap must all be on contigious LVOL's. Your only real option is to do a make_tape_recovery and reload the OS using Ignite/UX. You are given a chance to resize the LVOL's when you Ingite the OS.

If it ain't broke, I can fix that.
Joseph C. Denman
Honored Contributor

Re: can not increase logical volume

Looks like your out of luck.

Checkout this thread.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xcd1a36e69499d611abdb0090277a778c,00.html

...jcd...
If I had only read the instructions first??
Dave Chamberlin
Trusted Contributor

Re: can not increase logical volume

You cannot extend / (without rebuilding the file system) since it must be contiguous.
Ian Kidd_1
Trusted Contributor

Re: can not increase logical volume

an option to bypass trying to grow root is to create a new logical volume. For example, some applications people created a directory, /log (I don't know why), which started causing problems. So we created /dev/vg03/appslog which mounted at /log.

If at first you don't succeed, go to the ITRC
szhiyong
Frequent Advisor

Re: can not increase logical volume

Hi,All,

Thanks a lot for help!

I will make a recovery tape and boot from the tape.

zhiyong
My life is now asking and learning, I wish It can change into replying and discussing
Fragon
Trusted Contributor

Re: can not increase logical volume

Hi,zhiyong:
Make sure you are use a no-rewind tape to do this. You can use make_recovery to achieve this if your Ignite-UX version is old. Just an example:
#make_recovery -CA

-Gerald Zhou-
Yogeeraj_1
Honored Contributor

Re: can not increase logical volume

hi,
The command I would use to create an make_tape_recovery tape is (assuming tape drive is /dev/rmt/0mn):

/opt/ignite/bin/make_tape_recovery -a /dev/rmt/0mn -I -v -x inc_entire=vg00

hope this helps!
Best Regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
szhiyong
Frequent Advisor

Re: can not increase logical volume

Hi,

Thanks a lot!

I really appreciated it.

zhiyong
My life is now asking and learning, I wish It can change into replying and discussing