- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Increasing Filesystem Space!!
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
01-08-2006 08:55 PM
01-08-2006 08:55 PM
I am new to HP.
In a system I have some filesystems which are almost 100% utilized. I need to increase the filesystem capacity by at least 50%.
I dont have space left in the volume group.
Can any body please help.
VG Name /dev/vgp_d1
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 28
Open LV 28
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 26019
VGDA 4
PE Size (Mbytes) 4
Total PE 34686
Alloc PE 34280
Free PE 406
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 09:06 PM
01-08-2006 09:06 PM
Re: Increasing Filesystem Space!!
1. look for redundant files (e.g. old log files) in the filesystem and delete them to free space
2. replace the disc with a larger one
3. add a second disc to the vg.
My preference would be for option 1 - only consider options 2 and 3 if you can't free enough space.
Run the command:
du -k|sort -k1,1nr|pg
to see which directories are taking up most space. cd to the directories one at a time and run:
ll|sort -k5,5nr|pg
to see the largest files.
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 09:06 PM
01-08-2006 09:06 PM
Re: Increasing Filesystem Space!!
Check these threads for more information,
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=981478
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=84728
http://www2.itrc.hp.com/service/james/search.do?todo=search&admit=-1335382922+1136800883415+28353475&searchtext=Increase+File+system&from=forums&origin=0&submit.x=0&wpa=forums1.itrc.hp.com%3A80&submit.y=0&searchcategory=ALL&hpl=1&searchcriteria=allwords&rn=25&source=7000&presort=rank&chkServStor=on&esc=us.support.itrc.hp.com
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 09:08 PM
01-08-2006 09:08 PM
Re: Increasing Filesystem Space!!
If you have Online JFS it is easy to do via SAM. If you do not have it, check this thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=618355
Best Regards,
Eric Antunes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 09:08 PM
01-08-2006 09:08 PM
Re: Increasing Filesystem Space!!
Do you have online JFS.
Futher more how big is the filesystem
How is your lv build.
can you post vgdisplay -v vgp_dp1
and tel which filesystem has to be increased.
df -k filesystem.
grtz. Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 09:09 PM
01-08-2006 09:09 PM
Re: Increasing Filesystem Space!!
As you have 406PEs free and each PE is 4 MB in this VG, you can extend the filesystem to another 1600MB.
you can use
#lvextend -L
Latter you can use #extendfs to grow the filesystem.
With Regards,
Siva.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 09:09 PM
01-08-2006 09:09 PM
Re: Increasing Filesystem Space!!
For root and root swap you have to newly create file system.
Other file system,
If it is having onlineJFS support then using lvextend you can increase the size,
else unmount the file system and increase size. Then mount the file system back.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 09:11 PM
01-08-2006 09:11 PM
Re: Increasing Filesystem Space!!
Increase the size of a file system existing on a logical volume.
First, increase the size of the logical volume.
lvextend -L 400 /dev/vg06/lvol3
Unmount the file system.
umount /dev/vg06/lvol3
Extend the file system to occupy the entire (larger) logical volume.
extendfs /dev/vg06/rlvol3
Remount the file system.
mount /dev/vg06/lvol3 /mnt
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 09:14 PM
01-08-2006 09:14 PM
Re: Increasing Filesystem Space!!
You still have 406*4=1624MB free space in the vg. Is this space enough for your requirements ? If not then do you have some space / unused disk ? In both the above case you can extend the file systems.
Case 1 (Within existing space)
1. unmount the file system which is required to be extended.
2. #lvextend -l xxxx /dev/vgp_d1/lvol_name
Where xxxx is the PE number of the lvol after extending and lvol_name is the device file name.
3. #extendfs -F vxfs /dev/vgp_d1/rlvol_name
4. #mountall
5. #bdf to confirm the new size and utilization.
Case 2 ( by adding another disk to VG)
1. #pvcreate /dev/rdsk/cxtydz
(Where /dev/rdsk/cxtydz is the new disk. Max. should not be of more than 104GB otherwise only 104GB can be used rest will be waste.
2. #vgextend /dev/vgp_d1 /dev/dsk/cxtydz
Followed by these two steps follow the steps in case 1.
Also if you have online JFS installed, you will not be required to unmount the file systems and instead of extendfs use fsadm command.
Repeat the procedure for multiple file systems if required.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 09:24 PM
01-08-2006 09:24 PM
Re: Increasing Filesystem Space!!
There is no space in the volume group.
So what needs to be done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 09:26 PM
01-08-2006 09:26 PM
Re: Increasing Filesystem Space!!
Can you tell me what needs to be done in this case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 09:31 PM
01-08-2006 09:31 PM
Re: Increasing Filesystem Space!!
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 09:33 PM
01-08-2006 09:33 PM
Re: Increasing Filesystem Space!!
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 09:35 PM
01-08-2006 09:35 PM
Re: Increasing Filesystem Space!!
The details provided by you show that there is still 1.6GB of free space in the VG. But if tat do not fulfill your requirements of the expansion you can follow the case 2 mentioned in my earlier post which includes adding another disk to the VG and if no space disk is there in the system then adding it to system as well.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 09:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 09:36 PM
01-08-2006 09:36 PM
Re: Increasing Filesystem Space!!
insf -e
ioscan -fnCdisk
pvcreate
vgextend
lvextend
fsadm
done.!
with all the correct parameters of cource
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 10:52 PM
01-08-2006 10:52 PM
Re: Increasing Filesystem Space!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 10:56 PM
01-08-2006 10:56 PM
Re: Increasing Filesystem Space!!
grtz. Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 10:58 PM
01-08-2006 10:58 PM
Re: Increasing Filesystem Space!!
SAM->Disks and File Systems->Disk Devices
See for unused under use tab.
If the system has no uncooked file system, whole disk is not used for swap and only LVM is used for disk management then the information will be correct.
Also take some time to assign points to the responses to your threads.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 11:00 PM
01-08-2006 11:00 PM
Re: Increasing Filesystem Space!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 11:11 PM
01-08-2006 11:11 PM
Re: Increasing Filesystem Space!!
Take the output of
#ioscan -fnC disk
&
#strings /etc/lvmtab
The disks listed in first output and not present in the second are the free ones. The exceptions mentioned in earlier post also apply here.
Also in the first output it will also list DVD-ROM which you should not consider.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 11:17 PM
01-08-2006 11:17 PM
Re: Increasing Filesystem Space!!
#strings /etc/lvmtab
if the any disc prsent in the ioscan output is not avail in the second commands outputs they might be free or unused.
shinoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 03:52 PM
01-09-2006 03:52 PM
Re: Increasing Filesystem Space!!
The file systems in hp work like this.
pvcreate -f /dev/rdsk/c0t1d0 // ioscan -fnC disk will tell u which disks are claimed or not, the ones that are not claimed u can pvcreate on that one.
then u make a volume group and its group file and then put lvm on it.After that u put a file system on it and then mount it on a directory. Now, if u want to increase the size, u can either do by fsadm if u have online jfs installed. If not then do it by first unmounting the file system and then vgextend by putting another disk on it and then lvextend after that. But, in ur case u dont have another disk so i guess u should remove some files from ur primary file system ( i think u r practicing on a single user workstation) go to the /tmp file system and try triming some files from there. Or for that matter from any other of ur filesystems. Why dont u try practicing mounting and unmounting the file systems u have. A good practice is to make only one file system ( because ur resources are limited) and then increase, and decrease its size and after every change monitor it using bdf or lvdisplay ,pvdisplay. That way u will know how to play around with LVM.
Hope this helps, take care