- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: extend /tmp without console and without online...
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-16-2003 07:37 AM
06-16-2003 07:37 AM
extend /tmp without console and without online jfs..
I was reading the forum and all of the posts to extend tmp say I have to go into single usermode wich I cant since this site is in LA and I dont have a lan console set up yet. And I do not have online jfs. I dont have either. But I was wondering if this would work.
fuser -cu /tmp
fuser -ck /tmp
umount /tmp
lvextend -L
extendfs /dev/vg00/rlvol5
mount /tmp
and I was thinking of rebooting the box just for good measure.
Thanks
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2003 07:40 AM
06-16-2003 07:40 AM
Re: extend /tmp without console and without online jfs..
The easiest way to do it is;
1. create a new lvol to the size you need.
2. modify /etc/fstab to change /tmp from vg00/lvolX to the new lvol
3. reboot
Now /tmp is on your new larger lvol. Simple.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2003 07:46 AM
06-16-2003 07:46 AM
Re: extend /tmp without console and without online jfs..
you can modify /tmp and /home online, no need to get into single user mode.
#umount /tmp
#lvextend -L
#extendfs /dev/vg00/rlvol4
#mount /dev/vg00/lvol4 /tmp
should do
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2003 07:55 AM
06-16-2003 07:55 AM
Re: extend /tmp without console and without online jfs..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2003 07:56 AM
06-16-2003 07:56 AM
Re: extend /tmp without console and without online jfs..
Two partially tested ideas for you.
init 2
Maybe then you'll be able to umount the thing so you can run extendfs
If / is big enough, with enough free space, you could try commenting the automatic mount of the fs out of /etc/fstab, booting the box, running extendfs and then manually mounting the /tmp filesystem once its extended.
These ideas have the risk of only being tried once by me last Friday(the first one).
They do however not require a console.
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
06-16-2003 07:58 AM
06-16-2003 07:58 AM
Re: extend /tmp without console and without online jfs..
1. boot to a single user mode
2. mount /usr ( for commands )
and change the size of the logical volume
of tmp.
3. extend the file system with extendfs
4. go up with init 4 or boot the system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2003 08:29 AM
06-16-2003 08:29 AM
Re: extend /tmp without console and without online jfs..
Be careful with th processes that are using /tmp directory!
1.- fuser -ku /dev/vg00/lvol5;umount /tmp
2.- umount /tmp
3.- To extend the logical volume lvol5 to 4000 megabytes from its current size:
lvextend -L 4000 /dev/vg00/lvol5
4.- Determine your File System type with the following command:
fstyp /dev/vg00/lvol5
5.- Use the extendfs(1M) command to increase the filesystem capacity in proportion to the increase in the logical volume. Note that extendfs(1M) requires the use of the character device file.
For an HFS File System, use the command:
extendfs -F hfs /dev/vg00/rlvol5
For a VXFS File System, use the command:
extendfs -F vxfs /dev/vg00/rlvol5
6.- mount /dev/vg00/lvol5 /tmp
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2003 04:43 PM
06-16-2003 04:43 PM
Re: extend /tmp without console and without online jfs..
Creating another /tmp volume is a good choice. You create it and populate the new lvol with the old /tmp files, then umount the new /tmp. Now edit /etc/fstab and change the source device file for /tmp to the new /tmp and then reboot.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2003 04:52 PM
06-16-2003 04:52 PM
Re: extend /tmp without console and without online jfs..
cost money but more control.
my 2 cents.
regards
mB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2003 05:47 PM
06-16-2003 05:47 PM
Re: extend /tmp without console and without online jfs..
I got an idea to accomplish your requirement.
1.Comment the /tmp mount point in /etc/fstab of your system.
2. Add the following 2 lines at the end of start option on /sbin/init.d/localmount
rm -R /tmp
ln -s /
3. Reboot your server as usual. Now /tmp is not /dev/vg00/lvol5, this is a symbolic link to a free FS. Now u do #lvextend -L
#extendfs -F
4. Uncomment the /tmp mount point in /etc/fstab.
5. Remove the already added 2 lines and Add the following 2 lines at the end of start option on /sbin/init.d/localmount
rm -R /tmp
mkdir /tmp
6.Reboot your server as usual. Now /tmp is actual /dev/vg00/lvol5 FS.
7. remove the 2 lines what u have added to /sbin/init.d/localmount.
--------
It is an idea . may be you can check it .
HTH