Operating System - HP-UX
1751865 Members
5782 Online
108782 Solutions
New Discussion юеВ

Re: lvextend vg00 logical volume without any dowtime!!

 
SOLVED
Go to solution
astra
Frequent Advisor

lvextend vg00 logical volume without any dowtime!!

Hello,

We would like to extend the logical volume related to /opt. Is there any way through which we can do it without rebooting our servers.

All the valuable comments will be appreciated.

Thanks & regards,
Amit




8 REPLIES 8
likid0
Honored Contributor

Re: lvextend vg00 logical volume without any dowtime!!

Hy,

Because /opt has a lot of open files, you can check with lsof.

The best way is using ONLINEJFS, you need to license the product, this way you can the FS without needing to umount them.

product: B3929DA
Windows?, no thanks
Ramaprasad K
Regular Advisor

Re: lvextend vg00 logical volume without any dowtime!!

Amit,

There are few possibilities. Following are some to my knowledge (applicable for HP-UX 11i):

1) If you have OnlineJFS installed.
#swlist -l product | grep Online*
2) If you have DRD (Dynamic Root Disk). More on DRD, refer http://docs.hp.com/en/DRD/index.html
3) refer following link (though for / and /stand, will work for /opt without requireing reboot): http://www.symmetricwebsites.com/articles/HP-UX/hpuxDynamicallyExtendSlashAndOrStand.php

Hope this helps.

Ram.
sujit kumar singh
Honored Contributor
Solution

Re: lvextend vg00 logical volume without any dowtime!!

Hi,


Online doing lvxtend and increasing the Filesystem on that is only posible with the use of the OnlineJFS as said by orangeADM in the post.
1)
#lvextend -L
2)
#fsadm -b

step 2 is only possible with the OnlineJFS.

Else you need to umount the LV and need to do an extendfs after lvextend

#extendfs -F vxfs /dev//r


also need to make sure that you have enough free space as available in vg00 and mirrioring policy(also need to see if that is contiguous) of LV (which has /opt) to take into account that teh expansion will be feasible or not.


Regards
Sujit
astra
Frequent Advisor

Re: lvextend vg00 logical volume without any dowtime!!

Hello,

Thanks for yor valuable responses.

I tried to increase it using SAM and it extended successfully and the same extended size is visible in "bdf". Is it ok or not?? Do we face any problem in future??

Please clarify,

Amit
Johnson Punniyalingam
Honored Contributor

Re: lvextend vg00 logical volume without any dowtime!!

>>I tried to increase it using SAM and it extended successfully and the same extended size is visible in "bdf". Is it ok or not?? Do we face any problem in future??

Please clarify,<<

Hi Astra,

Do we face any problem in future??

NO problem, As You mentioned that you have extended successfully via SAM and the same extended size is visible in "bdf".

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
sujit kumar singh
Honored Contributor

Re: lvextend vg00 logical volume without any dowtime!!

Hi


would like to see the O/P of the commands as you can give from your system.


1)#bdf
2)swlist -l product -l bundle | grep -i online

the reason is that lvextend you can always do even on a mounted LV, But the actual part that is of the Extension of the File System that resides on that LV to occupy all the extended space can be online using fsadm if you have OnlineJFS or by unmounting the LV and doing an extendfs for that LV as in absence of OnlineJFS , extendfs is the only resort and extendfs shall work only for an umnounted LV.


Regards
Sujit
Emil Velez
Honored Contributor

Re: lvextend vg00 logical volume without any dowtime!!

if you extend the logical volume you still have to extend the filesystem structure ontop of the logical volume assuming you have onlineJFS.

Bill Hassell
Honored Contributor

Re: lvextend vg00 logical volume without any dowtime!!

> I tried to increase it using SAM and it extended successfully and the same extended size is visible in "bdf".

The job is only half completed. You did not increase the filesystem, you increased the lvol -- which nothing but disk geometry.

> Is it ok or not??

Nope. bdf is correct. Your vgdisplay command will show the increased size for the lvol, but an lvol is not a filesystem. Filesystems can reside on an lvol, but the lvol could be a swap area, or it could be a raw database volume.

> Do we face any problem in future??

No, but the additional space is wasted.

In other words, expanding an lvol to allow for more files is a two step process. The first half is complete (lvextend). Now run extendfs. NOTE: this is where you will fail until all processes using /opt are stopped. Since this is just about everything, you will realize that the only way to extend the filesystem into the new lvol space is to reboot into single user mode and run extendfs for /opt.

Or, you can purchase the optional Online JFS product (mentioned above) so the filesystem can be extended at any time.


Bill Hassell, sysadmin