Showing posts with label Storage. Show all posts
Showing posts with label Storage. Show all posts

Tuesday, March 14, 2017

HP MSA Storage P2000 G3 - assigning new IP address using SSH




1. Login to  management console using SSH



2.  Show the current IP address setting using following command

  show network-parameter


3.  Change IP address of controller A using following command

set network-parameters ip <IP_ADDRESS> netmask <NETMASK> gateway <GATEWAY> controller a


4. Restart controller A

restart mc a



5. Change IP address of contoller B using following command

set network-parameters ip <IP_ADDRESS> netmask <NETMASK> gateway <GATEWAY> controller b


6. restart controller B

restart mc a




Thursday, March 9, 2017

RHEL 6.5 partition 3TB harddisk using gparted



RHEL 6.5 partition 3TB harddisk using gparted


 For my senario,the fdisk -l shows 3TB hdd connected as /dev/sdb


1. So started parted using ,
           parted /dev/sdb

2.  create gpt disk label,
           mklabel gpt




3. change unit to TB
           unit TB

4.  create 3TB partition
         mkpart primary 0.00TB 3.00TB


5. fdisk -l , shows that a new partition /dev/sdb1 is created of 3TB in size




5.   To format as EXT4 filesystem,
               mkfs.ext4 /dev/sdb1





Tuesday, September 1, 2015

VMware ESXi 5.x - to mount a netapp NFS share from ESXi command prompt


VMware ESXi 5.x - to mount a netapp NFS share from ESXi command prompt 

1)   To list the current NFS mounts on the server


esxcli storage nfs list

2) Command to mount the a Netapp NFS share 

       volume name : /vol/v2tc_x1/qtc_x1/
       hostname :  remotehost.domain.com
       mount folder name:  DataStore_Name

 esxcli storage nfs add -H remotehost.domain.com  -s /vol/v2tc_x1/qtc_x1/ -v DataStore_Name


3) To remove the NFS mount

esxcli storage nfs remove -v DataStore_Name


Thursday, July 30, 2015

Find HBA WWPN in RHEL / CentOS 5.x





Find HBA WWPN in RHEL / CentOS 5.X

Method1:

1) Run the following command to find the manufacturer of the HBA card


[root@host ~]# lspci |grep -i HBA
07:00.0 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02)
0a:00.0 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02)


2) To find the WWPN number use the following command and look for port_name

 systool -c fc_host -v

[root@host ~]# systool -c fc_host -v |grep "port_name"
    port_name           = "0x500XXXXXXXXXXX7e"
    port_name           = "0x500XXXXXXXXXXX4a"


Method2:

[root@host ~]# cat /sys/class/scsi_host/host1/device/fc_host\:host1/port_name
0x500XXXXXXXXXXX7e
[root@host~]# cat /sys/class/scsi_host/host0/device/fc_host\:host0/port_name
0x500XXXXXXXXXXX4a

Monday, June 15, 2015

Change multipathing policy to RoundRobin on ESXi 5.x




1.       Select an ESXi host you want to modify, and click the Configuration tab.
2.       Click Storage.
3.       Select a datastore or mapped LUN.
4.       Click Properties.
5.       In the Properties dialog, select the desired extent, if necessary.
6.       Click Extent Device > Manage Paths and obtain the paths in the Manage Path dialog.
7.       Under the Policy section, select the desired multipathing policy from the dropdown.


8.       Click Change to confirm the change in path policy.

Monday, June 8, 2015

How to find the HBA details in ESXi 5.1 server

How to find the HBA details in ESXi 5.1 server


1.  from /proc/scsi
~ # cd /proc/scsi/qla2xxx/
/proc/scsi/qla2xxx #
/proc/scsi/qla2xxx # ls
3  4

/proc/scsi/qla2xxx # cat 3 | head -3
QLogic PCI to Fibre Channel Host Adapter for HPAK344A:
        FC Firmware version 5.06.05 (90d5), Driver version 934.5.6.0-1vmw

Here,
FC firmware version is - 5.06.05 (90d5),
Driver version is - 934.5.6.0-1vmw

2.  run the following command 
~ # esxcfg-scsidevs -a

 # esxcfg-scsidevs -a
vmhba0  hpsa              link-n/a  sas.500xxxxxxxxxxxxx                    (0:2:0.0) Hewlett-Packard Company Smart Array P420i
vmhba1  qla2xxx           link-up   fc.500xxxxxxxxxxxd9:500xxxxxxxxxxxd8    (0:xx:x.x) QLogic Corp ISP2532-based 8Gb Fibre Channel to PCI Express HBA
vmhba2  qla2xxx           link-up   fc.500xxxxxxxxxxx99:500xxxxxxxxxxx98    (0:xx:x.x) QLogic Corp ISP2532-based 8Gb Fibre Channel to PCI Express HBA


-- you can see the driver as qla2xxx  for QLogic HBA card
-- now to find driver version execute the following command

~ # vmkload_mod -s qla2xxx |grep Version
 Version: Version 934.5.6.0-1vmw, Build: 472560, Interface: 9.2 Built on: Sep 21 2012