Making sense of df -k & format verify output


 
Thread Tools Search this Thread
Operating Systems Solaris Making sense of df -k & format verify output
# 8  
Old 06-30-2005
so what's wrong with your "df -k" ? you could use "df -h" to see an human output but your mirror is mounted not the single slices.... that's the sense of the solaris volume manager......
/dev/md/dsk/d2, like Perderabo, said contains to same slices d0 and d1 which is c1t0d0s0 and c1t1d0s0 .....
# 9  
Old 07-01-2005
I guess the mirror part is why I'm confused. I've never dealt with mirrored disks like this. So according to the output I've already listed here. Only slice 0 is mirrored on this machine? Or is it the entire disk (all slices)?
# 10  
Old 07-01-2005
you would have to post the output of "metastat". you get the definition of every mirror in your maschine without any option..... but as far as i can see now at your df -k output the "/" and "/opt" is based on metadevices.....
# 11  
Old 07-01-2005
Here's the output of metastat d2 - looks like d2 is a mirror of slice 0 and d8 is a mirror of slice 6. Am I correct?


root@lycincs2:/# metastat d2
d2: Mirror
Submirror 0: d0
State: Okay
Submirror 1: d1
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 4100928 blocks

d0: Submirror of d2
State: Okay
Size: 4100928 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t0d0s0 0 No Okay


d1: Submirror of d2
State: Okay
Size: 4111104 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t1d0s0 0 No Okay

And metastat d8 -

root@lycincs2:/# metastat d8
d8: Mirror
Submirror 0: d6
State: Okay
Submirror 1: d7
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 24585216 blocks

d6: Submirror of d8
State: Okay
Size: 24585216 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t0d0s6 0 No Okay


d7: Submirror of d8
State: Okay
Size: 24585216 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t1d0s6 0 No Okay
# 12  
Old 07-01-2005
Quote:
Originally Posted by gonzotonka
Something that might say
Partition/slice | size | mount point
c1t1d0s0 GB or MB /
c1t1d0s1 GB or MB /var
etc., etc...
I've been working with HP-UX for a long time. I have never seen anything like that. Here is the bdf output from two different HP-UX systems:

Code:
Filesystem          kbytes    used   avail %used Mounted on
/dev/vg00/lvol3     204800  106448   97640   52% /
/dev/vg00/lvol1     298928   61480  207552   23% /stand
/dev/vg00/lvol8    4710400 1324552 3362776   28% /var
/dev/vg00/lvol7    3145728 1694752 1439696   54% /usr
/dev/vg00/lvol6    1048576  402376  641168   39% /tmp
/dev/vg00/lvol5    8388608 5357120 3007912   64% /opt
/dev/vg00/lvol4    6291456 2420010 3630283   40% /export1

Filesystem          kbytes    used   avail %used Mounted on
/dev/vg00/lvol3     204800   90216  113704   44% /
/dev/vg00/lvol1     298928   49144  219888   18% /stand
/dev/vg00/lvol8    4710400  557232 4121312   12% /var
/dev/vg00/lvol7    2916352 1259240 1644832   43% /usr
/dev/vg00/lvol4     204800   25128  178464   12% /tmp
/dev/vg00/lvol6    1720320 1380704  337000   80% /opt

Can you tell me anything at all about the physical disks involved? One of the system has MirrorDisk/UX installed; and on that system, vg00 is mirrored. Which system? The HP-UX /dev/vg00/lvol1 and the SunOS /dev/md/dsk/d2 are actually rather close in concept. In both cases you need another command to trace back to the physical disk. Now looking at the SunOS "df -k" output...
Code:
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/md/dsk/d0        493688   50002  394318    12%    /
/dev/md/dsk/d4       1133429  584244  492514    55%    /usr
/proc                      0       0       0     0%    /proc
fd                         0       0       0     0%    /dev/fd
mnttab                     0       0       0     0%    /etc/mnttab
/dev/md/dsk/d5       1527116  670262  795770    46%    /var
swap                 2903888      40 2903848     1%    /var/run
swap                 2903912      64 2903848     1%    /tmp
/dev/md/dsk/d8       17403836 16214482 1015316    95%    /worldscope
/dev/md/dsk/d7       2622176 1864275  705458    73%    /export
/dev/md/dsk/d6        736904    3430  674522     1%    /opt

