Correction bug sur resize
This commit is contained in:
parent
0bc84e3643
commit
ea3725c524
1 changed files with 2 additions and 2 deletions
|
@ -32,8 +32,8 @@
|
|||
pv=$(pvdisplay -C -o pv_name -S vg_name=$vg | tail -n -1 | awk '{ print $1 }')
|
||||
echo "$vg est dans le PV $pv"
|
||||
|
||||
cryptsetup isLuks $pv
|
||||
if [ $? ]
|
||||
lsblk -pP $pv | grep $pv | grep 'TYPE="crypt"'
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
echo "$pv est chiffre, agrandissement du disque chiffre"
|
||||
cryptsetup resize $pv
|
||||
|
|
Loading…
Reference in a new issue