Resizing and Mounting a Device for Installation
The following instructions enable you to change the size of the given storage device and mount it properly, prior to installing Sisense on Linux. The instructions are for Ubuntu (e.g., v20) and may need to be modified for your Linux.
To resize and mount a device:
-
Lists information about all available devices.
sudo lsblkExample response:
Note:
- There is only one disk, and the partition is set to only 15G for the standard Cloudshare template.
- There is no mount at this point.
-
Open the Parted command line tool.
sudo parted -
Run the
print
command to show the size of the disks.
printDisk 3 needs to be resized.
-
Resize disk 3 to 300 GB.
resizepart 3 300GB -
Check that the disk has been resized properly.
print -
Exit Parted.
quitNote:
You may need to update /etc/fstab.
-
Confirm that the resizing worked successfully.
sudo lsblkExample response:
Note:
The SDA 3 device still needs to be resized.
-
Display the physical volume.
sudo pvdisplay -
Resize the specific sda (in this case sda3).
sudo pvresize /dev/sda3 -
Confirm that it has been resized to 300GB.
sudo pvdisplay -
Extend the logical volume.
sudo lvextend -L +150G ubuntu-vg/ubuntu-lv
Example response: -
Resize the filesystem.
sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv -
Confirm that sda3 resized correctly.
sudo lsblk
Example response: -
Create the logical volume.
sudo lvcreate -n sisense ubuntu-vg -L 110G -
DIsplay the logical volume.
sudo lvdisplay -
Format the logical volume that was just created.
sudo mkfs.xfs /dev/ubuntu-vg/sisense -
Confirm that the format completed successfully.
sudo lsblk -
Create the
sisense
directory underopt
.
sudo mkdir -p /opt/sisense
-
Add the entry to the
/etc/fstab
file.
cat /etc/fstab -
Edit the
/etc/fstab
file.
sudo nano /etc/fstab -
In the
/etc/fstab
file, insert the following line.
/dev/ubuntu-vg/sisense /opt/sisense xfs defaults 1 2 -
Save the the
/etc/fstab
file. -
Mount the drive.
sudo mount -a -
Confirm that the device is properly mounted and ready for installation.
df -h