- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /tmp directory extension help needed!!!!
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
03-09-2010 03:25 AM
03-09-2010 03:25 AM
Following is my drives on HP server. I want to extent my /tmp directory upto 500 mb. Please guide me how can I do this?
# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 589824 277392 310312 47% /
/dev/vg00/lvol1 327680 118872 207216 36% /stand
/dev/vg00/lvol8 5111808 2061032 3027024 41% /var
/dev/vg00/lvol7 6488064 2533200 3924032 39% /usr
/dev/vg00/lvol9 204800000 39706255 154784480 20% /u01
/dev/vg00/lvol4 262144 262144 0 100% /tmp
/dev/vg00/lvol6 5046272 2780632 2247976 55% /opt
/dev/vg00/lvol5 65536 8720 56440 13% /home
#
Regards,
Zishan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010 03:38 AM
03-09-2010 03:38 AM
Re: /tmp directory extension help needed!!!!
Go to SAM, in Disks and File systems/Logical volumes
select lvol4 with space key, use tab key and arrow key to select Actions, select Increase Size and if you have space available in VG00, you can set the new size.
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010 03:39 AM
03-09-2010 03:39 AM
Re: /tmp directory extension help needed!!!!
Assuming there are free extents, you then run lvextend followed by umount/extendfs/mount. The lvextend man page has some good examples.
If there are no free extents you will have to expand your vg, either by adding an other disk or increasing the free extents by shrinking the size of some other LV - but that's a daunting task.
Pete
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010 03:46 AM
03-09-2010 03:46 AM
Re: /tmp directory extension help needed!!!!
>Go to SAM, in Disks and File systems/Logical volumes
Sorry I am new to Unix pls tell me in steps. It would be appreciate.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010 03:50 AM
03-09-2010 03:50 AM
Re: /tmp directory extension help needed!!!!
vgdisplay vg00
A) If you have OnlineJFS installed, the extension procedure is:
lvextend -L 500 /dev/vg00/lvol4
fsadm -F vxfs -b $(expr 500 \* 1024) /tmp
bdf /tmp
NOTE: the on-line filesystem extension (the fsadm command) may not be succesful if the filesystem is 100% full. Try to free at least a little disk space before starting the procedure.
B) If you don't have OnlineJFS, the procedure requires unmounting /tmp, which may not be possible unless the system is rebooted to single user mode:
lvextend -L 500 /dev/vg00/lvol4
umount /tmp
extendfs -F vxfs /dev/vg00/rlvol4
mount /tmp
bdf /tmp
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010 03:55 AM
03-09-2010 03:55 AM
Re: /tmp directory extension help needed!!!!
I launch the SAM according to your instruction and I have free space available at the end following error occure:
"Logical volume /dev/vg00/lvol4 is currently mounted on /tmp and could
not be unmounted. The LV cannot be extended until the file system is
able to be unmounted. Note that the fuser(1M) command can be used
outside of SAM to help determine what processes and users are
currently accessing this file system."
Any help would be appreciate.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010 04:29 AM
03-09-2010 04:29 AM
Re: /tmp directory extension help needed!!!!
Please post the below commands output.
1. vgdisplay vg00
2. swlist -l product |grep -i jfs
Regards,
Asif Sharif
Asif Sharif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010 04:30 AM
03-09-2010 04:30 AM
Re: /tmp directory extension help needed!!!!
>The LV cannot be extended until the file system is able to be unmounted. Note that the fuser(1M) command can be used
outside of SAM to help determine what processes and users are
currently accessing this file system
You could run a
fuser /tmp/*
In order to find out the processes using files from /tmp.
You would get a list of files and some of them would have a PID no. (4 digits)
Let's say that the output would be:
/tmp/dhcpfifo.any: 1208o
/tmp/dhcpfifo.root: 1208o
/tmp/dps.debug:
/tmp/dsk.txt:
/tmp/dsk1.txt:
It means that at the current time, only 1 process with PID: 1208 is using those files from /tmp.
You must kill those processes.
Do not forget to re-start the processes/daemons after you finished your job.
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010 04:34 AM
03-09-2010 04:34 AM
Re: /tmp directory extension help needed!!!!
# vgdisplay vg00
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t0d0s2":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 9
Open LV 9
Max PV 16
Cur PV 2
Act PV 1
Max PE per PV 4465
VGDA 2
PE Size (Mbytes) 64
Total PE 4455
Alloc PE 3462
Free PE 993
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
#
# swlist -l product |grep -i jfs
JFS B.11.23 The Base VxFS File System
PHKL_33368 1.0 JFS3.5 direct I/O performance improvement
#
Any help would be appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010 04:38 AM
03-09-2010 04:38 AM
Re: /tmp directory extension help needed!!!!
This is my output for "/fuser/tmp*"
# fuser /tmp/*
/tmp/MSV2V3Check_B.11.23.0907_HP-UX_B.11.23_IA_PA.depot:
/tmp/ipv6agt.crashlog:
/tmp/llbdbase.dat:
/tmp/mail-metamail.6789.200:
/tmp/patches11g1:
/tmp/portmap.file:
/tmp/prngd.log:
/tmp/root.errorlog:
/tmp/rpcbind.file:
/tmp/sensor_info:
/tmp/wd_action.dbg:
#
pls guide me how to kill and how to restart the dameon after doing work.
Regars.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010 04:38 AM
03-09-2010 04:38 AM
Re: /tmp directory extension help needed!!!!
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010 04:48 AM
03-09-2010 04:48 AM
Re: /tmp directory extension help needed!!!!
Would you like me to tell me commands ?
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010 04:51 AM
03-09-2010 04:51 AM
Re: /tmp directory extension help needed!!!!
lsof |grep /tmp
A lot of daemons have sockets that are located on /tmp. So you must log in single user mode (hpux -is at ISL prompt).
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010 05:01 AM
03-09-2010 05:01 AM
Re: /tmp directory extension help needed!!!!
You must restart the server. Stop first the running applications!
Reboot.
At the prompt press any key with 10 sec / Press a key
Interact with IPL :
hpux -is
Then, when the server is up,
mount /usr
lvextend -L 500 /dev/vg00/lvol4
extendfs -F vxfs /dev/vg00/rlvol4
(
if can not be found the executables, then run those with absolute path:
/usr/sbin/lvextend ...
/usr/sbin/extendfs ...
)
Restart again and boot normally.
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010 05:04 AM
03-09-2010 05:04 AM
Re: /tmp directory extension help needed!!!!
I am using my server remotely (through telnet). How can I press into this.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010 05:25 AM
03-09-2010 05:25 AM
Re: /tmp directory extension help needed!!!!
Well, you life just got complicated if you do not have MP access. (Does those words tell anything to you: MP access, iLO access?).
If you can establish a MP connection, you can go forward, but if not, you must get physical access to the server.
There is another way but I am not sure you can install onlineJFS.
According to:
https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B3929CA
This is for HP_UX 11.11 only and it is not free.
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010 05:29 AM
03-09-2010 05:29 AM
Re: /tmp directory extension help needed!!!!
Assuming that the server was not set up for remote management, there are a number of steps that will have to be done. There are two methods:
1. In the computer room, find a terminal with the proper null-modem cable and connect the terminal to the console port of the server. Or someone can bring in a laptop (older model that has a real serial port, or a laptop with a USB to serial converter) and connect to the console port. There are a bit more details that depend on what model of HP server you have.
2. Once connected to the serial port, set the terminal or laptop to 9600/8/N/1 and type CTRL-b to set the maintenance processor's prompt. Now you can see and set the console port's IP address, subnet and gateway values.
3. Connect the console LAN port to the network, ideally a special network reserved for maintenance (to improve security). Then test that the settings work by accessing the console port remotely.
Once you can connect to the console, you'll need to read a bit about the console commands to leave the processor maintenance processor and connect to the HP-UX console. The details depend on the model of your server. Now you are ready to shutdown and reboot into single user mode.
Or as mentioned above, you can stop all the applications and use fuser to find all the open files and terminate the processes that use them. Once that is done, you can umount /tmp, use lvextend followed by extendfs (on the raw lvol) and then mount /tmp.
Note that none of this required if you had purchased the OnlineJFS product which allow resizing of /tmp without single user mode.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010 05:30 AM
03-09-2010 05:30 AM
Re: /tmp directory extension help needed!!!!
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010 05:38 AM
03-09-2010 05:38 AM
Re: /tmp directory extension help needed!!!!
Good.
You must access the console. Do it by issuing
co
command.
Login then stop your application.
Then restart your server (shutdown -r -y 0).
After that you must perform the steps from above (At the prompt press any key with 10 sec / Press a key... and so on...)
And read the docs/help related to MP commands! You will need this info for the future.
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010 05:50 AM
03-09-2010 05:50 AM
Re: /tmp directory extension help needed!!!!
I am unable to commecnt with CO. Invalid login in password. The username password of MP and CO are not the same ??? Is there any default password for CO?
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010 06:00 AM
03-09-2010 06:00 AM
Re: /tmp directory extension help needed!!!!
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010 06:03 AM
03-09-2010 06:03 AM
Re: /tmp directory extension help needed!!!!
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010 06:08 AM
03-09-2010 06:08 AM
Re: /tmp directory extension help needed!!!!
>Login then stop your application.
Pls tell me how to stop my application (command).
Regars,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010 06:15 AM
03-09-2010 06:15 AM
Re: /tmp directory extension help needed!!!!
Any application have specific requirements and must be stopped according to those requirements. You should know the applications running on the server. Ask someone who knows better your server - maybe an application administrator ?)
Failing to properly close your applications can lead to loss of data, and even can render your applications on some inconsistent state.
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010 06:19 AM
03-09-2010 06:19 AM
Re: /tmp directory extension help needed!!!!
I have only 10g database is running on this server. Although this is Application Administrator job but I am the only person who know little bit unix where so thats y i am asking from you :)Kinldy tell me
- how to view and stop the all application this is a testing server I can stop any application.
Regards,