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 ...
    • Leading Practice for VM and Docker Storage Location on Nodegrid

      Running virtual machines or Docker containers on Nodegrid using the main OS disk can be problematic if the virtual machines or containers will be making many writes to the disk. A busy VM or container can significantly degrade the lifespan of the ...
    • 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 ...
    • 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 ...