- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- File system utilization vary checking by root and ...
Operating System - HP-UX
1753359
Members
6666
Online
108792
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-01-2011 12:04 PM
тАО01-01-2011 12:04 PM
File system utilization vary checking by root and normal user
While checking as root the file system utilization is:
idcxpr0012# du -sh ./*
0K ./bin
308M ./db
0K ./kms
758K ./local
18M ./lost+found
761G ./netbackup
0K ./replication_status
593K ./var
5.4M ./volmgr
92M ./vxul
92M ./vxul.tar.gz
And by normal user for same file system:
idcxpr0012: du -sh ./*
0K ./bin
308M ./db
0K ./kms
758K ./local
18M ./lost+found
idcxpr0012: du -sh ./*
0K ./bin
308M ./db
0K ./kms
758K ./local
18M ./lost+found
110G ./netbackup -This huge difference is there
0K ./replication_status
593K ./var
5.4M ./volmgr
92M ./vxul
92M ./vxul.tar.gz 0K ./replication_status
593K ./var
5.4M ./volmgr
92M ./vxul
92M ./vxul.tar.gz
110G ./netbackup -This huge difference is there
For this file system huge difference is there , please suggest how this big difference is there
idcxpr0012# du -sh ./*
0K ./bin
308M ./db
0K ./kms
758K ./local
18M ./lost+found
761G ./netbackup
0K ./replication_status
593K ./var
5.4M ./volmgr
92M ./vxul
92M ./vxul.tar.gz
And by normal user for same file system:
idcxpr0012: du -sh ./*
0K ./bin
308M ./db
0K ./kms
758K ./local
18M ./lost+found
idcxpr0012: du -sh ./*
0K ./bin
308M ./db
0K ./kms
758K ./local
18M ./lost+found
110G ./netbackup -This huge difference is there
0K ./replication_status
593K ./var
5.4M ./volmgr
92M ./vxul
92M ./vxul.tar.gz 0K ./replication_status
593K ./var
5.4M ./volmgr
92M ./vxul
92M ./vxul.tar.gz
110G ./netbackup -This huge difference is there
For this file system huge difference is there , please suggest how this big difference is there
- Tags:
- du
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-01-2011 04:28 PM
тАО01-01-2011 04:28 PM
Re: File system utilization vary checking by root and normal user
Is this an HP-Us system? Using standard /usr/bin/du, I see:
# du -sh ./*
du: illegal option -- h
usage: du [-a|-s] [-kbrx] [-H|-L] [-t type] [name ...]
The difference (on any flavor of Unix) is due to directory permissions. Ordinary users are not allowed to read every directory, thus du will fail to count that space. However, using a standard du command on HP-UX, unreadable directories will produce the following message:
du: cannot open < ./blh >
What happens when you issue this command:
type du
This might help clarify the problem.
Bill Hassell, sysadmin
# du -sh ./*
du: illegal option -- h
usage: du [-a|-s] [-kbrx] [-H|-L] [-t type] [name ...]
The difference (on any flavor of Unix) is due to directory permissions. Ordinary users are not allowed to read every directory, thus du will fail to count that space. However, using a standard du command on HP-UX, unreadable directories will produce the following message:
du: cannot open < ./blh >
What happens when you issue this command:
type du
This might help clarify the problem.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-01-2011 11:50 PM
тАО01-01-2011 11:50 PM
Re: File system utilization vary checking by root and normal user
Hi All
I resovled my problem , as I get to know that user are not having permission on all the directory and file under netbackup directory, so while checking the size of the file system, the user is not able to get the size of those file and directory which users are not having permission, while root is able to calculate it.
Also i tried below option:
cd /opt/VRTSnbu
*du -h ./** | sort -k 2 > /tmp/xn
---------
then as root:
Code:
---------
cd /opt/VRTSnbu
*du -h ./** | sort -k 2 > /tmp/xr
---------
Then use com m or diff to determine what is different.
I resovled my problem , as I get to know that user are not having permission on all the directory and file under netbackup directory, so while checking the size of the file system, the user is not able to get the size of those file and directory which users are not having permission, while root is able to calculate it.
Also i tried below option:
cd /opt/VRTSnbu
*du -h ./** | sort -k 2 > /tmp/xn
---------
then as root:
Code:
---------
cd /opt/VRTSnbu
*du -h ./** | sort -k 2 > /tmp/xr
---------
Then use com m or diff to determine what is different.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-02-2011 09:06 AM
тАО01-02-2011 09:06 AM
Re: File system utilization vary checking by root and normal user
>And by normal user for same file system: du -sh ./*
This "*" will also skip any "." files and directories, at the top level.
This "*" will also skip any "." files and directories, at the top level.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP