Showing posts with label Unix OS Solaris Management. Show all posts
Showing posts with label Unix OS Solaris Management. Show all posts

Sun Solaris Displaying Disk Utilization Information (iostat n)

** Web oracle sun /Myself
Displaying Disk Utilization Information (iostat n)
Use the iostat command to report statistics about disk input and output, and produces measures of throughput, utilization, queue lengths, transaction rates, and service time. For a detailed description of this command, refer to iostat(1M).
How to Display Disk Utilization Information (iostat)
You can display disk utilization information by using the iostat command with a time interval in seconds.
$ iostat 5
tty fd0 sd3 nfs1 nfs31 cpu
tin tout kps tps serv kps tps serv kps tps serv kps tps serv us sy wt id
0 1 0 0 410 3 0 29 0 0 9 3 0 47 4 2 0 94
The first line of output shows the statistics since the last time the system was booted. Each subsequent line shows the interval statistics. The default is to show statistics for the terminal (tty), disks (fd and sd), and CPU (cpu).
The following table describes the fields in the iostat command output.
Table 1 Output From the iostat n Command
Device Type Field Name Description
Terminal 
tin Number of characters in the terminal input queue
tout Number of characters in the terminal output queue
Disk 
bps Blocks per second
tps Transactions per second
serv Average service time, in milliseconds
CPU 
us In user mode
sy In system mode
wt Waiting for I/O
id Idle
Example—Displaying Disk Utilization Information

** Web

OS Restore Procedure (tar format)

1. Insert the Solaris 10 Software DVD, and boot the DVD with the single-user mode option.
ok boot cdrom -s
2. Create the new file system structure.
# newfs /dev/rdsk/c0t0d0s0
3. Mount the file system to the mount point /a and change to that directory.
# mount /dev/dsk/c0t0d0s0 /a
# cd /a
4. Restore dump file on Dataprotector to dummy server (PRODUCTION system) for using this server to restore dump file via NFS service
5. Setup interface server to connect dummy server and verify connection
# ifconfig bge0 IP address netmask broadcast up
# ping dummy server
6. Mount the NFS file system from dummy server that located dump file for recovery system
# mount dummy server:/dump file location /a/b
7. Restore the / (root) file system from NFS service.
# cd /a
# ufsrestore rf /a/b/root.dmp .
8. Remove the restoresymtable file.
# rm restoresymtable
9. Install the bootblk in Sectors 1 through 15 of the boot disk. To do this, change to the directory that contains the bootblk, and enter the installboot command.
# cd /usr/platform/`uname -m`/lib/fs/ufs
# installboot bootblk /dev/rdsk/c0t0d0s0
10. Unmount the new file system.

Sun Solaris List HBA/Tape/scan device

** Myself
List hardware
cfgadm –a
list HBA (wwn)
cfgadm -al

Scaning new hardware for online recognition (as root):
devfsadm -v
the you'll see the new add tape device
and put in a tape in the tape drive try:
0 rewind,0n no rewind
mt stat -f /dev/rmt/0
# mt -f /dev/rmt/0n status
Message no tape in drive
/dev/rmt/0n: no tape loaded or drive offline
Message tape in drive
HP DDS-4 DAT (Sun) tape drive:
sense key(0x0)= No Additional Sense residual= 0 retries= 0
file no= 0 block no= 0

list device and format disk
format (disk)

Example
cfgadm -al -o show_FCP_dev
Ap_Id                          Type         Receptacle   Occupant     Condition
c1                             fc-private   connected    configured   unknown
c1::500000e010a61501,0         disk         connected    configured   unknown
c1::500000e010a61e71,0         disk         connected    configured   unknown
Loading