Created
February 13, 2021 07:52
-
-
Save AkashRajvanshi/4a1dc31396ff9d93b0a7758693de9b18 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# List disk devices with lsblk | |
# Select a device to add | |
# create partions | |
$ fdisk /dev/sdb | |
# format device | |
$ mkfs.ext4 /dev/sdb1 | |
# Create a physical group | |
$ pvcreate /dev/sdb1 | |
# Create logical group | |
$ vgcreate vSSD /dev/sdb1 | |
# TO add DataCenter -> Storage -> Add -> LVM | |
--- | |
# To add as a dir | |
# After formatting mount the some dir | |
$ mkdir /backup | |
$ mount /dev/sdb1 /backup | |
$ vim /etc/fstab | |
/dev/sdb1/ /backup ext4 defaults 0 0 | |
# To add Datacenter -> Storage -> Add -> Directory |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment