- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Reduce /var/adm/crash
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
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
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
тАО11-19-2010 03:04 AM
тАО11-19-2010 03:04 AM
I want to reduce my /var/adm/crash. I'm running HP-UX B.11.31 ia64.
Please help.
# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 2097152 263264 1819656 13% /
/dev/vg00/lvol1 2097152 345304 1738240 17% /stand
/dev/vg00/lvol8 10485760 1152832 9260112 11% /var
/dev/vg00/lvol9 75235328 84704 70453845 0% /var/adm/crash
/dev/vg00/lvol7 9732096 2900568 6778160 30% /usr
/dev/vg00/lvol4 2097152 1309352 781776 63% /tmp
/dev/vg00/lvol6 14680064 5212552 9393624 36% /opt
/dev/vg00/lvol5 5242880 2328896 2891288 45% /home
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2010 03:17 AM
тАО11-19-2010 03:17 AM
Re: Reduce /var/adm/crash
if you have OnlineJFS (swlist -l product |grep -i online) then you can reduce it online:
fsadm -F vxfs -b
(note that M is nearby at number of final size)
lvreduce -L
If you don't have OnlineJFS you have to rebuild the filesystem (newfs/restore data).
Hope this helps you.
Best regards,
Fabio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2010 03:20 AM
тАО11-19-2010 03:20 AM
Re: Reduce /var/adm/crash
Thanks for your reply.
I think I have it.
# swlist |grep -i JFS
OnlineJFS B.11.31 Online features of the VxFS File System
Will assign points later to determine the effectiveness of your suggestion. :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2010 03:23 AM
тАО11-19-2010 03:23 AM
SolutionSince the system writes to /var/adm/crash only when "savecrash" is executing (which normally happens at boot time only), you can unmount your /var/adm/crash to reduce it.
Looks like your /var/adm/crash is almost completely empty. The easiest way to reduce it would be to backup whatever is in /var/adm/crash, unmount it, then use lvreduce to reduce the size of /dev/vg00/lvol9, then mkfs it again and restore the backed-up files.
Replace
cd /
tar cvf /tmp/var_adm_crash.tar /var/adm/crash
umount /var/adm/crash
lvreduce -L
mkfs -F vxfs -o largefiles /dev/vg00/rlvol9
mount /var/adm/crash
cd /
tar xvf /tmp/var_adm_crash.tar
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2010 03:30 AM
тАО11-19-2010 03:30 AM
Re: Reduce /var/adm/crash
yes, /var/adm/crash is for saving crashes and the filesystem should be easily unomunted. However I often have customers which save depots under /var/adm/crash.
It shouldn't be a good habit as it's not the purpose of that filesystem but rather than backup data (any data) and recreate filesystem and restore data I think OnlineJFS is the best approach. It means that with just 2 commands you reduce the filesystem.
Dags,good to know you have it. Let us know the results.
Best regards,
Fabio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2010 03:45 AM
тАО11-19-2010 03:45 AM
Re: Reduce /var/adm/crash
Thanks Fabio for your help.:D
Happy weekend guys.