- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Extend a mounted logical volume
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 05:40 AM
10-20-2003 05:40 AM
I want to extend a logical volume that is already mounted, and I know that it can be done without unmounting the filesystem...
How can I do that???
Thanks
Jonathan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 05:45 AM
10-20-2003 05:45 AM
Re: Extend a mounted logical volume
If you have the OnlineJFS product, you can do this without unmounting the FS. Otherwise you need to:
umount /dev/vg00/lvol1
lvextend -L larger_size /dev/vg00/lvol1
extendfs -F hfs /dev/vg00/rlvol1
mount /dev/vg00/lvol1 mount_directory
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 05:47 AM
10-20-2003 05:47 AM
SolutionTo do this you must have the OnLine JFS product. Steps as follows:
1)Determine if free space available in the VG - if none, will need to add another disk to the VG with vgextend
2) Extend the LV with
lvextend -L XXXXM /dev/vg_name/lv_name #where XXXX=new size in MB
3)Extend the FS size with fsadm
fsadm -F vxfs -b XXXX /mnt_point #where XXXX equals the new size in sectors
Then check for the new FS size.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 05:50 AM
10-20-2003 05:50 AM
Re: Extend a mounted logical volume
here is the result of the "swlist -l fileset | grep -i jfs" command
AdvJournalFS.AJFS-ENG-A-MAN B.11.00 AJFS-ENG-A-MAN
AdvJournalFS.AJFS-JPN-E-MAN B.11.00 AJFS-JPN-E-MAN
AdvJournalFS.AJFS-JPN-S-MAN B.11.00 AJFS-JPN-S-MAN
# JFS 3.3 JFS 3.3 base filesystem
JFS.JFS-BASE-KRN 3.3 JFS 3.3 filesystem commands
JFS.JFS-BASE2-KRN 3.3 JFS 3.3 filesystem kernel libraries - 64 bit
JFS.JFS-ENG-A-MAN 3.3 JFS 3.3 filesystem man pages
JournalFS.JFS-ENG-A-MAN B.11.00 JFS-ENG-A-MAN
Is JFS 3.3 the same thing that Online JFS???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 05:52 AM
10-20-2003 05:52 AM
Re: Extend a mounted logical volume
I take the SIZE / PE-SIZE???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 06:01 AM
10-20-2003 06:01 AM
Re: Extend a mounted logical volume
No, just do a lvdisplay /dev/vg_name_lv_name and use the value of Current LE as the sectors size.
And no, none of those are OnLine JFS - do a
swlist | grep -i online
and if you have it, it will show up then.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 06:12 AM
10-20-2003 06:12 AM
Re: Extend a mounted logical volume
Its the extendfs command that won't work while its mounted. Of course the new space is pretty useless without extending the filesystem.
OnlineJFS provides a different command for extending the filesystem which does work while its mounted.
Without OnlineJFS you are out of luck.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 06:18 AM
10-20-2003 06:18 AM
Re: Extend a mounted logical volume
No, you're seeing the Base JFS product. The online product should look like this:
# swlist |grep -i online
B3929CA B.11.11 HP OnLineJFS
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 06:20 AM
10-20-2003 06:20 AM
Re: Extend a mounted logical volume
Make sure if you have Mirroring, that you have enough extents for that as well on the mirror disk...
##lvextend -L
OR
##lvextend -l <4*4096> /dev/vgXX/LVOL ## This size is your Filesystem in 4MB extents which is the default...
THEN DO THIS:
##fsadm -F vxfs -b
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 06:38 AM
10-20-2003 06:38 AM
Re: Extend a mounted logical volume
If you have purchased OnlineJFS, you can do the following.
If, let's say i want to extend my existing lvtest (mounted on /test) of 300M to 500M.
Extending the 'container' first (LVM) :
# lvextend -L 500 /dev/vg00/lvtest
Warning: rounding up logical volume size to extent boundary at size "504" MB.
Logical volume "/dev/vg00/lvtest" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.con
f
Take note that LVM has rounded the size to 504Mo (due to the PE = 4Mo unit).
Extending now the 'content' (vxfs/jfs) you can use :
# fsadm -F vxfs -b 504M /test
vxfs fsadm: /dev/vg00/rlvtest is currently 311296 sectors - size will be increas
ed
Or you can use :
# fsadm -F vxfs -b $((504*1024)) /test
vxfs fsadm: /dev/vg00/rlvtest is currently 311296 sectors - size will be increas
# bdf /test
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvtest 516096 1229 482695 0% /test
Hope this helps, Bye.
Francis DERDEYN - HP-UX ASCE.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 07:22 AM
10-20-2003 07:22 AM
Re: Extend a mounted logical volume
I've look on my system, and I've got the OnlineJFS product "swlist | grep -i online". And I've installed it with a HP CodeWord.
But when I run "fsadm" command I got this error:
fsadm: You don't have a license to run this program
I register it with a Codeword....
Any idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 07:26 AM
10-20-2003 07:26 AM
Re: Extend a mounted logical volume
# vxlicense -p ## Shows the current licenses...
vrts:vxlicense: INFO: Feature name: HP_OnlineJFS [50]
vrts:vxlicense: INFO: Number of licenses: 1 (non-floating)
vrts:vxlicense: INFO: Expiration date: Sun Jun 24 03:00:00 2007 (1342.5 days fro
m now)
vrts:vxlicense: INFO: Release Level: 22
vrts:vxlicense: INFO: Machine Class: All
vrts:vxlicense: INFO: Site ID: 0
This should help you...
/sbin/fs/vxfs/vxenablef -a ## to activate a JFS license
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 07:34 AM
10-20-2003 07:34 AM
Re: Extend a mounted logical volume
vrts:vxlicense: INFO: No valid license installed
Where can I get a license??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 07:43 AM
10-20-2003 07:43 AM
Re: Extend a mounted logical volume
## to activate a JFS license. this should work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 07:55 AM
10-20-2003 07:55 AM
Re: Extend a mounted logical volume
It still gives me the same message... :S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 08:05 AM
10-20-2003 08:05 AM
Re: Extend a mounted logical volume
and then exenablef -a to enable license.
look this website http://licensing.hp.com to get more information
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 08:06 AM
10-20-2003 08:06 AM
Re: Extend a mounted logical volume
vxenablef should work quoting the manpage:
"If you have valid licenses" for these features, vxenablef makes them available without rebuilding a new kernel and rebooting the system.
It sounds like you need to load the license for the advanced features...I think you said you lost your codeword? Im not sure it can be recovered...
May have to reload to reset it, but im not totally sure on that.
IF you have HPUX OS 11.11 loaded, it can be reloaded with NOREBOOT... However, if you have 11.0, it requires a reboot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 10:14 PM
10-20-2003 10:14 PM
Re: Extend a mounted logical volume
try this
/sbin/fs/vxfs3.3/vxenablef
=> should say that it's not licensed
/sbin/fs/vxfs3.3/vxlicense -c
=> and then enter the license ( if not already done )
/sbin/fs/vxfs3.3/vxenablef -a
=> to enable the license
/sbin/fs/vxfs3.3/vxenablef
=> Now, it should be enabled.
obviosly you need to get the license before doing stage two, but stage one will tell you if its been licensed and if so you probably only need to activate (stage 3)
if not licenses get licenses from
http://licensing.hp.com
hope this helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2003 01:15 AM
10-22-2003 01:15 AM
Re: Extend a mounted logical volume
I finally solved my problem, I ordered a license from HP licensing, I installed it with
vxlicense -c
then I've activated it with
vxenablef -a
then I extended my logical volume:
lvextend -L xxxxM /dev/vg00/lvname
and finally I've been able to use fsadm:
fsadm -F vxfs -b xxxxM /fsname
It worked perfectly...
Thanks you all!!
ciao!
Jonathan