1836713 Members
3150 Online
110108 Solutions
New Discussion

Re: please advise

 
SOLVED
Go to solution
Kim wing
Frequent Advisor

please advise

Hi,

Since I'm novice in HP-UX, I need some advice, I have 2GB of physical memory and my hp-ux 11.0 keep crashing constantly. I have made some changes to the /etc/rc.config.d/savecrash as attached for your review?
Because my /var file system does not have enough space, 1.can I sometimes move the crash files to another directory and then change to that directory just to run the Q4?
2. After changing the savecrash, can I run savecrash -vr to recreate the dump while the users are on the system?

Points will be assigned.
Thanking you in advance.
28 REPLIES 28
Rajesh G. Ghone
Regular Advisor

Re: please advise

Hi Kim,

You can change the path of crash dump if you feel that you dont have enough space in /var.
You can edit /etc/rc.config.d/savecrash file& change the path where you feel you have more space.& yes you can run savecrash -rv or you can give savecrash -t to directly redirct it to tape device.

Regards,
Rajesh G.
Rajesh Ghone
Kim wing
Frequent Advisor

Re: please advise

Sorry, I missed the attachment.
Rajesh G. Ghone
Regular Advisor

Re: please advise

Yes Kim your configuration file seems to be ok.

Regards,
Rajesh G.
Rajesh Ghone
S.K. Chan
Honored Contributor

Re: please advise

What I've done before to save my crash dumps to disk instead of dump area is to create a separate filesystem (this can be temporary) and mount it as /var/adm/crash. That filesystem has to be at least equal to the size of your RAM. So for your case you need a 2GB fileystem space. The answer to your next question (2) would depends on wheather the dump area where the crash dump was written has been overwritten or not. Most likely yes if your system is swapping. You can try to run it though to see if it's succesful or not. If you had created the separate filesystem mounted as /var/adm/crash you can just run ..
# /sbin/savecrash -vr
Kim wing
Frequent Advisor

Re: please advise

Thanks Rajesh.

S.K. Chan
OK.
My /data file system has 4GB space which is enough. I want my /data file system to be the default for the crash files when the system crashes again. Do I really need to mount /data to /var/adm/crash or changing the savecrash to point to /data/crash directory will be enough?

Do I need to change the variable typeset -r DEFAULT_SAVECRASH_DIR=/var/adm/crash in the /sbin/rc1.d/S440savecrash or not? for the crash files to be saved in /data/crash during boot up?
Finally, I'm just curios if you can give me an example on how to mount my /data file system to /var/adm/crash?
Also, did you mean that I can recreate the dump while the users are using the system.
Thanks
Kim wing
Frequent Advisor

Re: please advise

Hello,

I need answers for my last questions?
Thanks again.
Rajesh G. Ghone
Regular Advisor

Re: please advise

Hi Kim,

You can mount it to /va/radm/crash inspite of /data & you can put the entry in /etc/fstab file so that you dont have to mount manually every time.

Regards,
Rajesh G.
Rajesh Ghone
Kim wing
Frequent Advisor

Re: please advise

Hello,

I need answers for my last questions?
Thanks again.
Kim wing
Frequent Advisor

Re: please advise

Hello,

I need answers for my last questions?
Thanks again.
Rajesh G. Ghone
Regular Advisor

Re: please advise

Hi Kim,

You can mount it to /va/radm/crash inspite of /data & you can put the entry in /etc/fstab file so that you dont have to mount manually every time.

Regards,
Rajesh G.
Rajesh Ghone
Kim wing
Frequent Advisor

Re: please advise

Hello,
I still answers for my last post?
Thanks again
Kim wing
Frequent Advisor

Re: please advise

Hello,
I still answers for my last post?
Thanks again
Kim wing
Frequent Advisor

Re: please advise

Hello,
I still answers for my last post?
Thanks again
Kim wing
Frequent Advisor

Re: please advise

hello there,

Any answers for my last post please?
appreciate it.
Rajesh G. Ghone
Regular Advisor

Re: please advise

Hi Kim,

You can mount it to /va/radm/crash inspite of /data & you can put the entry in /etc/fstab file so that you dont have to mount manually every time.

Regards,
Rajesh G.
Rajesh Ghone
Kim wing
Frequent Advisor

Re: please advise

hello there,

Any answers for my last post please?
appreciate it.
Kim wing
Frequent Advisor

Re: please advise

Hello there,

Any answers please?
appreciate it.
Kim wing
Frequent Advisor

Re: please advise

Hello there,

Any answers please?
appreciate it.
S.K. Chan
Honored Contributor
Solution

Re: please advise

Kim,
I did some checking for you .. since savecrash is execute in run level 1 (/sbin/rc1.d) and after "localmount" (in /sbin/rc1.d) you can safely use /data. You are on the right track ..
first create a separate dir (ie /data/crash) and then modify these ..
1) /etc/rc.config.d/savecrash
SAVECRASH=1
SAVECRASH_DIR=/data/crash
2) /sbin/init.d/savecrash
typeset -r DEFAULT_SAVECRASH_DIR=/data/crash
.. and you should be set. Your other option is "remount" the logical volume that's mounted on /data to /var/adm/crash instead, that way you don't need to mess with the changes in the above file. To do that (lets say /data is on /dev/vg01/lvol2)..
# cd /
# umount /data
==> Can only do this is no one is accessing the dir.
# mkdir /var/adm/crash
==> Create the dir if not already exist.
# mount /dev/vg01/lvol2 /var/adm/crash
==> Previous files/dirs in /data would still appear in /var/adm/crash.
To make this mount point permanent edit /etc/fstab file.
Kim wing
Frequent Advisor

Re: please advise

Thanks Rajesh again.

Thanks S.k. Chan,

So changing
the /sbin/init.d/savecrash will save the crash files in the /data/crash by default whenever the system crashes.

Running the savecrash -vr while the users are working, does it have any impact on the users application? I need to know please.
Appreciate it,
Rajesh G. Ghone
Regular Advisor

Re: please advise

Hi Kim,

Thanks for your reply i dont know how much it is going to impact the user appl may be you can do after users logs out or at the time when there is less users logged in.

regards,
Rajesh G.
Rajesh Ghone
Kim wing
Frequent Advisor

Re: please advise

My system is 24/7 up and running and there is no way the users will not be working one day. Any body out there has run the savecrash -vr while the users are logged into the system.

Appreciate your input.
S.K. Chan
Honored Contributor

Re: please advise

Normally savecrash is run almost immediately the system is up after the crash happened. That way you can be sure that the crash dump is still available in the pri swap area (this is for the case of not being successful in saving the crash dump at the first place). I have run that before within 10 minutes after a system came up and probably no one has logged in yet at that point. In your case I'm assuming the system has been running for a while ? If that is the case (and if your system has utilized the swap space) there is no point running savecrash because it has been overwritten. Since you did not mention if you get any error in GSP or in syslog.log file maybe you can look into that area to see if you can find anything. Post your findings.
Kim wing
Frequent Advisor

Re: please advise

S.k. Chan,

I did run the savecrash -vr but still the crash files goes to /var/adm/crash/crash.x
Did you look at the attached file. Please advise.

Thanks.