Test update.

This commit is contained in:
Suikan 2022-05-05 23:20:30 +09:00
parent 4699f87cc7
commit ed48590821
3 changed files with 40 additions and 16 deletions

11
script/test/trial.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
DISK=/dev/sdb
DISKSIZE=$(blockdev --report ${DISK} | awk /${DISK}/'{print $6}')
VOLSIZE=$(lvdisplay --units B /dev/vg_test/anko | awk '/Size/{print $3}')
echo $DISKSIZE
echo $VOLSIZE
echo "scale=3; $VOLSIZE/$DISKSIZE" | bc