Operating System - HP-UX
1836579 Members
1419 Online
110102 Solutions
New Discussion

Re: A doubt reg extending LVs

 
SOLVED
Go to solution

A doubt reg extending LVs

HI gurus,
I need ur suggestion regarding extending the size of an LV.

Generally if I need to extend the size of /var mounted on /dev/vg00/lvol9, I do the following :
1. lvextend -l /dev/vg00/lvol9
2. /usr/lbin/fs/vxfs/fsadm -F vxfs -b /var
In this process, I need not umount /var.

But HP-UX manuals tell that to extend a LV,
1. lvextend -l size /dev/vg00/lovl9
2. umount /var
3. extendfs -F vxfs /dev/vg00/rlovl9
4. mount /var

But both the processes do the same.
No my question is which is safer?
Is there anything wrong/harmful in my approach?
What is the difference between both of them?

I'ld appreciate any help/clarifications in this regard.

TIA,
Raghu.
Unix is not for those who donot love Unix!
4 REPLIES 4
Bill McNAMARA_1
Honored Contributor
Solution

Re: A doubt reg extending LVs

But both the processes do the same.
>> YES

No my question is which is safer?
>> neither

Is there anything wrong/harmful in my approach?
>> Apart from the tipo in the second 1.
>> No.

What is the difference between both of them?
>> Online JFS is an optional
>> pay for product and not
>> available on default install

Later,
Bill
It works for me (tm)
Victor BERRIDGE
Honored Contributor

Re: A doubt reg extending LVs

Hi,
Nothing wrong... One suggest you HAVE online JFS, the other is for the poor guy who will have to go single user to be sure to unmount /var and therefore can not use SAM to accomplish the task...

All the best
Victor
Sunny D
New Member

Re: A doubt reg extending LVs

Hi,
The only time you need to umount a filesystem is if you don't have onlinejfs, the best way to check is by:

swlist |grep -i online

If it comes back with anything then you dont need to get involved with umounting the directory otherwise as the /var directory is constantly being used you will require to bring the maching down to single user mode and then umount the filesystem.

Good luck and hope this helped.
Sunny D
New Member

Re: A doubt reg extending LVs

Hi again,

Sorry I should have been more precise. When you run the swlist |grep -i online command the returned output you should be looking for is like this:

B3929BA B.11.00 HP OnLineJFS (Advanced VxFS)

Obviously depending on your OS version the B.11.00 will change to say B.10.20, if you have the version for example.

Rgds