- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: add more disk 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
11-09-2004 07:35 AM
11-09-2004 07:35 AM
I am using HP 11.00. Could someone tell how to add more disk space to a filesystem? Please suggest a link otherwise. bdf should show it.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2004 07:41 AM
11-09-2004 07:41 AM
SolutionAssuming your using the Text User Interface (not Graphical):
Go to "Disks and Filesystems". Pick "Logical Volumes" - select the logical volume upon which your mount point or filesystem is mounted (space bar). Press TAB which will get you to the menu bar and arrow right to "Actions", hit enter and pick "Increase Size" -- the rest is self explanatory.
This is you have available disk space... Spend sometime in SAM and you'll learn a lot of things.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2004 07:42 AM
11-09-2004 07:42 AM
Re: add more disk space
run a pvdisplay on each disk listed in /dev/dsk
This will allow you to choose where to extend the filesystem. To do so, you need a disk.
pvdisplay /dev/dsk/c5t8d0
If it showes FREE-PE and its enough, you are in business.
Note, that you can not extend root / and swap because they must be contiguous. You can add a secondary swap file.
Lets say we have enough free pe on /dev/dsk/c5t8d0 to handle the job.
The filesystem name will be /data and its in vg01
/dev/dsk/vg01
So:
umount /data
# all processes need to be closed on the filesystem.
lvextend -L
size in MB is new size after expansion. If it was 1000 MB and you are expanding to 1500 MB you do the command like this.
lvextend -L 1500 /dev/vg01/data /dev/dsk/c5t8d0
extenfs -F vxfs /dev/vg01/rdata
The filesystem is now extended and will show up on bdf after this command:
mount /data
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
11-09-2004 07:42 AM
11-09-2004 07:42 AM
Re: add more disk space
You first grow the logical volume and then extend the filesystem; SAM will do all of this for you automatically. If you have OnlineJFS there is no need to unmount the filesystem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2004 08:00 AM
11-09-2004 08:00 AM
Re: add more disk space
Can I increase the size online .. system running? Any thing else to watch for?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2004 08:04 AM
11-09-2004 08:04 AM
Re: add more disk space
root@hpuxserver # swlist|grep -i online
B3929CA B.11.11 HP OnLineJFS
and you've available disk space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2004 08:07 AM
11-09-2004 08:07 AM
Re: add more disk space
I have this. Is this the same?
OnlineDiag B.11.00.23.10 HPUX 11.0 Support Tools Bundle, Dec 2002
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2004 08:19 AM
11-09-2004 08:19 AM
Re: add more disk space
I see you're on an 11.0 system.. It appears that you may not have Online JFS. You should see something like:
root@fhprod22 # swlist|grep -i online
B3929BA B.11.00 HP OnLineJFS (Advanced VxFS)
It is likely you do not have this capability to increase online...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2004 08:23 AM
11-09-2004 08:23 AM
Re: add more disk space
What is the best approach to increase size if online JFS is not there?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2004 08:35 AM
11-09-2004 08:35 AM
Re: add more disk space
Stop the application wich uses the filesystem.
# fstyp -v /dev/vg00/lvolX
check if you use hfs or vxfs filesystem
# umount filesystem
if you get an error (busy), check if there are processes stil using the filesystem.
# fuser -c /filesystem
# lvextend -L new_size_mb /dev/vgxx/lvolx
# extendfs -F vxfs /dev/vgxx/rlvolx
# mount -a
# bdf
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2004 09:06 AM
11-09-2004 09:06 AM
Re: add more disk space
Thank you. About "fuser -c":
"Display the use of a mount point and any file beneath that mount point. Each file must be a file system mount point."
If I see something there, after the application using filesystem is stopped, what should I do?
I don't see any processes currently. I just see this:
fuser -c /det/opt/det11
/det/opt/det11: 25719co 5126c 22070c
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2004 01:28 PM
11-09-2004 01:28 PM
Re: add more disk space
Make sure no users sessions are mounted on the logical volume in question. If its /var forget about it you either need OnlineJFS or need to go into single user mode to fix it.
If you are forced to go to single user mode, here is the outline:
boot box at console # choose your type.
interupt at the 10 second prompt
bo
Y Interact
hpux -is
or
hpux -lm
Doesn't really matter.
Nothing is going to be mounted anywhere.
You have no path there, but all your lvm commands are available in the /sbin directory
Take good notes before you start. Make sure you know exactly what logical volume you want to expand onto what disk.
When done
shutdown -ry now
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
11-09-2004 01:36 PM
11-09-2004 01:36 PM
Re: add more disk space
Yes. There are processes associated with that filesystem. For ex., do 'ps -ef |grep 25719|grep -v grep' and you will see the process corresponding to the pid 25719.
You will have to completely stop all the application process and let your users logoff or come out of the directories underneath /det/opt/det11.
(Just as a side note, you cannot unmount some of the system directories like /opt,/tmp,/var,/usr. You will have to do them in single user mode. ANd it's not easy to extend /stand, / and primary swap even in single user mode.)
If you are sure that the application is stopped and if you still see processes, then you can kill them using 'fuser itself'. For ex., find the LV corresponding to /det/opt/det11
bdf /det/opt/det11 (note the first column). Say it /dev/vgxx/lvolx. do
#fuser -u /dev/vgxx/lvolx.
For all the PIDs printed (remove the letters from the pids for ex., for 25719co, 25719 is the pid) do a 'ps -ef|grep
#fuser -k /dev/vgxx/lvolx
Then following the above 'lvextend,extendfs,mount' process to extend it.
If you have OnlineJFS or not can be found using the command 'swlist -l product |grep -i onlinejfs'.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2004 02:23 AM
11-10-2004 02:23 AM
Re: add more disk space
Hi,
I did umount /dev/vg00/lvol1
It gave "umount: cannot unmount /det/opt/det11 : Device busy"
Then I fuser -c /det/opt/det11
It shows nothing. There are no processes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2004 02:32 AM
11-10-2004 02:32 AM
Re: add more disk space
That would be because someone is cd'd into the file system - it's their `pwd`. Unless you can find this person or app, you will need to reboot in single user mode.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2004 02:44 AM
11-10-2004 02:44 AM
Re: add more disk space
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2004 03:56 AM
11-10-2004 03:56 AM
Re: add more disk space
I believe it is not an nfs filesystem. /etc/fstab shows it as vxfs
showmount won't run here. Is reboot and single user mode the only alternative?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2004 04:04 AM
11-10-2004 04:04 AM
Re: add more disk space
Sorry!
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 04:40 AM
11-17-2004 04:40 AM
Re: add more disk space
One of our filesystems is currently like this
Filesystem kbytes used avail %used Mounted on
/dev/vg03/lvol1 17776640 16556136 1201440 93% /u03
The system administrator says that this filesystem is set to max and cannot grow anymore (even using single-user mode). He says there is no more space left on disk that this vol group uses.
How could he tell that? How to check that?