diff --git a/CC13.x/storage/DISK_LVM_Cheat_Sheet.md b/CC13.x/storage/DISK_LVM_Cheat_Sheet.md new file mode 100644 index 0000000..842e10b --- /dev/null +++ b/CC13.x/storage/DISK_LVM_Cheat_Sheet.md @@ -0,0 +1,42 @@ +## Cheat sheet with DISK and LVM commands to execute on node +#### Tested on Redhat 7.6 ES +1) Below commands provides info about SCSI devices on the node +``` +lsscsi +lsscsi -s << Disk size +lsscsi -Ht << Disk type +lsscsi -g +``` +2) Basic DISK partitions utility commands +``` +sudo fdisk -l << Basic command to check partitions on a disk +sudo sfdisk -l -uM +sudo parted -l +df -h << Mounted file system +df -T +df -hT +lsblk << Lists all storage blocks, includes disk partitions +blkid << Prints block device attributes UUID, FS type etc. +``` +3) Check the root disk on host +``` +cat /proc/cmdline | grep root +Check the UUID using the command blkid to which device its mapped +``` +4) LVM commands +During CC13 deployment of controller which are installed as VM's, admin +has option to create LVM's out of the logical disks to provide enough storage +for the controller VMs, below commands can be useful. +``` +###Directories +/etc/lvm +/etc/lvm/backup +/etc/lvm/archive +``` + + +## Reference +[lsscsi command List](http://sg.danny.cz/scsi/lsscsi.html) + +[Hard Disk Commands](https://www.binarytides.com/linux-command-check-disk-partitions/) + diff --git a/CC13.x/validate_fabric/install_pkgs.sh b/CC13.x/validate_fabric/install_pkgs.sh index e060e7e..fa4f048 100644 --- a/CC13.x/validate_fabric/install_pkgs.sh +++ b/CC13.x/validate_fabric/install_pkgs.sh @@ -31,6 +31,7 @@ install_pkgs() { yum install bridge-utils -y curl https://bootstrap.pypa.io/get-pip.py | python pip install os-net-config + sudo /usr/share/openvswitch/scripts/ovs-ctl start else echo "Installing pkgs on RedHat" check_args @@ -45,6 +46,7 @@ install_pkgs() { yum install -y python-pip pip install os-net-config yum install bridge-utils -y + sudo /usr/share/openvswitch/scripts/ovs-ctl start fi }