the main difference that strikes me is "capacity" verses "%used".
# 13  
Old 07-01-2005
I'm not sure I understood all your questions for me from the last reply. I do agree that that df -k and bdf are very simular, I was just confused by the mirroring and why some of the system type info is list the way it is. Could you explain one last point for me...
I see that /proc, fd, mnttab & swap are listed in the df -k. And I can see that /proc, fd & mnttab don't actually have any space allocated to them. I know that mnttab is used by the system to keep track of mount points. What is the purpose of /proc & fd? And why does swap have two listings and mounted at /var/run & /tmp?
thanks guys!!
# 14  
Old 07-01-2005
/tmp and /var/run are swap-based filesystems. Anything in them will disappear at reboot time. They are like "memory-disk" filesystems, except that they use vitrual memory rather than physical memory. Putting stuff in /tmp or /var/run consumes some swap space. The proc, fd, and mnttab are psuedo filesystem they don't count as disk space at all. /proc is all of the processes. ps runs by looking at it. /dev/fd lets you treat your file descriptors as if they were files. mnttab is a file system that exists only for /etc/mnttab... not my favorite idea, but /etc/mnttab is *alway* in sync with the kernel table.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Script that verify output after make

Hi I write below script to show if expected file exist in /etc/library/ , print success else failed. But it will print full path I just need to print module name in output. And if it possible show time that spent to compile each module. FYI 1: First run another script just go to the paths... (1 Reply)
Discussion started by: indeed_1
1 Replies

2. Solaris

Beadm create -p on another pool - making sense of it

Hi all, I am trying out Solaris 11.3 Realize the option of -p when using beadm that i can actually create another boot environment on another pool. root@Unicorn6:~# beadm create -p mypool solaris-1 root@Unicorn6:~# beadm list -a BE/Dataset/Snapshot Flags... (1 Reply)
Discussion started by: javanoob
1 Replies

3. Solaris

Sense key unit attention & iostat hardware and transport errors on SAN disks

Hello, I'm trying to get to the bottom of SAN disk errors we've been seeing. Server is Sun Fire X4270 M2 running Solaris 10 8/11 u10 X86 since April 2012. SAN HBAs are SG-PCIE2FC-QF8-Z-Sun-branded Qlogic. SAN storage system is Hitachi VSP. We have 32 LUNs in use and another 8 LUNs not brought... (4 Replies)
Discussion started by: TKD
4 Replies

4. Programming

This Makes NO sense. I'm making a game and getting an error, need help.

Okay so I'm making a simple text based game that branches into different scenarios. By branching I mean branching off into whole different files with that part of the game in it. I got tired of working on scenario 1 so I'm working on scenario 2. As I get started and try to test it, I get an error... (1 Reply)
Discussion started by: lemonoid
1 Replies

5. UNIX for Advanced & Expert Users

sar -d output... does not make sense

Can someone explain the correlation between how sar names the disk drives and how the rest of the OS names the disk drives? sar lists my disk drives as sd0, sd1, sd2, etc..... while format lists my disk drives as c1t0d0, c1t1d0, c1t2d0,etc... And also why sar shows 8 disks but format... (2 Replies)
Discussion started by: s ladd
2 Replies

6. Shell Programming and Scripting

incrementing lines in the file & format output.

Hi All, I need read the file and out put format as below using ksh, I wrote below script its keep on repeating first line in the file. may i know the best way to get the below out put while incrementing line in the file. cat b.txt |awk '{print $0}' |while read line do aa=`cat $line |head -1... (7 Replies)
Discussion started by: ashanabey
7 Replies

7. UNIX for Dummies Questions & Answers

Why does fibonacci sequence script stop making sense at 92nd iteration?

So, Just for practice, I wrote a simple fibonacci sequence script in bash. (03:08:02\$ cat fib #!/usr/bin/bash ret () { echo -ne "\n" sleep .5 } a=1 b=2 echo -n $a #1 A ret echo -n $b #2 B ret (8 Replies)
Discussion started by: DeCoTwc
8 Replies

8. Shell Programming and Scripting

manipulate & format the output of spool command

Hi All, I am spooling the data some sql queries into a single file but wanted to know how to format the data of the file generated by spool. #!/bin/sh unset -f USAGE USAGE () { clear echo "############################USAGE#######################\n" echo "Incorrect number of... (2 Replies)
Discussion started by: ss_ss
2 Replies

9. UNIX for Dummies Questions & Answers

trying to make sense of rsync output...

I'm running the following rsync command to sync a directory between the 2 servers: rsync -az --delete --stats /some_dir/ server_name:/some_dir I'm getting the following output: Number of files: 655174 Number of files transferred: 14221 Total file size: 1138531979331 bytes Total... (0 Replies)
Discussion started by: GKnight
0 Replies

10. UNIX for Advanced & Expert Users

Process calls - making sense of truss results

Can someone point me at resources for system calls? Specifically, I am trying to make sense of what I am seeing in a truss command. Thanks! (3 Replies)
Discussion started by: jpeery
3 Replies
Login or Register to Ask a Question