- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Extending File Systems
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
Forums
Discussions
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
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-12-2000 06:47 AM
10-12-2000 06:47 AM
Chris Hinnen
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2000 06:59 AM
10-12-2000 06:59 AM
Re: Extending File Systems
If you have OnlineJFS you can do this "on-the-fly". This is a "chargeable" product feature but well worth the cost. You can use SAM to guide you throught the resize, or you can do this yourself. For example, do:
# lvextend -L n /dev/vgxx/lvolx
# fsadm -b 1024n /var
where n is the NEW SIZE of the logical volume in megabytes, not the increment in size;
and, 1024n is the product of 1024 and the number of megabytes you want to filesystem to ultimately be.
If the filesystem is HFS or you do not have online JFS, then you will need to be able to unmount the filesystem before you can extend it.
These procedures are described in the HP-UX System Administration Tasks manual:
http://docs.hp.com/hpux/onlinedocs/B2355-90672/B2355-90672.html
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2000 06:59 AM
10-12-2000 06:59 AM
Re: Extending File Systems
First you have to extend the logical volume with the 'lvextend' command.
Then you have to extend the filesystem. This depends on a) which filesystem and b) whether you have purchased Online JFS.
If you have Online JFS then you can extend 'on the fly' with the fsadm command. Otherwise you have to unmount the filesystem (single user mode may be required) and extend it with the extend_fs command.
There are lots of previous threads on this issue. I suggest that you do a Forums Search (SEARCH button at top left of screen, tick Community Forums and Boolean options and search for 'extending and filesystem').
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2000 07:00 AM
10-12-2000 07:00 AM
Re: Extending File Systems
do a bdf and notice the first columns device path ie: /dev/vg01/lvol1
ie you want 500MB do:
lvextend -L 500 /dev/vg01/lvol1
After this you have to unmount the filesystem:
umount /
You have to determine which fs you have with:
fstyp /dev/vg01/lvol1
Now extend the filesystem:
extendfs -F [vxfs|hfs] /dev/vg01/lvol1
Then mount the fs:
mount /
If you have OnlineJFS you can extend fs without umounting - do a search in the forums with 'fsadm'
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2000 07:01 AM
10-12-2000 07:01 AM
Re: Extending File Systems
SAM can help.
From the command line, umount the partition, do lvextend -l X /dev/vgYY/lvZZ - X is the total number of extents, YY is the VGNAME and ZZ is the LVNAME. Once complete, do the extendfs command.
SAM will do all of the above steps for you - if the FS dos not need to contingous. If you do not have OnLine JFS, you will need to umount the partition.
Also do a SEARCH for previous posts related to this subject.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2000 07:03 AM
10-12-2000 07:03 AM
Re: Extending File Systems
extend_fs was a type, the command is extendfs.
I always mix that up with the required man page - man extendfs_vxfs or man extendfs_hfs.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2000 07:12 AM
10-12-2000 07:12 AM
Re: Extending File Systems
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2000 07:17 AM
10-12-2000 07:17 AM
Re: Extending File Systems
To find how much unused space you have:
# vgdisplay /dev/vgXX
Look for the free PE (physical extents). One PE=1024 KB
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2000 07:18 AM
10-12-2000 07:18 AM
Re: Extending File Systems
Sorry, wrong thought: one PE=4MB as vgdisplay will show!!!
To find how much unused space you have:
# vgdisplay /dev/vgXX
Look for the free PE (physical extents). One PE=4 MB
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2000 07:25 AM
10-12-2000 07:25 AM
Re: Extending File Systems
vgdisplay -v vg?? gives you details per disk in the volume group.
To study a particular disk, use pvdisplay.
See the relevant man pages for full details.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2000 07:33 AM
10-12-2000 07:33 AM
Re: Extending File Systems
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2000 07:37 AM
10-12-2000 07:37 AM
Re: Extending File Systems
The find disks option lets you select disks that are not in use with the LVM and will let you setup LVM on the disk(s).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2000 07:39 AM
10-12-2000 07:39 AM
Re: Extending File Systems
SAM is the best option for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2000 07:47 AM
10-12-2000 07:47 AM
Re: Extending File Systems
/usr/sbin/lvextend -L 152 /dev/vg00/lvol1
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol1" could not be extended.
Failure possibly caused by contiguous allocation policy.
Failure possibly caused by strict allocation policy
I know I have enought physical extents available, it said I have 788 Free PE.
chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2000 08:00 AM
10-12-2000 08:00 AM
Re: Extending File Systems
vg00/lvol1 is the boot volume of your root VG (/stand). It MUST be contiguous and have bad block relocation turned off. It is not possible to increase the size of this filesystem after initial creation without either physically moving extents allocated to the other lvols or rebuilding the VG. Both operations are probably more complex than you require.
Why do you need to extend /stand? It is proobably more desirable to clean out old/unneccessary kernel/system files. Alternativey, if a subdirectory is large (should not be, but IF) then you might want to create a separate filesystem for that subdirectory.
Again, cleaning out the FS is probably your best choice. If you really have a need for a larger /stand, then I suggest rebuilding the root VG with a make_recovery tape.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2000 08:03 AM
10-12-2000 08:03 AM
Re: Extending File Systems
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2000 08:08 AM
10-12-2000 08:08 AM
Re: Extending File Systems
That shoud be enough. If not, post an ll of /stand and we can take a look.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2000 08:11 AM
10-12-2000 08:11 AM
Re: Extending File Systems
From SAM, choose the 'Disks and File Systems' option, then choose the Logical Volume option
This could take a little time (couple of minutes as it scans the HW). Within this option, highlight the LV you wish to expand and then on the menu bar is Actions. Bring down the menu and there is a selection for 'Increase Size'.
Again be aware, if a contiguous FS, there will be additional steps involved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2000 08:15 AM
10-12-2000 08:15 AM
Re: Extending File Systems
-rw-r--r-- 1 root sys 19 Jul 27 11:23 bootconf
drwxr-xr-x 4 root sys 2048 Oct 11 13:11 build
drwxr-xr-x 5 root sys 1024 Aug 7 10:41 dlkm
drwxr-xr-x 5 root sys 1024 Aug 4 11:51 dlkm.vmunix.prev
-rw-r--r-- 1 root sys 1932 Jul 27 11:47 ioconfig
-r--r--r-- 1 root sys 82 Jul 27 11:47 kernrel
drwxr-xr-x 2 root root 8192 Jul 27 11:23 lost+found
-rw------- 1 root root 12 Oct 11 11:04 rootconf
-r--r--r-- 1 root sys 690 Oct 11 13:11 system
-r--r--r-- 1 root sys 690 Oct 11 13:06 system.prev
-rwxr-xr-x 1 root sys 12908808 Aug 7 10:28 vmunix
-rwxr-xr-x 1 root sys 12908808 Jul 27 11:42 vmunix.prev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2000 08:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2000 08:21 AM
10-12-2000 08:21 AM
Re: Extending File Systems
Chris