How to format, partition and mount additional hard disk expansion to the Nodegrid OS

How to format, partition and mount additional hard disk expansion to the Nodegrid OS

Overview

With the exception of the NSR, additional hard drive expansion disks need to be formatted, partitioned, and mounted to the Nodegrid OS. Below here are the steps required to add expansion hard disk drives to GSR, HSR, BSR platforms.

#

Command CLI

Description & Example

1

lsblk -l

List block devices, lists information about all available or the specified block devices.  List the partition tables
Helps IDENTIFY your filesystem (USB)

sdb1    8:17   1 460.3G  0 part /var/lib/libvirt/images

2

lsblk -f

Same as above, shows the files system type:

Note ext4
sdb

`-sdb1 ext4                   467b6668-77bd-46d8-8310-196b8766b4ea    429G     0% /var/lib/libvirt

3

mount -l | grep sd

Displays if /dev/sdb1 is mounted

4

umount /dev/sdb1

Unmounts /dev/sdb1

5

fdisk /dev/sdb

d

p

n, Primary (take defaults)

w

Partition utility

Deletes existing partition if any.

Print

New partition (1) if only one partition needed.

Write

6

fdisk -l

List the partition tables
Note:

/dev/sdb1

7

mkfs.ext4 /dev/sdb1

Formats partition

8

fdisk -l

verify /dev/sdb1

9

lsblk -l

Same

10

lsblk -f

check if ext4

11

mkdir /tmp/mnt

make a temp directory                       (test mount directory)

12

mount /dev/sdb1 /tmp/mnt

Mount /dev/sdb1 to /tmp/mnt        (test mount)

13

vi /tmp/mnt/test.txt

i-insert then type “your text”            (test file)

ESC :wq!   saves the file

14

umount /dev/sdb1

Unmounts /dev/sdb1                        (umounts test)

15

mount /dev/sdb1 /var/lib/libvirt/images

mount /dev/sdb1 /var/lib/libvirt/images

16

more /var/lib/libvirt/images/test.txt

checks if “your text” was saved and now can be seen on images

17

vi /etc/fstab

Type i                     # To insert
/dev/
sdb1 /var/lib/libvirt/images ext4 defaults 0 1

ESC :wq!   saves the file and mounts device upon reboot




    • Related Articles

    • Nodegrid OS Upgrade Path

      Due to the increased size of newer Nodegrid OS images, it is important to go through an intermediate version if upgrading from an older, smaller version. The intermediate versions that increase the boot partition size to meet these newer requirements ...
    • Nodegrid Manager Installation in ESXi 5

      Nodegrid Manager software is installed from an ISO file. The installation procedure is a three-stage process:  Creating a virtual machine; Booting from the ISO file in order to install the software; Restarting and booting from the newly created ...
    • Nodegrid Manager Installation in ESXi 6

      Nodegrid Manager software is installed from an ISO file. The installation procedure is a three-stage process:  Creating a virtual machine; Booting from the ISO file in order to install the software; Restarting and booting from the newly created ...
    • How to increase the partition size of a Nodegrid appliance running NG v4.1.7 or newer, NG v4.2.5 or newer, or NG v5.0.x

      It is possible to upgrade to some versions of Nodegrid OS without going through the recommended intermediate versions of NG v4.1.6 or v4.2.4. This article applies to systems running the following versions: NG v4.1.7 or newer NG v4.2.5 or newer NG ...
    • Customize docker data-root from Nodegrid UI

      In Nodegrid 6.0 or greater, you can customize the docker data-root from the Web UI. You can specify which disk partition to move the docker data-root. Any mounted and formatted disk partition can be used. The location will be created as /docker. If ...