Recently Added

Notes & Bookmarks

  1. Quasars; power and metrics beyond all comprehension. Staggeringly beautiful information... and very well written.
  2. "I'm sorry. I can't come in today. Religious holiday. The feast of...Maximum Occupancy."pic.twitter.com/mkgxPWfNj2
  3. Verifying myself: I am sgnls on Keybase.io. UJa01G4v3YRJYB1LFjDRSf1Nh0bh1sOykCbq / https://keybase.io/sgnls/sigs/UJa01G4v3YRJYB1LFjDRSf1Nh0bh1sOykCbq
  4. Be sure to take care of your own infrastructure(s); purge dumps, tunnel and lock-down egress transit, encrypt and permission CORRECTLY!
  5. It really doesn't matter what else gets released; Sikth's 'The Future in Whose Eyes?' is THE album of 2017. #albumoftheyear @SikthOfficialpic.twitter.com/P5houdf1yx

Expand RAID Array on ESXi with No VM Downtime

Updated : 16:41:33pm, 14th Feb 2017

Jan 17th, 2017 : This is old (circa 2014) but it has relevance still.

If it weren't obviously from the detail below, this is only applicable to ESXi / vSphere environments running on HP ProLiant chassis.

Needless to say, these are ONLY guidelines; use your own common sense and diligence...

# List Volumes
~ # cd /vmfs/volumes/
1b81e2e5-b808308f-223d-ba8db0e5690c/  4x600GB Raid-5/                       5188f85f-498e449a-ff72-1cc1de080562/  ea9db1e5-2cb2ce93-4358-e951b3f4c41b/
3x146GB Raid-5/                       5181b0e0-083d4be9-44dc-1cc1de080562/  51bf427b-291d702e-5e70-1cc1de080562/

# Navigate to Target Volume (by 'name' or actual UID, here accessing the 'name')
~ # cd /vmfs/volumes/4x600GB\ Raid-5/

# Navigate to Uploaded Folder
/vmfs/volumes/5188f85f-498e449a-ff72-1cc1de080562 # cd hpacucli/

# Run the Patch Script
/vmfs/volumes/5188f85f-498e449a-ff72-1cc1de080562/hpacucli # ./fix4esxi.sh

-sh: ./fix4esxi.sh: Permission denied
** This means that the .sh is not executable, confirmed by RW permissions only **

/vmfs/volumes/5188f85f-498e449a-ff72-1cc1de080562/hpacucli # ls -lah *.sh
-rw-------    1 root     root        1.2K Mar 11 19:09 fix4esxi.sh
-rw-------    1 root     root         899 Mar 11 19:08 mklocks.sh

** Mark all .sh files as executable **
/vmfs/volumes/5188f85f-498e449a-ff72-1cc1de080562/hpacucli # chmod +x *.sh

** Run 'executable' script to patch ESXi environment **
/vmfs/volumes/5188f85f-498e449a-ff72-1cc1de080562/hpacucli # ./fix4esxi.sh

        This is a script to patch the Linux version of hpacucli to work in VMware ESXi
        You need to run this only ONCE after the files have been copied to the datastore
        See http://www.v-front.de/2012/03/how-to-run-hp-online-acu-cli-for-linux.html

        Patching hpacucli and hpacuscripting scripts ...
        Fixing permissions of executables ...

        All done.

# Run HPACUCLI
/vmfs/volumes/5188f85f-498e449a-ff72-1cc1de080562/hpacucli # ./hpacucli
./hpacucli: line 9: /vmfs/volumes/4x600GB: not found
./hpacucli: line 15: /vmfs/volumes/4x600GB: not found

** This error indicates it cannot resolve the pseudo-path, so navigate to the full ACTUAL path and run again **
/vmfs/volumes/5188f85f-498e449a-ff72-1cc1de080562/hpacucli # cd /vmfs/volumes/5188f85f-498e449a-ff72-1cc1de080562/hpacucli
/vmfs/volumes/5188f85f-498e449a-ff72-1cc1de080562/hpacucli # ./hpacucli

        HP Array Configuration Utility CLI 8.75-12.0
        Detecting Controllers...Done.
        Type "help" for a list of supported commands.
        Type "exit" to close the console.
         
** Show current controller config **
=> controller all show config

        Smart Array P410i in Slot 0 (Embedded)    (sn: 5001438009129C50)

           array A (SAS, Unused Space: 0 MB)
              logicaldrive 1 (273.4 GB, RAID 5, OK)
                physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 146 GB, OK)
                physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 146 GB, OK)
                physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 146 GB, OK)

           array B (SAS, Unused Space: 0 MB)
              logicaldrive 2 (1.6 TB, RAID 5, OK)
                physicaldrive 2I:1:5 (port 2I:box 1:bay 5, SAS, 600 GB, OK)
                physicaldrive 2I:1:6 (port 2I:box 1:bay 6, SAS, 600 GB, OK)
                physicaldrive 2I:1:7 (port 2I:box 1:bay 7, SAS, 600 GB, OK)
                physicaldrive 2I:1:8 (port 2I:box 1:bay 8, SAS, 600 GB, OK)

           ** Voila, our new spare drive **
              unassigned
                physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SAS, 600 GB, OK)
        
           SEP (Vendor ID PMCSIERA, Model  SRC 8x6G) 250 (WWID: 5001438009129C5F)

** Add the spare drive(s) to the array **
=> controller slot=0 array B add drives=allunassigned  
        
        ** You can add specific disks if needed **
        => controller slot=0 array B add drives=1:4 
                or
        => ctrl slot=0 logicaldrive 2 add drives=1:4

** Check the updated config **
=> controller all show config 

        Smart Array P410i in Slot 0 (Embedded)    (sn: 5001438009129C50)
           array A (SAS, Unused Space: 0 MB)
              logicaldrive 1 (273.4 GB, RAID 5, OK)
                physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 146 GB, OK)
                physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 146 GB, OK)
                physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 146 GB, OK)

           array B (SAS, Unused Space: 715369 MB)
              logicaldrive 2 (1.6 TB, RAID 5, Transforming, 0% complete)
                physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SAS, 600 GB, OK)
                physicaldrive 2I:1:5 (port 2I:box 1:bay 5, SAS, 600 GB, OK)
                physicaldrive 2I:1:6 (port 2I:box 1:bay 6, SAS, 600 GB, OK)
                physicaldrive 2I:1:7 (port 2I:box 1:bay 7, SAS, 600 GB, OK)
                physicaldrive 2I:1:8 (port 2I:box 1:bay 8, SAS, 600 GB, OK)

          SEP (Vendor ID PMCSIERA, Model  SRC 8x6G) 250 (WWID: 5001438009129C5F)

          ** Once a transform is complete and the disk is in the RAID, expand the volume **
          => ctrl slot=0 ld 2 modify size=max

SGNLS.net © 2006-2017

Comments, submissions and errors to desk[at]sgnls.net.

Material and content adheres to the Creative Commons (NC-SA 4.0) license.

v12.01151