Search This Blog
Wednesday, 30 June 2010
Saturday, 19 June 2010
Starting and Accessing LDOM
Listing all the available domains
bash-3.00# ldm ls
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 4 1G 2.3% 14h 30m
orange1 inactive ------ 4 8G
orange2 inactive ------ 4 8G
Now both LDOMS are inactive. For activating the same, we have to bind it first.
bash-3.00# ldm bind-domain orange1
Now it can be booted
bash-3.00# ldm start-domain orange1
Accessing the LDOM console using telnet to port 5000 ( for next domain it will be 5001 and so on)
bash-3.00# telnet 0 5001
Trying 0.0.0.0...
telnet: Unable to connect to remote host: Connection refused
bash-3.00# telnet 0 5000
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
Connecting to console "orange1" in group "orange1" ....
Press ~? for control options ..
Hostname: orange1
Jun 19 12:07:07 in.mpathd[198]: missed sending 1 probes cur_time 52464930 snxt_time 52466262 snxt_basetime 52465390
/dev/rdsk/c0d0s4 is clean
/dev/rdsk/c0d0s5 is clean
/dev/md/rdsk/d80 is clean
Reading ZFS config: done.
orange1 console login:
bash-3.00# ldm ls
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 4 1G 2.3% 14h 30m
orange1 inactive ------ 4 8G
orange2 inactive ------ 4 8G
Now both LDOMS are inactive. For activating the same, we have to bind it first.
bash-3.00# ldm bind-domain orange1
Now it can be booted
bash-3.00# ldm start-domain orange1
Accessing the LDOM console using telnet to port 5000 ( for next domain it will be 5001 and so on)
bash-3.00# telnet 0 5001
Trying 0.0.0.0...
telnet: Unable to connect to remote host: Connection refused
bash-3.00# telnet 0 5000
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
Connecting to console "orange1" in group "orange1" ....
Press ~? for control options ..
Hostname: orange1
Jun 19 12:07:07 in.mpathd[198]: missed sending 1 probes cur_time 52464930 snxt_time 52466262 snxt_basetime 52465390
/dev/rdsk/c0d0s4 is clean
/dev/rdsk/c0d0s5 is clean
/dev/md/rdsk/d80 is clean
Reading ZFS config: done.
orange1 console login:
Tuesday, 8 June 2010
Ganglia gmetric Scripts
Script for monitoring SAN disk activity (Avg % of total disk busy).
Eg: for monitoring the disk activity on Controller 8 (c8)
Eg: for monitoring the disk activity on Controller 8 (c8)
while true;
do
iostat -xcn 2 15 |grep c8|grep -v b|awk {'print $10'}>/tmp/iostat
DTot=`iostat-en|grep c8|wc -l` #Total Number of disk in Controller c8
tail -$DTot /tmp/iostat >/tmp/iostat.new
Per=`awk 'BEGIN{total=0}{total += $1} END{print total}' /tmp/iostat.new`
Aper=`echo $Per / $DTot |bc`
/usr/local/bin/gmetric --name Avarage_SAN_usage_of_168_disks --value $Aper --type int32 --unit Avg_%
Done
Subscribe to:
Posts (Atom)