Df -k command shows duplicate information in Solaris machine, How to get the exact disk space


 
Thread Tools Search this Thread
Operating Systems Solaris Df -k command shows duplicate information in Solaris machine, How to get the exact disk space
# 1  
Old 08-19-2013
Df -k command shows duplicate information in Solaris machine, How to get the exact disk space

While getting the total disk space in solaris machine using df -k command, i am getting the same disk info for every user available in that system.

Is there any way to remove it.

Code:
Filesystem           1024-blocks        Used   Available Capacity  Mounted on
rpool/ROOT/solaris     573898752     2319948   554417618     1%    /
/devices                       0           0           0     0%    /devices
/dev                           0           0           0     0%    /dev
ctfs                           0           0           0     0%    /system/contract
proc                           0           0           0     0%    /proc
mnttab                         0           0           0     0%    /etc/mnttab
swap                    13017420        1208    13016212     1%    /system/volatile
objfs                          0           0           0     0%    /system/object
sharefs                        0           0           0     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
                       556737566     2319948   554417618     1%    /lib/libc.so.1
fd                             0           0           0     0%    /dev/fd
rpool/ROOT/solaris/var
                       573898752     1803580   554417618     1%    /var
swap                    13016220           8    13016212     1%    /tmp
rpool/export           573898752          32   554417618     1%    /export
rpool/export/home      573898752          40   554417618     1%    /export/home
rpool/export/home/mqm
                       573898752          35   554417618     1%    /export/home/mqm
rpool/export/home/soluser1
                       573898752          35   554417618     1%    /export/home/soluser1
rpool/export/home/soluser2
                       573898752          35   554417618     1%    /export/home/soluser2
rpool/export/home/soluser3
                       573898752          35   554417618     1%    /export/home/soluser3
rpool/export/home/soluser4
                       573898752          35   554417618     1%    /export/home/soluser4
rpool/export/home/soluser5
                       573898752          35   554417618     1%    /export/home/soluser5
rpool/export/home/test
                       573898752     4370328   554417618     1%    /export/home/test
rpool/export/home/test1
                       573898752          73   554417618     1%    /export/home/test1
rpool                  573898752          39   554417618     1%    /rpool
/export/home/test      558787946     4370328   554417618     1%    /home/test

Here user spaces of soluser1,2,3,5 were located under /export. It will give wrong result if i sum up all those values available under Available field.
Whereas in linux, i can get the correct space using the same command. How to get the correct disk space in solaris, please advice.
# 2  
Old 08-19-2013
Those are ZFS filesystems. All the user directories are sharing free space that is available on the "rpool" zpool. You can limit the space that is available for particular filesystem (user) by setting ZFS properties "quota" and "reservation". You can read more about it here: http://docs.oracle.com/cd/E19253-01/...zvb/index.html
# 3  
Old 08-19-2013
I'm also a big fan of df -h for displaying the results in human readable format.
# 4  
Old 08-19-2013
Use zpool status to get df like information for ZFS pools.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

How to create mirror disk in solaris machine?

hi, I'm newbie in Solaris 10. can someone explain me the steps of how to create mirror disk in Solaris machine. thanks in advance (5 Replies)
Discussion started by: Wong_Cilacap
5 Replies

2. Solaris

disk space solaris 10

I got 4 hd each of 75GB. The os sun solaris 10 is installed on disk 0 and is almost full. see at df -k shows the following $ df -k Dateisystem kByte belegt verfügbar Kapazität Eingehängt auf /dev/dsk/c1t0d0s0 6856805 6388140 400097 95% / /devices 0 ... (3 Replies)
Discussion started by: j2me
3 Replies

3. Solaris

Command to List Hard Disk Information

I have a SparcStation5 that is making sounds that make me think the disk drive(s) may be on the verge of quiting. What is the command to list the disk types and sizes? I'm thinking I can possibly pick up another drive or two and compy the exisiting drives while they are still working. (1 Reply)
Discussion started by: muletrainman
1 Replies

4. Solaris

solaris 8 / disk space almost full

Hi All, My Solaris 8 firewall server is getting full on the / filesystem. I don't know which one should I delete. I think there's no more to delete on the file like logs or temp file. Does someone knows about deleting a safe file (or folder) on FS like /usr, /opt, /platform, /kernel, /sbin?... (7 Replies)
Discussion started by: itik
7 Replies

5. Shell Programming and Scripting

Disk Space availability on solaris machine

Hi, I have a question regarding finding free space on the disk of a solaris machine. Many mount points are available in my machine. Right now i am using df -b option to get the free disk space available. I have an assignment to check free space on the disk. I pass the directory as a... (3 Replies)
Discussion started by: raghu.amilineni
3 Replies

6. Solaris

command to find free disk space on solaris

In linux df is the command to find free space what is the equivalent command in the Solaris (2 Replies)
Discussion started by: harishankar
2 Replies

7. UNIX for Advanced & Expert Users

How to re-allocate disk space on solaris 10

I am not very good at UNIX and seek help here. I tried to install Oracle 10g on a 64 bit Sun sparc machine with solaris 10 as OS. After I installed solaris 10, the current file system on the machine looks like this: /dev/dsk/c0t0d0s0 5104758 4854293 199418 97% / /devices ... (2 Replies)
Discussion started by: duke0001
2 Replies

8. Solaris

Disk space management on Solaris

Hi, I'm using sun solaris. Using df -h I have the following: Filesystem size used avail capacity Mounted on /dev/md/dsk/d2 12G 7.1G 4.6G 61% / /proc 0K 0K 0K 0% /proc mnttab 0K 0K 0K 0% ... (5 Replies)
Discussion started by: HSN
5 Replies

9. UNIX for Dummies Questions & Answers

command to know disk controllers in a machine

Hi!! I am these days working on a project, where I need to know about the disk controllers available in a machine (e.g., 3ware,IBM,etc). Please, let me know the command by which I can get the information. thnx, priyanka (3 Replies)
Discussion started by: reply2priyanka
3 Replies
Login or Register to Ask a Question