Skip to content

Commit

Permalink
Adding storage stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
urao committed Mar 11, 2019
1 parent 1581d8b commit 1184a7e
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
42 changes: 42 additions & 0 deletions CC13.x/storage/DISK_LVM_Cheat_Sheet.md
Original file line number Diff line number Diff line change
@@ -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/)

2 changes: 2 additions & 0 deletions CC13.x/validate_fabric/install_pkgs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}

Expand Down

0 comments on commit 1184a7e

Please sign in to comment.