分类: Software

  • How ESXi identify disk

    Identifying disks when working with VMware ESXi/ESX (1014953)

     

    These are the definitions for some of identifiers and their conventions:
    • naa.<NAA>:<Partition> or eui.<EUI>:<Partition>

      NAA stands for Network Addressing Authority identifier. EUI stands for Extended Unique Identifier. The number is guaranteed to be unique to that LUN. The NAA or EUI identifier is the preferred method of identifying LUNs and the number is generated by the storage device. Since the NAA or EUI is unique to the LUN, if the LUN is presented the same way across all ESXi hosts, the NAA or EUI identifier remains the same. For more information on these standards, see the SPC-3 documentation from the InterNational Committee for Information Technology Standards (T10).

      The <Partition> represents the partition number on the LUN or Disk. If the <Partition> is specified as 0, it identifies the entire disk instead of only one partition. This identifier is generally used for operations with utilities such as vmkfstools.

     

    mpx.vmhba<Adapter>:C<Channel>:T<Target>:L<LUN> or mpx.vmhba<Adapter>:C<Channel>:T<Target>:L<LUN>:<Partition>

    Some devices do not provide the NAA number described above. In these circumstances, an MPX Identifier is generated by ESXi to represent the LUN or disk. The identifier takes the form similar to that of the canonical name of previous versions of ESXi with the mpx. prefix. This identifier can be used in the exact same way as the NAA Identifier described above.

  • vmware RDM

    https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2009226

    RDM has two compatibility modes:
    • Physical compatibility mode
    • Virtual compatibility mode

    Note: RDM is not available for direct-attached block devices or certain RAID devices. You cannot map a disk partition as RDM. RDMs require the mapped device to be a whole LUN.  (depends on the controller)

  • HP P410/Raid5 benchmark

    Test Environment

    ProLiant MicroServer Gen8
    E3 1230V2@3.3G
    16GB RAM
    3 WD Red NAS 4T/ @HP P410 Raid5

    Software:
    HP ESXi 6.0.0U2
    Virtual:
    Debian 8/X64
    8 CPU/ 4G RAM

     

    Benchmark Tool

    FIO (Flexible I/O Tester)

    Google Compute SSD FIO Script

    https://wiki.mikejung.biz/Benchmarking#Linux_Benchmarking_Tools

     

    Result:

    # Full write pass
    
    1 process
     Run status group 0 (all jobs):
     WRITE: io=20480MB, aggrb=267620KB/s, minb=267620KB/s, maxb=267620KB/s, mint=78363msec, maxt=78363msec
    
     Disk stats (read/write):
     sda: ios=0/41090, merge=0/194, ticks=0/17786888, in_queue=17813224, util=99.70%
    benchmark: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=128
    
    
    4 process / Random Read
    
    Run status group 0 (all jobs):
     READ: io=45580KB, aggrb=1500KB/s, minb=1500KB/s, maxb=1500KB/s, mint=30379msec, maxt=30379msec
    
    Disk stats (read/write):
     sda: ios=11312/12, merge=0/7, ticks=4291100/444, in_queue=4331296, util=99.76%
    benchmark: (g=0): rw=randwrite, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=128
    
    # 4 Process / Random Write
    Run status group 0 (all jobs):
     WRITE: io=113208KB, aggrb=3689KB/s, minb=3689KB/s, maxb=3689KB/s, mint=30684msec, maxt=30684msec
    
    Disk stats (read/write):
     sda: ios=0/28298, merge=0/0, ticks=0/4648448, in_queue=4649856, util=99.76%
  • Best Xterm under windows

    xshell  from netsarang:

    https://www.netsarang.com/products/xsh_overview.html

    Better than Bitvise for daily linux ssh operation

    https://www.bitvise.com/ssh-client

     

     

     

     

  • Remove GPT from a disk under ubuntu

    Suppose /dev/sdb is the device to be cleand

     

    sudo apt-get install gdisk

    sudo gdisk /dev/sdb

    > Enter 2,  select GPT

    > Enter  ?,  get command list

    > Enter x,   expert mode

    > Enter ?,  get command list

    > Enter z,   destroy GPT

     

    # create dos partition table, and partition

    sudo fdisk /dev/sdb

    # format the dos partition,   say /dev/sdb1

    sudo mkfs.msdos /dev/sdb1

  • SD Card Bug of iLO4 2.4.0/2.4.4

    ISSUE:

    Upgrade to iLO4 2.4.0 (SPP 2016040), found  The server was failed to boot ESX from SD Card.   The same issue existed in iLO4 2.4.4

    Root Cause:

    iLO4 2.4.x will damage the partition table of SD Card/USB Flash,Not Clear it is damaged during the executing phase or stopping phase

     

    Solution :

    Rollback iLO4 to 2.3.0 (SPP 2015100)
    Create USB Key of SPP 2015100
        Boot with the USB
        Downgrade the iLO4 firmware with interactive method
    Reformat the SD Card/USB Flash
    Retrieve the SD Card from server
        Format it into empty status in PC (Linux)
        Delete the partition table
        Create DOS partition table
        Create a DOS partition (0x0b)
       Format the DOS partition
       Insert the empty SD Card into Gen8

     

    Reinstall ESX into SD Card

     Format the SD Card with FAT32
       Power outage of the server
       Lauch iOL remote console
       Insert CD of  ESX iso image file
       Reboot with CD to install ESX

     

     Lessons

    Never trust a Company not in stable state

     

     

     How to format Micro SD Card in MicroServer Gen8:

    Download gparted live CD at

    http://downloads.sourceforge.net/gparted/gparted-live-0.26.1-5-i686.iso

    And Launch it from iLO client

     

  • RBICL

    RIBCL

    Remote Insight Board Command Language

    An XML-based scripting language, used to configure iLO on the network, during initial deployment, or from an already iLO setup deployed host.

     

    Two basic ways in order to configure iLO online:

     

    • Locally, with the HPONCFG command utility.

    • Remotely, with the CPQLOCFG command utility

     

     

     

     

  • Update iLO4 firmware of HP ML Gen8

    • Download iLO4 software of window x64 from HPE website
    • Extract the download exe file,  get the bin file
    • Login to iLO4 from browser
    • Update iLO4 firmware by uploading the bin file