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 }')
|
pv=$(pvdisplay -C -o pv_name -S vg_name=$vg | tail -n -1 | awk '{ print $1 }')
|
||||||
echo "$vg est dans le PV $pv"
|
echo "$vg est dans le PV $pv"
|
||||||
|
|
||||||
cryptsetup isLuks $pv
|
lsblk -pP $pv | grep $pv | grep 'TYPE="crypt"'
|
||||||
if [ $? ]
|
if [ $? -eq 0 ]
|
||||||
then
|
then
|
||||||
echo "$pv est chiffre, agrandissement du disque chiffre"
|
echo "$pv est chiffre, agrandissement du disque chiffre"
|
||||||
cryptsetup resize $pv
|
cryptsetup resize $pv
|
||||||
|
|
Loading…
Reference in a new issue