Link to home
Create AccountLog in
Avatar of jayatallen
jayatallen

asked on

how to interpret the output of df,mount command

Hi Folks,

I am facing problems in understanding the O/P of df and mount command on Solaris. Actually i am interested in find the number of hard disks installed on my solaris 5.10. I have read that df and mount command can show us the desired information. But when i do df and mount on my server ,the o/p of both commands is not same. At the same time it seems i have a NAS file share too.But iam not 100% sure how to fully understand this output.


I have pasted below the o/ps.

$ df
/                  (/dev/md/dsk/d0    ):40120338 blocks  3707900 files
/devices           (/devices          ):       0 blocks        0 files
/system/contract   (ctfs              ):       0 blocks 2147483614 files
/proc              (proc              ):       0 blocks    29935 files
/etc/mnttab        (mnttab            ):       0 blocks        0 files
/etc/svc/volatile  (swap              ):68778640 blocks  4799230 files
/system/object     (objfs             ):       0 blocks 2147483443 files
/dev/fd            (fd                ):       0 blocks        0 files
/tmp               (swap              ):26195568 blocks  4799230 files
/var/run           (swap              ):68778640 blocks  4799230 files
/jewsa            (/dev/md/dsk/d3    ):45552162 blocks 11042479 files
/jewsa/apps/data  (10.238.45.93:/vol/sdecdc1na04_ib_shrintappdocs_prod):177796776 blocks  7697964 files
/jewsa/apps/shared(10.238.45.93:/vol/sdecdc1na04_ib_binrepository_prod):132231072 blocks  3776644 files
/jewsa/apps/jopl/prd/content(10.238.45.93:/vol/sdecdc1na04_ib_jopldmzappdocs_prod):149127744 blocks  3579723 files
/apps              (/jewsa/apps/     ):45552162 blocks 11042479 files
/home/o013231      (/jewsa/home/o013231):45552162 blocks 11042479 files
/home/ascfg       (/jewsa/home/ascfg):45552162 blocks 11042479 files

$ mount
/ on /dev/md/dsk/d0 read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=1540000 on Sat Nov  6 16:31:35 2010
/devices on /devices read/write/setuid/devices/dev=5000000 on Sat Nov  6 16:31:18 2010
/system/contract on ctfs read/write/setuid/devices/dev=5040001 on Sat Nov  6 16:31:18 2010
/proc on proc read/write/setuid/devices/dev=5080000 on Sat Nov  6 16:31:18 2010
/etc/mnttab on mnttab read/write/setuid/devices/dev=50c0001 on Sat Nov  6 16:31:18 2010
/etc/svc/volatile on swap read/write/setuid/devices/xattr/dev=5100001 on Sat Nov  6 16:31:18 2010
/system/object on objfs read/write/setuid/devices/dev=5140001 on Sat Nov  6 16:31:18 2010
/dev/fd on fd read/write/setuid/devices/dev=52c0001 on Sat Nov  6 16:31:35 2010
/tmp on swap read/write/nosetuid/nodevices/xattr/size=12800m/dev=5100002 on Sat Nov  6 16:31:36 2010
/var/run on swap read/write/setuid/devices/xattr/dev=5100003 on Sat Nov  6 16:31:36 2010
/jewsa on /dev/md/dsk/d3 read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=1540003 on Sat Nov  6 16:31:57 2010
/jewsa/apps/data on 10.238.45.93:/vol/sdecdc1na04_ib_shrintappdocs_prod remote/read/write/setuid/devices/bg/intr/xattr/dev=5340001 on Sat Nov  6 16:41:36 2010
/jewsa/apps/shared on 10.238.45.93:/vol/sdecdc1na04_ib_binrepository_prod remote/read/write/setuid/devices/bg/intr/xattr/dev=5340002 on Sat Nov  6 16:41:36 2010
/jewsa/apps/jopl/prd/content on 10.238.45.93:/vol/sdecdc1na04_ib_jopldmzappdocs_prod remote/read/write/setuid/devices/bg/intr/xattr/dev=5340003 on Sat Nov  6 16:41:38 2010
/apps on /jewsa/apps/ read/write/nosetuid/nodevices/dev=1540003 on Sat Nov  6 16:45:01 2010
/home/o013231 on /jewsa/home/o013231 read/write/nosetuid/nodevices/dev=1540003 on Mon Nov  8 12:08:42 2010
/home/ascfg on /jewsa/home/ascfg read/write/nosetuid/nodevices/dev=1540003 on Sun Jan  2 16:21:00 201

$ df -h
Filesystem             size   used  avail capacity  Mounted on
/dev/md/dsk/d0          31G    12G    19G    39%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                    33G   1.0M    33G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
fd                       0K     0K     0K     0%    /dev/fd
swap                    13G   9.2M    12G     1%    /tmp
swap                    33G    16K    33G     1%    /var/run
/dev/md/dsk/d3          88G    66G    21G    77%    /jewsa
10.238.45.93:/vol/sdecdc1na04_ib_shrintappdocs_prod
                       201G   116G    85G    58%    /jewsa/apps/data
10.238.45.93:/vol/sdecdc1na04_ib_binrepository_prod
                       110G    47G    63G    43%    /jewsa/apps/shared
10.238.45.93:/vol/sdecdc1na04_ib_jopldmzappdocs_prod
                       101G    30G    71G    30%    /jewsa/apps/jopl/prd/content

/jewsa/apps/           88G    66G    21G    77%    /apps
/jewsa/home/o013231    88G    66G    21G    77%    /home/o013231
/jewsa/home/ascfg     88G    66G    21G    77%    /home/ascfg

Do the bold lines show those are shared space from another box?
If you all see the first line of df -h, can i say that it means
/dev/md/dsk/d0 is the partition of installed harddrive and mount point is /.
/dev/md/dsk/d3 is the another partition of the same hard drive as above and mount point is /jewsa?
Does Solaris dont follow the naming convention as Redhat for partitions? where Redhat says whether the installed hard drive is Sksi or IDE and named the partition accordingly?

Please help. As you all can see how much i am confused.

Thanks
Joe
ASKER CERTIFIED SOLUTION
Avatar of jgiordano
jgiordano
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Avatar of Joseph Gan
Joseph Gan
Flag of Australia image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of jayatallen
jayatallen

ASKER

Thank you reply.
I did metastat.Could you please help me understading the o/p?
$ metastat -p
d3 -m d13 d23 1
d13 1 1 c1t2d0s3
d23 1 1 c1t3d0s3
d1 -m d11 d21 1
d11 1 1 c1t0d0s1
d21 1 1 c1t1d0s1
d0 -m d10 d20 1
d10 1 1 c1t0d0s0
d20 1 1 c1t1d0s0
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account