06-30-2005
Making sense of df -k & format verify output
I'm posting the output from two disks on my Solaris machine. The first part is the output from using the format command and then using the verify option on each disk. The last part is the output from my df -k command. I'm trying to match the partition to the filesystem/mount point. I'm assuming the disks are mirrored. Is there a command or option under format that better shows the correlation between the partition and mount point? I was also wondering why partition 0 and 2 seem to overlap as they both begin at cylinder 0?
SunOS 5.8 Generic_108528-29 sun4u sparc SUNW,Sun-Fire-V240
DISK 0
Volume name = < >
ascii name = <SUN72G cyl 14087 alt 2 hd 24 sec 424>
pcyl = 14089
ncyl = 14087
acyl = 2
nhead = 24
nsect = 424
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 402 1.96GB (403/0/0) 4100928
1 swap wu 403 - 1610 5.86GB (1208/0/0) 12292608
2 backup wm 0 - 14086 68.35GB (14087/0/0) 143349312
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 1611 - 4026 11.72GB (2416/0/0) 24585216
7 unassigned wm 4027 - 4052 129.19MB (26/0/0) 264576
DISK 1
Volume name = < >
ascii name = <SUN72G cyl 14087 alt 2 hd 24 sec 424>
pcyl = 14089
ncyl = 14087
acyl = 2
nhead = 24
nsect = 424
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 403 1.96GB (404/0/0) 4111104
1 swap wu 404 - 1611 5.86GB (1208/0/0) 12292608
2 backup wm 0 - 14086 68.35GB (14087/0/0) 143349312
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 1612 - 4027 11.72GB (2416/0/0) 24585216
root@lycincs2:/dev/dsk# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/md/dsk/d2 1988887 1683711 245510 88% /
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
mnttab 0 0 0 0% /etc/mnttab
swap 7895704 16 7895688 1% /var/run
swap 7906016 10328 7895688 1% /tmp
/dev/md/dsk/d8 12106732 5296345 6689320 45% /opt
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
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
2. UNIX for Dummies Questions & Answers
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
3. Shell Programming and Scripting
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
4. UNIX for Dummies Questions & Answers
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
5. Shell Programming and Scripting
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
6. UNIX for Advanced & Expert Users
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
7. Programming
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
8. Solaris
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
9. Solaris
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
10. UNIX for Beginners Questions & Answers
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
LEARN ABOUT NETBSD
sunlabel
SUNLABEL(8) BSD System Manager's Manual SUNLABEL(8)
NAME
sunlabel -- read or modify a SunOS disk label
SYNOPSIS
sunlabel [-mnqs] device
DESCRIPTION
sunlabel reads or modifies a SunOS disk label on device, which is used by the PROM on NetBSD/sparc hardware to find partitions to boot from.
sunlabel only reads/writes the first 512 bytes of device.
The supported options are:
-m Ignore an incorrect magic number in the disk label.
-n Synthesize a new label rather than reading what is there.
-q Quiet mode - don't print unnecessary babble (currently this suppresses the ``sunlabel>'' prompt).
-s Ignore checksum errors when reading the label.
Note that -m is dangerous, especially when combined with -s, since it will then happily believe whatever garbage it may find in the label.
When using these flags, all values should be checked carefully, both those printed by L and the partition table printed by P.
sunlabel prints a prompt ``sunlabel>'' and expects commands. The following commands are understood:
? Show a short help message.
[abcdefghijklmnop] <cylno> <size>
Change partition (see below).
L Print label, except for the partition table.
P Print the partition table.
Q Quit program (error if no write since last change).
Q! Quit program (unconditionally) [EOF also quits].
S Set label in the kernel (orthogonal to W).
V <name> <value> Change a non-partition label value.
W Write (possibly modified) label out.
The a through p commands will accept, for the <size> parameter, the nnn/nnn/nnn syntax used by SunOS 4.x format. (For those not familiar
with this syntax, a/b/c means a cylinders + b tracks + c sectors. For example, if the disk has 16 tracks of 32 sectors, 3/4/5 means
(3*16*32)+(4*32)+5=1669. This calculation always uses the nsect and ntrack values as printed by the L command; in particular, if they are
zero (which they will initially be if -n is used), this syntax is not very useful. Some additional strings are accepted. For the <cylno>
parameter, ``end-X'' (where X is a partition letter) indicates that the partition should start with the first free cylinder after partition
X; ``start-X'' indicates that the partition should start at the same place as partition X. For the <size> parameter, ``end-X'' indicates
that the partition should end at the same place as partition X (even if partition X ends partway through a cylinder); ``start-X'' indicates
that the partition should end with the last cylinder before partition X; and ``size-X'' means that the partition's size should exactly match
partition X's size.
Note that sunlabel supports 16 partitions. SunOS supports only 8. Labels written by sunlabel, when partitions i through p are all set
offset=0 size=0, are identical to Sun labels. If any of the ``extended'' partitions are nontrivial, information about them is tucked into
some otherwise unused space in the Sun label format.
The V command changes fields printed by the L command. For example, if the L command prints
ascii: ST15230N cyl 5657 alt 2 hd 19 sec 78
rpm: 0 pcyl: 0 apc: 0 obs1: 0
obs2: 0 intrlv: 1 ncyl: 5657 acyl: 0
nhead: 19 nsect: 78 obs3: 0 obs4: 0
then V ncyl 6204 would set the ncyl value to 6204, or V ascii Seagate ST15230N cyl 5657 hd 19 sec varying would set the ascii-label string to
that string. sunlabel performs very few consistency checks on the values you supply, and the ones it does perform never generate errors,
only warnings.
AUTHORS
der Mouse <mouse@rodents.montreal.qc.ca>
BUGS
It may be that the space in the label where the information for the extended partitions is saved is used by SunOS.
Not very many consistency checks are done on the V arguments, and those only produce warnings.
NetBSD doesn't support 16 partitions in a Sun disk label yet.
BSD
December 21, 2002 BSD