Amazon Ad

Featured Post

Monday, January 27, 2014

Create a multi-session setup in VMWare ESXi v5.x

~ # esxcli iscsi session list
vmhba37,iqn.2013-12.com.reduxio:alpha1,00023d000001
   Adapter: vmhba37
   Target: iqn.2013-12.com.reduxio:alpha1
   ISID: 00023d000001
   TargetPortalGroupTag: 1
   AuthenticationMethod: none
   DataPduInOrder: true
   DataSequenceInOrder: true
   DefaultTime2Retain: 0
   DefaultTime2Wait: 2
   ErrorRecoveryLevel: 0
   FirstBurstLength: 65536
   ImmediateData: true
   InitialR2T: true
   MaxBurstLength: 262144
   MaxConnections: 1
   MaxOutstandingR2T: 1
   TSIH: 256
~ #
~ # esxcli iscsi session add -A vmhba37
~ # esxcli iscsi session add -A vmhba37 -s 00023d000001 -n iqn.2013-12.com.reduxio:alpha1
~ # esxcli iscsi session add -A vmhba37 -s 00023d000001 -n iqn.2013-12.com.reduxio:alpha1
~ # esxcli iscsi session add -A vmhba37 -s 00023d000001 -n iqn.2013-12.com.reduxio:alpha1
~ # esxcli iscsi session add -A vmhba37 -s 00023d000001 -n iqn.2013-12.com.reduxio:alpha1
~ # esxcli iscsi session add -A vmhba37 -s 00023d000001 -n iqn.2013-12.com.reduxio:alpha1
~ # esxcli iscsi session add -A vmhba37 -s 00023d000001 -n iqn.2013-12.com.reduxio:alpha1
~ # esxcli iscsi session add -A vmhba37 -s 00023d000001 -n iqn.2013-12.com.reduxio:alpha1

Wednesday, December 11, 2013

Create a multi-session iSCSI setup in Linux

root@mktgmysql3:~#  iscsiadm --mode session
tcp: [1] 172.17.40.35:3260,1 iqn.2013-12.com.reduxio:red2
root@mktgmysql3:~# iscsiadm --mode session -r 1 --op new
Logging in to [iface: default, target: iqn.2013-12.com.reduxio:red2, portal: 172.17.40.35,3260] (multiple)
Login to [iface: default, target: iqn.2013-12.com.reduxio:red2, portal: 172.17.40.35,3260] successful.
root@mktgmysql3:~# iscsiadm --mode session
tcp: [1] 172.17.40.35:3260,1 iqn.2013-12.com.reduxio:red2
tcp: [2] 172.17.40.35:3260,1 iqn.2013-12.com.reduxio:red2
root@mktgmysql3:~# iscsiadm --mode session -r 1 --op new
Logging in to [iface: default, target: iqn.2013-12.com.reduxio:red2, portal: 172.17.40.35,3260] (multiple)
Login to [iface: default, target: iqn.2013-12.com.reduxio:red2, portal: 172.17.40.35,3260] successful.
root@mktgmysql3:~# iscsiadm --mode session -r 1 --op new
Logging in to [iface: default, target: iqn.2013-12.com.reduxio:red2, portal: 172.17.40.35,3260] (multiple)
Login to [iface: default, target: iqn.2013-12.com.reduxio:red2, portal: 172.17.40.35,3260] successful.
root@mktgmysql3:~# iscsiadm --mode session -r 1 --op new
Logging in to [iface: default, target: iqn.2013-12.com.reduxio:red2, portal: 172.17.40.35,3260] (multiple)
Login to [iface: default, target: iqn.2013-12.com.reduxio:red2, portal: 172.17.40.35,3260] successful.
root@mktgmysql3:~# iscsiadm --mode session -r 1 --op new
Logging in to [iface: default, target: iqn.2013-12.com.reduxio:red2, portal: 172.17.40.35,3260] (multiple)
Login to [iface: default, target: iqn.2013-12.com.reduxio:red2, portal: 172.17.40.35,3260] successful.
root@mktgmysql3:~# iscsiadm --mode session -r 1 --op new
Logging in to [iface: default, target: iqn.2013-12.com.reduxio:red2, portal: 172.17.40.35,3260] (multiple)
Login to [iface: default, target: iqn.2013-12.com.reduxio:red2, portal: 172.17.40.35,3260] successful.
root@mktgmysql3:~# iscsiadm --mode session -r 1 --op new
Logging in to [iface: default, target: iqn.2013-12.com.reduxio:red2, portal: 172.17.40.35,3260] (multiple)
Login to [iface: default, target: iqn.2013-12.com.reduxio:red2, portal: 172.17.40.35,3260] successful.
root@mktgmysql3:~# iscsiadm --mode session
tcp: [1] 172.17.40.35:3260,1 iqn.2013-12.com.reduxio:red2
tcp: [2] 172.17.40.35:3260,1 iqn.2013-12.com.reduxio:red2
tcp: [3] 172.17.40.35:3260,1 iqn.2013-12.com.reduxio:red2
tcp: [4] 172.17.40.35:3260,1 iqn.2013-12.com.reduxio:red2
tcp: [5] 172.17.40.35:3260,1 iqn.2013-12.com.reduxio:red2
tcp: [6] 172.17.40.35:3260,1 iqn.2013-12.com.reduxio:red2
tcp: [7] 172.17.40.35:3260,1 iqn.2013-12.com.reduxio:red2
tcp: [8] 172.17.40.35:3260,1 iqn.2013-12.com.reduxio:red2
root@mktgmysql3:~#

Monday, December 02, 2013

Rescan the disks in Linux

root@mktgmysql3:/usr/local/mysql/data.bak# echo "- - -" > /sys/class/scsi_host/host2/scan
root@mktgmysql3:/usr/local/mysql/data.bak# lsscsi
[1:0:0:0]    cd/dvd  NECVMWar VMware IDE CDR10 1.00  /dev/sr0
[2:0:0:0]    disk    VMware   Virtual disk     1.0   /dev/sda
[2:0:1:0]    disk    VMware   Virtual disk     1.0   /dev/sdc
[4:0:0:0]    storage IET      Controller       0001  -
[4:0:0:154]  disk    REDUXIO  TCAS             23    /dev/sdb

Sunday, July 14, 2013

EtherChannels in Cisco Nexus 5000

Base on Cisco article  http://www.cisco.com/en/US/docs/switches/datacenter/nexus5000/sw/configuration/guide/cli_rel_4_0_1a/EtherChannel.html#wp1115459

interface Ethernet105/1/11
  switchport mode trunk
  switchport access vlan 814
  switchport trunk allowed vlan 814
  no snmp trap link-status
  no logging event port link-status
  channel-group 2000

interface Ethernet105/1/12
  switchport mode trunk
  switchport access vlan 814
  switchport trunk allowed vlan 814
  no snmp trap link-status
  no logging event port link-status
  channel-group 2000

interface port-channel2000
  description Legato bond0 B5
  switchport mode trunk
  switchport access vlan 814
  switchport trunk allowed vlan 814

Opening a kernel profiling

# opreport --merge all cpu:0  -l /root/NC/mybinary  -g |head

Saturday, May 26, 2012

Tuesday, May 15, 2012

How to arrange for keyless SSH

ssh-keygen -t dsa

cat /root/.ssh/id_dsa.pub >> /mnt/toaster0/etc/sshd/root/.ssh/authorized_key