- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Extending filesystem size
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
06-07-2001 06:03 AM
06-07-2001 06:03 AM
Steps I have followed. (extending /tmp)
1. command line login as root
2. init S ( Am I really going single user ??)
3. lvextend -L 100 /dev/vg00/lvol7
4. umount /tmp
-> device busy
5. fuser /tmp
tmp:
why then I can?t umount /tmp ?
6. reboot
7. command line login as root
8. lvdisplay shows the increase of size
9. reboot
10. Stop boot sequence
11. bo pri
11 interact ? Yes
12 hpux -lm
13 extendfs -F vxfs /dev/vg00/lvol7
cannot open /dev/vg00/lvol7
What is wrong ?
Best Regards
Francisco
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2001 06:12 AM
06-07-2001 06:12 AM
Re: Extending filesystem size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2001 06:16 AM
06-07-2001 06:16 AM
Re: Extending filesystem size
vgchange -a y vg00
extendfs then
You don't need to hpux -lm
hpux -is is just as good.
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2001 06:17 AM
06-07-2001 06:17 AM
Re: Extending filesystem size
Either of the following sequences of commands should be able to extend your /tmp partition:
1) Determine what logical volume your /tmp filesystem is mounted on:
# bdf /tmp
2) Shut down to single-user mode:
# shutdown
3) Kill all processes that have files open on the /tmp filesystem:
# fuser -k /tmp
4) Extend the /tmp volume group:
# lvextend -L
5) Extend the filesystem associated with tmp. Note, you need to use the RAW device here:
# extendfs -F vxfs /dev/vg00/rlvolXX
Alternatively, if you boot your system into single-user mode (do not use LVM maintenance mode), you can simply do steps 4 and 5.
I hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2001 06:18 AM
06-07-2001 06:18 AM
Re: Extending filesystem size
good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2001 06:19 AM
06-07-2001 06:19 AM
Re: Extending filesystem size
You can't unmount a filesystem that is in use, hence the "device busy" message. /tmp is likely to be inuse by root processes. To see what/who is using the filesystem, do this:
# fuser -cu
To look and kill do:
# fuser -cuk
My preference, rather than to try and drop to single user mode is to bootup into single user mode. I find you have better control in situations like you describe.
Next, as to your second error, the 'extendfs' command should specifiy the *raw* device:
# extendfs -F vxfs /dev/vg00/rlvol7
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2001 06:20 AM
06-07-2001 06:20 AM
Re: Extending filesystem size
The easiest way I have found to get to single-user mode and to make sure there are no extraneous processes running is to just do a reboot, interact with the boot and do an 'hpux -is'. To extend a filesystem you would then have to do the 'vgchange -a y /dev/vg00'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2001 06:21 AM
06-07-2001 06:21 AM
Re: Extending filesystem size
check the man on extendfs.
you should have tried (in steps 1-5)
# fuser -ku /tmp ; fuser -ku /dev/vg00/lvol7
# umount /dev/vg00/lvol7
good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2001 06:24 AM
06-07-2001 06:24 AM
Re: Extending filesystem size
If you have Online JFS than you can extend /tmp on the fly with the lvextend and fsadm commands
lvextend -l xxx /dev/vgxx/lvol7
fsadm -F vxfs -b xxxx
BUT IF YOU DON'T HAVE ONLINE JFS then
When you type S...your in single user, but everything is still mounted (and probably busy).
If you attempt to umount /tmp you could run into some headaches (I forced it down once...ouch!!)
Another way to extend is to reboot and interupt the boot.
boot admin> bo pri ipl
ISL> hpux -is
interact> yes
Now the only thing mounted is /. I generally mount /usr and /var (so I have certain commands to check my work) and at this point I would do the lvextend and then extendfs as usual and then you can check your work with vgdisplay...when you're done...reboot.
Regards,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2001 07:06 AM
06-07-2001 07:06 AM
Solution1. reboot
2. Interupt the boot process by holding any key (older systems may require the escape key, or break key)
3. at the boot prompt type
>boot pri
4. The system should ask then if you want to interacet with ISL. Type
>y
5. at the ISL prompt, type
>hpux -is
This is the only way besides modifying the default run level in iniitab to get HP_UX into single user mode.
6. You should not have to log in, as single user mode will start you in "/sbin/sh"
So if you have a login screen, you either did something wrong, your not on HP-UX, or your systems is trashed!
7. Type
>vgchange -a y
8. /tmp is usually mounted from /dev/vg00/lvol5. so to allocate more space for /tmp type.
>lvextend -L $MM /dev/vg00/rlvol5
$MM is the NEW size in MB total! not the space you want to add. I.E. if you have 128mb now, and wanted 256mb, you would use
>lvextend -L 256 /dev/vg00/rlvol5
It should tell you whether it succedded or failed. Normal failures are caused by lack of capacity in vg00 to accomodate the new space.
9. Extend the file system to new capacity.
>extendfs /dev/vg00/rlvol5
Again, you should see a message for success or failure.
10. mount /tmp and /usr so that you can use bdf to verify the change.
> mount /tmp
> mount /usr
> bdf /tmp
Should tell you the capacity at your new size.
If you follow these steps, you will either succed, or fail with knowlege of why it failed. I.E see item 8.
Regards,
Shannon