5.10.2 Create SDB on KVM
Note:
This procedure only applies for KVM that has iDIH database.- Log in to the KVM as root.
- Check partitions and disk space.Run
lsblk
command.Note:
In case that SDA has no free space to add a new device, it is recommended re-install KVM as detailed in Install KVM.sda = 1TG
sda2 = 850.3G
home = 800G
The above values depend on environment where IDIH is installed. Customer's machine might have greater or lesser memory, adjust these accordingly.
- Create SDB.Run
fdisk
and enter options as shown bellow:[root@mxtolm01dra01s05kvm03 ~]# fdisk /dev/sda Welcome to fdisk (util-linux 2.23.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): n Partition type: p primary (2 primary, 0 extended, 2 free) e extended Select (default p): p Partition number (3,4, default 3): 3 First sector (1785249792-2341795839, default 1785249792): (press enter) Using default value 1785249792 Last sector, +sectors or +size{K,M,G} (1785249792-2341795839, default 2341795839): +100G Partition 3 of type Linux and of size 100 GiB is set
- Verify SDB was created. Then, save and reboot.
Command (m for help): p Disk /dev/sda: 1199.0 GB, 1198999470080 bytes, 2341795840 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0x000d0c0e Device Boot Start End Blocks Id System /dev/sda1* 2048 2099199 1048576 83 Linux /dev/sda2 2099200 1785249791 891575296 8e Linux LVM /dev/sdb 1785249792 1994964991 104857600 83 Linux Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. WARNING: Re-reading the partition table failed with error 16: Device or resource busy. The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8) Syncing disks. [root@mxtolm01dra01s05kvm03 ~]# partprobe