- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: SAM is not running
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
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
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
07-25-2011 05:55 AM
07-25-2011 05:55 AM
SAM is not running
Hello,
I holds HP-UX B.10.20.
When running SAM I receives the following messages:
/var/sam/log: no such file or directory
/usr/sbin/sam[196]: var/sam not found
Sam main could not open the directory /var/sam (errno=2, "No such file or directory")
#bdf shows no VAR directory exists,
Plese advice,
Yali.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2011 06:14 AM
07-25-2011 06:14 AM
Re: SAM is not running
Hi:
@Yaroki wrote:#bdf shows no VAR directory exists,
So '/var' isn't mounted. Did you just reboot, and if so why? What happens if you do:
# mount -a
Is '/var' present in '/etc/fstab'?
What last happened before this or what did you do?
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2011 06:16 AM
07-25-2011 06:16 AM
Re: SAM is not running
The "bdf" command lists mount points, not directories. /var is a standard HP-UX mount point: it may be possible to create a custom installation of HP-UX that has /var as a regular directory instead of a mount point, but the default installation should always have /var as a mount point. Without /var, many system services and daemons, including sam, will not work.
Looks like your /var filesystem is currently not mounted for some reason.
Run "grep /var /etc/fstab" to see which disk device contains your /var filesystem: it's typically /dev/vg00/lvol7, but might be different on a HP-UX 10.20.
Make sure the /var directory exists: if it does not exist, mounting your real /var filesystem will not be possible.
Run "ll -d /var" to see if the directory exists. If it does not, create it (mkdir /var).
When /var directory exists, you should be able to mount the filesystem with a simple "mount /var" command.
If these commands display error messages, please copy&paste the errors to this thread.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2011 11:15 AM
07-25-2011 11:15 AM
Re: SAM is not running
>bdf shows no /var directory exists,
If /var/ doesn't exist, your system is completely broken and you need to restore from a backup.
If it is just /var/sam, then you should just "mkdir /var/sam". If you have another system, copy the permissions.
When was the last time your ran sam(1m)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2011 04:21 AM
07-27-2011 04:21 AM
Re: SAM is not running
Thanks for the replies.
var directory exists:
# grep /var /etc/fstab gives
/dev/vg/00/lvol9 /var hfs defaults 0 2
# mount /var gives
mount: /dev/vg00/lvol9 needs to be fsck'ed before mounting
mount: warnning : if the device /devvg00/lvol9 is mounted to another system then do not run fsck.
How should I run the fsck? what commands to use? what mode (Single user, other run level)?
I have also noticed that /lvol2 /lvol6 and are not mounted (actually I can't see /lvol6 at all).
BR,
Yali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2011 04:47 AM - edited 07-27-2011 04:48 AM
07-27-2011 04:47 AM - edited 07-27-2011 04:48 AM
Re: SAM is not running
fsck -y -o full /dev/vg00/rlvol9
Since it is unmounted, I believe you can run it without going to single user mode.
Your lvol2 is most likely swap space and thus would not show in fstab (verify by running "swapinfo -tam"). As far as lvol6 is concerned, check /etc/fstab with "strings /etc/fstab |grep lvol6" to see what might supposed to be there (possibly /tmp?).
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2011 04:48 AM
07-27-2011 04:48 AM
Re: SAM is not running
/dev/vg/00/lvol9 /var hfs defaults 0 2
>How should I run the fsck? What commands to use? what mode (Single user, other run level)?
Since it isn't mounted, you can run it now. Read fsck_hfs(1M).
# fsck /dev/vg00/rlvol9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2011 04:52 AM
07-27-2011 04:52 AM
Re: SAM is not running
Thanks Dennis, I hadn't noticed that it was HFS!
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2011 05:03 AM
07-27-2011 05:03 AM
Re: SAM is not running
Indeed, /lvol2 is swap space.
Regarding /lvol6 I ran
# /etc/fstab | grep /lvol6 and it gives
/sbin/sh: /etc/fstab: Execute permission denied (???)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2011 05:06 AM
07-27-2011 05:06 AM
Re: SAM is not running
"strings /etc/fstab", though I probably should have just said "grep lvol6 /etc/fstab"
Pete