Data Disk Expansion

This document describes how to add new virtual disks (hard disks) on your IBM Spectrum Protect Plus virtual machine through vCenter. By default, when you deploy the IBM Spectrum Protect Plus virtual appliance you have the option to deploy all virtual disks to one datastore that you specify at the time of deployment. These instructions will guide you through adding a new disk within the virtual machine and to configure it as an LVM. You can then mount it as a new volume or attach this new disk to the existing volumes within the virtual appliance.

In order to run the commands below you need to SSH into the IBM Spectrum Protect Plus appliance’s command prompt as serveradmin. The default initial password is “sppDP758” and you will be prompted to change the password at the first login.

Review the disk partitions using the fdisk -l command, then review the physical volumes and the volume groups on the IBM Spectrum Protect Plus virtual appliance using the pvdisplay and vgdisplay commands respectively.

Add a disk to the IBM Spectrum Protect Plus virtual machine:

  1. From the vCenter client, edit the settings of the IBM Spectrum Protect Plus virtual machine.
  2. On the Hardware tab, click Add...
  3. Select Create a new virtual disk.
  4. Select the required Disk Size. In the Location section, select either:
  5. Store with the virtual machine to use the current datastore, or
  6. Specify a datastore or datastore cluster, then click Browse... to select the new datstores where you want the virtual disk to reside.
  7. Leave the default values in the Advanced Options tab.
  8. Review and save your changes.
  9. Click the Edit Settings option for the virtual machine to view the new hard disk.
  10. Add the new SCSI device without rebooting the virtual machine. This can be performed by going back to the console of the IBM Spectrum Protect Plus virtual machine and running the following command: echo "- - -" > /sys/class/scsi_host/host<#>/scan, where # is the latest host number.

Add the storage capacity from the new disk to an existing IBM Spectrum Protect Plus volume:

This section will guide you through adding storage capacity from the new disk to an existing IBM Spectrum Protect Plus volume. For users that are simply adding an additional volume to their appliance, this section does not need to be completed. First, set up the filesystem for the new disk to be LVM type.

  1. Follow the commands below on the console. The commands set up a partition for the new disk and set the partition to be of type Linux LVM. The output of fdisk shows you the same.

[serveradmin@localhost ~]# fdisk /dev/sdd

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel

Building a new DOS disklabel with disk identifier 0xb1b293df.

Changes will remain in memory only, until you decide to write them.

After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to

switch off the mode (command 'c') and change display units to

sectors (command 'u').


Command (m for help): n (add a new partition)

Command action

e extended

p primary partition (1-4)


p [Selects the primary partition]


Partition number (1-4): 1


First cylinder (1-2610, default 1):(Leave blank)

Using default value 1


Last cylinder, +cylinders or +size{K,M,G} (1-2610, default 2610):(Leave blank)

Using default value 2610


Command (m for help): t (change a partition's system id)

Selected partition 1


Hex code (type L to list codes): 8e

Changed system type of partition 1 to 8e (Linux LVM)


Command (m for help): w (write table to disk and exit)

The partition table has been altered!


Calling ioctl() to re-read partition table.

Syncing disks.

  1. Review the changes to the disk through the fdisk -1 command.
  2. Review the current list of Physical Volumes (PV) through the pvdisplay command.
  3. Create a new Physical Volume (PV) through the following command: pvcreate /dev/sdd1
  4. You can view the newly created PV from /dev/sdd1 through the pvdisplay command.
  5. Review the Volume Group (VG) through the vgdisplay command.
  6. Add the new Physical Volume (PV) to the Volume Group (VG) to increase the space of the Volume Group (VG) through the following command: vgextend data_vg /dev/sdd1
  7. Through the vgdisplay command, you can see that after the Volume Group (VG) data_vg is extended, there is now free space available for logical volumes (or /data volume) to use.
  8. Review the Logical Volume (LV) /data directory through the lvdisplay command. The usage of the /data volume displays.
  9. Add space to the Logical Volume (LV) /data directory through the lvextend command by adding the additional space to the total volume capacity. In this example 20 GB of space is being added to a 100 GB volume:

[serveradmin@localhost ~]# lvextend -L120gb -r /dev/data_vg/data

Size of logical volume data_vg/data changed from 100.00 GiB to 120.00 GiB.

Logical volume data successfully resized

resize2fs 1.41.12 (date)

Filesystem at /dev/mapper/data_vg-data is mounted on /data; on-line resizing required

old desc_blocks = 7, new_desc_blocks = 8

Performing an on-line resize of /dev/mapper/data_vg-data to 31195136 (4k) blocks.

The filesystem on /dev/mapper/data_vg-data is now 31195136 blocks long.

  1. After running the above, the size of the /data volume displays as the following:

[serveradmin@localhost ~]# lvdisplay

--- Logical volume ---

LV Path: /dev/data_vg/data

LV Name: data

VG Name: data_vg

LV UUID: [uuid]

LV Write Access: read/write

LV Creation host, time localhost.localdomain, [date, time]

LV Status: available

# open: 1

LV Size: 120.00 GiB

Current LE: 30208

Segments : 2

Allocation inherit

Read ahead sectors: auto

- currently set to: 256

Block device: 253:1


[serveradmin@localhost ~]# df -h

Filesystem Size Used Avail Use% Mounted on

/dev/sda3 14G 2.6G 11G 20% /

tmpfs 16G 0 16G 0% /dev/shm

/dev/sda1 240M 40M 188M 18% /boot

/dev/mapper/data_vg-data

118G 6.4G 104G 6% /data

/dev/mapper/data2_vg-data2

246G 428M 234G 1% /data2

The data disks have quotas in place to ensure disks are not filled to capacity. When a data disk is expanded, set a new disk quota hard limit, which is generally 90% of the total capacity. Through the edquota –u mongod command, change the values under “blocks hard” to your desired quota.

 


IBM Spectrum Protect Plus 10.1.2

Licensed Material - Property of IBM Corp. © IBM Corporation and other(s) 2018. IBM is a registered trademark of the IBM Corporation in the United States, other countries, or both. | 8/23/2018