- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: df -kP truncates the filesystem name
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
01-10-2006 08:36 AM
01-10-2006 08:36 AM
I have an issue where automated management tools get non-standard output from the "df" command.
"df -kP" will truncate long filesystem names as it insists on putting the filesytem name on the same output line as its stats. The filesystem name is truncated upon reaching the "1024-blocks" column.
Funny thing is that on another host "df -kP" will graciously put the filesystem name on its own line and push the stats down one line. I believe this is the expected standard behavior for df.
On both hosts "uname -a", "which df" and "what /usr/bin/df" return the same output. Since the binary and patches are the same and one of them behaves, what could be causing df to truncate long filesystem names ?
Thank you for your time.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2006 08:57 AM
01-10-2006 08:57 AM
Re: df -kP truncates the filesystem name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2006 09:30 AM
01-10-2006 09:30 AM
Re: df -kP truncates the filesystem name
While playing around with tusc ( didnt have it installed ) as a standard user I noticed that the output from " df -kP " was normal.
Seems something set in root's .profile is causing this. I confirmed by removing root's .profile and logging back in, "df -kP" operated correctly. Putting the .profile back in brought back the weirdness.
The workday is over and I have every confidence I will isolate what is wrong in the .profile tomorrow. I'll post my findings in ~10 hours.
Thanks again
-F
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2006 09:30 AM
01-10-2006 09:30 AM
SolutionDoes bdf return the same on both systems?
What about the attached script - called bdfmegs?
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2006 09:33 AM
01-10-2006 09:33 AM
Re: df -kP truncates the filesystem name
We'll find out tomorrow.
Posts are 2 seconds apart :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2006 10:18 AM
01-10-2006 10:18 AM
Re: df -kP truncates the filesystem name
Check your ${TERM} value on both servers. The mis-behaving server may be mis-set. Try running:
# stty sane
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2006 01:00 AM
01-11-2006 01:00 AM
Re: df -kP truncates the filesystem name
UNIX95=TRUE was set in root's .profile. I removed the value and df now behaves.
Seems this was not needed anyway.
Thanks again.