Add another disk to your Master Server



This article covers the steps to add another disk to your Enterprise Recon Master Server.

Before attempting this, make sure you've performed a backup or taken a VM snapshot.

Login to the Master Server console as root and follow the instructions/commands below.

WARNING: If you are a customer who has Enterprise Recon installed via .RPM package instead of our Appliance image (.ISO), the instructions below are not intended for you.
Please seek our assistance by emailing us at instead.


Instructions (for VMs)

The following instructions are for Enterprise Recon deployed in a Virtual Machine.
If you've installed Enterprise Recon on a bare-bones physical server, please refer to the next section of this article.

  1. Perform a graceful shutdown
    #/etc/init.d/er2-master stop
    #shutdown -h now
  2. Expand your virtual hard disk from your VM manager
  3. Boot up Enterprise Recon, login as root
  4. Resize the disk partition (of /dev/sda)
    # /etc/init.d/er2-master stop
    # echo -e "p\nd\n2\nn\np\n2\n\n\nt\n2\n8e\np\nw\n" | fdisk -c -u /dev/sda
    # reboot
  5. After the reboot, login as root and verify that /dev/sda2 takes up all available space
    #lsblk /dev/sda
  6. Increase the LVM physical volume to use all available free space
    #pvresize -v /dev/sda2
  7. You may verify using the commands:
  8. Verify that the new extents are after the swap partition on LogVol01
    #pvs --segments -o+lv_name,seg_start_pe
  9. Resize the root volume LogVol00 to make use of the free extents that were added after LogVol01
    #lvextend -l 100%VG /dev/VolGroup00/LogVol00
    #lvdisplay /dev/VolGroup00/LogVol00
    #lsblk /dev/sda
  10. We also need to make sure to increase the encrypted volume size
    #ls -1 /dev/mapper/ | grep 'luks-' | xargs cryptsetup -v status
    #ls -1 /dev/mapper/ | grep 'luks-' | xargs cryptsetup -v resize
    #ls -1 /dev/mapper/ | grep 'luks-' | xargs cryptsetup -v status
  11. Increase the size of the root partition
    #echo "/dev/mapper/$(ls -1 /dev/mapper/ | grep 'luks-')" | xargs tune2fs -l | grep "\(Block count\)\|\(Block size\)"
    #echo "/dev/mapper/$(ls -1 /dev/mapper/ | grep 'luks-')" | xargs resize2fs -p
    #/etc/init.d/er2-master start
  12. Done


Instructions (for physical Master Server)

The following instructions are for Enterprise Recon deployed in a physical server.

  1. Verify current hard disks, take a screenshot of the output (or note down all device names)
    #lsblk -o KNAME,TYPE,SIZE,MODEL | grep disk
  2. Perform a graceful shutdown
    #/etc/init.d/er2-master stop
    #shutdown -h now
  3. Add your additional hard disk
  4. Boot up Enterprise Recon, login as root
  5. Stop the Enterprise Recon service
    #/etc/init.d/er2-master stop
  6. Verify added hard disk/s, typically the last entries (refer to step 1)
    #lsblk -o KNAME,TYPE,SIZE,MODEL | grep disk

    If unsure, enter the command:

    This lists the disks currently in-use, your newly added disk should not be listed
  7. Assign new volume to added hard disks
    #pvcreate /dev/<NEW DRIVE LABEL>

    (eg. pvcreate/dev/sdb)
    #vgextend VolGroup00 /dev/<SAME LABEL>
    #lvextend -l +100%FREE /dev/VolGroup00/LogVol00
  8. After reboot, login as root again then enter command:
    #resize2fs /dev/dm-2
    #df / -h
    #/etc/init.d/er2-master start
  9. Done




All information in this article is accurate and true as of the last edited date.

0 out of 0 found this helpful



Please sign in to leave a comment.