- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Extending /var in single user mode: umount error
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-18-2003 03:08 PM
06-18-2003 03:08 PM
Extending /var in single user mode: umount error
Last night I extended /var FS. I booted into single user mode (hpux -is). I thought in single user mode only / FS was mounted. However I ran mount command and it showed / /stand /var & /usr were all mounted. /etc/mnttab also showed these FS's as mounted. However I couldn't unmount /var as it gave an error message saying "can't unmount /var block device required.
In the event I didn't have a problem as i did an lvextend, extendfs on /var, mountall and it worked perfectly.
I'm curious as to this behaviour. I suspect that the /var, /usr were not really mounted but mount was giving incorrect info?
Am I missing something or does anyone have an explanation.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 03:22 PM
06-18-2003 03:22 PM
Re: Extending /var in single user mode: umount error
If you booted up into single-user then nothing should have been mounted. I don't know why anything would have been mounted.
If you shutdown into single-user mode, then yes, things could still be mounted since not everything has shutdown and there are still some processes accessing some of the mount points.
If you need to get into single-user mode ALWAYS shutdown (shutdown -ry 0) and come up into it. That is the safest.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 03:30 PM
06-18-2003 03:30 PM
Re: Extending /var in single user mode: umount error
I expected only to see / mounted but the other 3 FS's mentioned in my previous post were also mounted - at least that's what mount reported. Any ideas?
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 04:48 PM
06-18-2003 04:48 PM
Re: Extending /var in single user mode: umount error
Check the content of /etc/fstab for the run level for the mounting of filesystems.
The only ones that should be mounting at single user level is / and /stand
Make sure that the others (/usr /var /opt /tmp have an entries like this.)
/dev/vg00/lvol3 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand hfs defaults 0 1
/dev/vg00/lvol4 /opt vxfs delaylog 0 2
/dev/vg00/lvol5 /tmp vxfs delaylog 0 2
/dev/vg00/lvol6 /usr vxfs delaylog 0 2
/dev/vg00/lvol7 /var vxfs delaylog 0 2
Unfortunately you'll have reboot into single-user mode again :(
Regards
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 05:02 PM
06-18-2003 05:02 PM
Re: Extending /var in single user mode: umount error
Thanks for that.
/etc/fstab looks normal as per your reply. Is the last field the run level where FS's are mounted, I thought it was the order in which they were checked by fsck (or does this amount to the same thing?).
I feel its possible mount was incorrect as if /var was really mounted, I shouldn't have been able to run extendfs??
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 05:33 PM
06-18-2003 05:33 PM
Re: Extending /var in single user mode: umount error
Other tries:
0) check for syncer daemon from single user mode. syncer updates file systems every 30 seconds by flushing RAM out to disk and also updates /etc/mnttab. 'syncer' should be seen from the console as:
Start syncer daemon
Output from "/sbin/rc1.d/S520syncer start":
Note any options like -s or -d are not the norm.
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B9106-90008/B9106-90008_top.html&con=/hpux/onlinedocs/B9106-90008/00/04/404-con.html&toc=/hpux/onlinedocs/B9106-90008/00/04/404-toc.html&searchterms=init%7csyncer&queryid=20030618-192710
http://docs.hp.com/cgi-bin/onlinedocs.py?mpn=B9106-90008&service=hpux&path=00/04/404&title=HP-UX%2011i%20Version%201.5%20Reference%20Volume%202%2C%20Section%201M
Other possibilities:
1) umount /dev/vg00/lvol8
2a) mv /etc/mnttab /etc/mnttab_old
2b) mount -a (* rebuild mnttab *)
3a) vgscan -a -v -p (* -p preview *)
3b) strings /etc/lvmtab
3c) cp /etc/lvmtab /etc/lvmtab_old
3d) vgscan -v -a
lsof /var from single user mode. You'll have to mount /usr to use it.
Note: (* ENOTBLK block device required error 15 *)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 05:47 PM
06-18-2003 05:47 PM
Re: Extending /var in single user mode: umount error
As I said I don't have any issues now as it all worked.
I was more curious as to why the FS's were reported as being mounted when I'm fairly sure they weren't - otherwise I shouldn't have been able to run extendfs(??). Just wondered if anyone had seen this situation before. Thanks for the help.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 09:44 PM
06-18-2003 09:44 PM
Re: Extending /var in single user mode: umount error
both are single user modes but has some difference.
runlevel S may have, all the filesystems except /stand and / should be unmounted.
runlevel 1 may have some more file system as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 10:00 PM
06-18-2003 10:00 PM
Re: Extending /var in single user mode: umount error
What I discovered by looking in /etc/rc.log.old is that umount failed for /var & /usr when I shutdown the system (shutdown -ry 0). I assume as a result they left an entry in /etc/mnttab. Hence when the system came back up it thought these 2 FS's were mounted due to entries in /etc/mnttab.
As I said I had no problems extending /var but was curious as to why the mount command reported /var & /usr as mounted.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 11:37 PM
06-18-2003 11:37 PM
Re: Extending /var in single user mode: umount error
I suffered this problem too some time ago.
I realized /usr wasn't really mounted because some commands cannot be found. Then I typed:
# cd /usr/bin
# ls
but no file was found...
The problem, as you have explained, is due to failed unmount in shutdown... some time ago, my HP account engineer persuaded me to install VxFS patches because, in some situations, umount_vxfs may hang... It was true. These umount problems ocurred in several boxes (in both testing and production systems). Thus I suggest to install VxFS patches.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 11:53 PM
06-18-2003 11:53 PM
Re: Extending /var in single user mode: umount error
It seems as if init() is using some memory mapped files during shutdown, which causes the file system(s) to appear to be busy.
So at shutdown filesystem aren't properly unmount.
This failing umount is unlikely to be a problem, however, be aware that this
could result in a longer startup time, as these filesystems are probably NOT being marked CLEAN on shutdown. If the filesystems are of type HFS, the fsck will inevitably take a considerable time during startup (VxFS doesn't have this problem, being able to use log replay).
Regards,
Jerome