Sponsored Content
Operating Systems Solaris Making sense of df -k & format verify output Post 76791 by gonzotonka on Thursday 30th of June 2005 02:24:14 PM
Old 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

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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
format(1M)						  System Administration Commands						format(1M)

NAME
format - disk partitioning and maintenance utility SYNOPSIS
format [-f command-file] [-l log-file] [-x data-file] [-d disk-name] [-t disk-type] [-p partition-name] [-s] [-m] [-M] [-e] [disk-list] DESCRIPTION
format enables you to format, label, repair and analyze disks on your system. Unlike previous disk maintenance programs, format runs under SunOS. Because there are limitations to what can be done to the system disk while the system is running, format is also supported within the memory-resident system environment. For most applications, however, running format under SunOS is the more convenient approach. format first uses the disk list defined in data-file if the -x option is used. format then checks for the FORMAT_PATH environment vari- able, a colon-separated list of filenames and/or directories. In the case of a directory, format searches for a file named format.dat in that directory; a filename should be an absolute pathname, and is used without change. format adds all disk and partition definitions in each specified file to the working set. Multiple identical definitions are silently ignored. If FORMAT_PATH is not set, the path defaults to /etc/format.dat. disk-list is a list of disks in the form c?t?d? or /dev/rdsk/c?t?d?s?. With the latter form, shell wildcard specifications are supported. For example, specifying /dev/rdsk/c2* causes format to work on all drives connected to controller c2 only. If no disk-list is specified, format lists all the disks present in the system that can be administered by format. Removable media devices are listed only when users execute format in expert mode (option -e). This feature is provided for backward compat- ibility. Use rmformat(1) for rewritable removable media devices. OPTIONS
The following options are supported: -d disk-name Specify which disk should be made current upon entry into the program. The disk is specified by its logical name (for instance, -d c0t1d0). This can also be accomplished by specifying a single disk in the disk list. -e Enable SCSI expert menu. Note this option is not recommended for casual use. -f command-file Take command input from command-file rather than the standard input. The file must contain commands that appear just as they would if they had been entered from the keyboard. With this option, format does not issue continue? prompts; there is no need to specify y(es) or n(o) answers in the command-file. In non-interactive mode, format does not initially expect the input of a disk selection number. The user must specify the current working disk with the -d disk-name option when format is invoked, or specify disk and the disk selection number in the command-file. -l log-file Log a transcript of the format session to the indicated log-file, including the standard input, the standard output and the standard error. -m Enable extended messages. Provides more detailed information in the event of an error. -M Enable extended and diagnostic messages. Provides extensive information on the state of a SCSI device's mode pages, during formatting. -p partition-name Specify the partition table for the disk which is current upon entry into the program. The table is specified by its name as defined in the data file. This option can be used only if a disk is being made current, and its type is either specified or available from the disk label. -s Silent. Suppress all of the standard output. Error messages are still displayed. This is generally used in conjunc- tion with the -f option. -t disk-type Specify the type of disk which is current upon entry into the program. A disk's type is specified by name in the data file. This option can only be used if a disk is being made current as described above. -x data-file Use the list of disks contained in data-file. USAGE
When you invoke format with no options or with the -e, -l, -m, -M, or -s options, the program displays a numbered list of available disks and prompts you to specify a disk by list number. If the machine has more than 10 disks, press <SPACE> to see the next screenful of disks. You can specify a disk by list number even if the disk is not displayed in the current screenful. For example, if the current screen shows disks 11-20, you can enter 25 to specify the twenty-fifth disk on the list. If you enter a number for a disk that is not currently dis- played, format prompts you to verify your selection. If you enter a number from the displayed list, format silently accepts your selection. After you specify a disk, format displays its main menu. This menu enables you to perform the following tasks: analyze Run read, write, and compare tests. backup Search for backup labels. cache Enable, disable, and query the state of the write cache and read cache. This menu item only appears when format is invoked with the -e option, and is only supported on SCSI devices.. current Display the device name, the disk geometry, and the pathname to the disk device. defect Retrieve and print defect lists. This option is supported only on SCSI devices. IDE disks perform automatic defect manage- ment. Upon using the defect option on an IDE disk, you receive the message: Controller does not support defect management or disk supports automatic defect management. disk Choose the disk that will be used in subsequent operations (known as the current disk.) fdisk Run the fdisk(1M) program to create a fdisk partition for Solaris software (x86 based systems only). format Format and verify the current disk. This option is supported only on SCSI devices. IDE disks are pre-formatted by the manu- facturer. Upon using the format option on an IDE disk, you receive the message: Cannot format this drive. Please use your manufacturer-supplied formatting utility. inquiry Display the vendor, product name, and revision level of the current drive. label Write a new label to the current disk. partition Create and modify slices. quit Exit the format menu. repair Repair a specific block on the disk. save Save new disk and slice information. type Select (define) a disk type. verify Read and display labels. Print information such as the number of cylinders, alternate cylinders, heads, sectors, and the partition table. volname Label the disk with a new eight character volume name. ENVIRONMENT VARIABLES
FORMAT_PATH a colon-separated list of filenames and/or directories of disk and partition definitions. If a directory is speci- fied, format searches for the file format.dat in that directory. FILES
/etc/format.dat default data file ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
fmthard(1M), prtvtoc(1M), rmformat(1), format.dat(4), attributes(5), sd(7D) System Administration Guide: Basic Administration x86 Only fdisk(1M) WARNINGS
When the format function is selected to format the Maxtor 207MB disk, the following message displays: Mode sense page(4) reports rpm value as 0, adjusting it to 3600 This is a drive bug that may also occur with older third party drives. The above message is not an error; the drive will still function correctly. Cylinder 0 contains the partition table (disk label), which can be overwritten if used in a raw disk partition by third party software. format supports writing EFI-compliant disk labels in order to support disks or LUNs with capacities greater than one terabyte. However, care should be exercised since many software components, such as filesystems and volume managers, are still restricted to capacities of one terabyte or less. See the System Administration Guide: Basic Administration for additional information. NOTES
format provides a help facility you can use whenever format is expecting input. You can request help about what information is expected by simply entering a question mark (?) and format prints a brief description of what type of input is needed. If you enter a ? at the menu prompt, a list of available commands is displayed. For SCSI disks, formatting is done with both Primary and Grown defects list by default. However, if only Primary list is extracted in defect menu before formatting, formatting will be done with Primary list only. Changing the state of the caches is only supported on SCSI devices, and not all SCSI devices support changing or saving the state of the caches. SunOS 5.10 2 Aug 2002 format(1M)
All times are GMT -4. The time now is 11:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy