- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: What processes uses /var and /usr
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
04-16-2002 01:28 AM
04-16-2002 01:28 AM
shutdown now
in order to set the system in single user mode, both /usr and /var file systems are mounted. Then I try umount /var the "Device Busy" known error message is reported.
If I boot in single user mode, /usr and /var aren't mounted.
Why ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2002 01:41 AM
04-16-2002 01:41 AM
Re: What processes uses /var and /usr
If you try:
ps -ef | grep usr
ps -ef | grep var
You should view that there are process using this directories.
Another thing is to uses a third party tool in order to see wich process use this directories.
Best Regards,
Justo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2002 01:42 AM
04-16-2002 01:42 AM
Re: What processes uses /var and /usr
You can also use fuser, see man fuser for syntax.
Hth, Emiel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2002 01:46 AM
04-16-2002 01:46 AM
Re: What processes uses /var and /usr
If you are trying to change size of /usr or /var the best way is boot in maintenance.
stop boot
boot pri
interaact with IPL > Yes
hpux -lm
This way vg00 is not activate, you must activate it, and this is the correct way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2002 01:47 AM
04-16-2002 01:47 AM
Re: What processes uses /var and /usr
there are lot of online executables under
/usr/bin/ , online libraries under /usr/lib
which will accesing the filesystem and keeping
the file system busy.
there are lot of processes like sendmail , syslogd , and other daemons which uses /var/adm/syslog for logging and there are
processes which creates socket files in /var and accesing sockets all the time keeping that
filesystem busy.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2002 01:48 AM
04-16-2002 01:48 AM
Re: What processes uses /var and /usr
Most system logs are in /var/adm which explains why its busy...
Most libraries used by dynamicaly linked commands (and the libs of course) are in /usr...
This is why you have to in single user, mount /usr if you want to use vi and /var if you want to use sam...
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2002 01:50 AM
04-16-2002 01:50 AM
Re: What processes uses /var and /usr
I think its always best to reboot and startup into single user mode.
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2002 01:51 AM
04-16-2002 01:51 AM
Re: What processes uses /var and /usr
using
#fuser -u /var
shows the user id of processes accesing /var
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2002 02:28 AM
04-16-2002 02:28 AM
Re: What processes uses /var and /usr
1. The following commands suggested by someones are not capable to find the processes:
ps -ef | grep usr
fuser -u /var
However
fuser -c /dev/vg00/lvol8
fuser -c /dev/vg00/rlvol8
do work.
2. Some of repliers say there are processes running...
But... shutdown commands uses "init s" who runs the scripts on /sbin/init.d directory in order to kill all these processes, i.e, these processes should be dead when "umount /var" is executed.
I think these processes are unnecessary in single mode, in fact, they don't exist when booting in single mode.
Thanx for all
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2002 02:33 AM
04-16-2002 02:33 AM
Re: What processes uses /var and /usr
you can use fuser -ku /var
for killing the processes without rebooting.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2002 02:40 AM
04-16-2002 02:40 AM
SolutionMore seriously, as already mentionned, the state on a system IS NOT the same if you boot into run level S at powerup or from a higher run level changing to level S:
From the man pages: Transitioning into run level S from a higher run level does not terminate other system activity and does not result in a "single-user state"
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2002 02:51 AM
04-16-2002 02:51 AM
Re: What processes uses /var and /usr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2002 06:51 AM
04-16-2002 06:51 AM
Re: What processes uses /var and /usr
shutdown now or shutdown 0 used to truly shutdown into true single user mode.
Definition: True Single User Mode (TSUM) means that ONLY / is mounted (possibly /stand) and there are no processes running except the bare minimum needed for the HP-UX kernel. vg00 is activated along with primary swap but no other volume groups are activated. bdf will not exist (it's on /usr/bin) so you must use mount with no options.
Since 10.10 (apx) and later, the shutdown process no longer kills all processes that are using /usr and /var. So neither init s nor init S nor shutdown 0 will reliably enter TSUM. The only choice is to shutdown -r and then interact with the boot ROMs so you can boot with:
hpux -is
Then you'll be in TSUM.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2002 06:58 AM
04-16-2002 06:58 AM
Re: What processes uses /var and /usr
You definetively clarify this issue.
That's what I suspected: running "shutdown" from a run level 3 doesn't set the system on TRUE single user.