lv
This commit is contained in:
parent
d969810396
commit
969734c4cd
1 changed files with 4 additions and 4 deletions
|
@ -250,6 +250,10 @@ function hetzner-rescue-wipe-12-10-10 {
|
||||||
pvcreate '/dev/mapper/crypt'
|
pvcreate '/dev/mapper/crypt'
|
||||||
# vg
|
# vg
|
||||||
vgcreate 'crypt' '/dev/mapper/crypt'
|
vgcreate 'crypt' '/dev/mapper/crypt'
|
||||||
|
# lv swap
|
||||||
|
lvcreate --name 'swap' --size '68719476736b' 'crypt'
|
||||||
|
# lv data
|
||||||
|
lvcreate --name 'data' --extents '100%FREE' 'crypt'
|
||||||
####
|
####
|
||||||
# vg off
|
# vg off
|
||||||
vgchange --activate n 'crypt'
|
vgchange --activate n 'crypt'
|
||||||
|
@ -258,10 +262,6 @@ function hetzner-rescue-wipe-12-10-10 {
|
||||||
}
|
}
|
||||||
|
|
||||||
function hetzner-rescue-wipe-12-10-10-extra {
|
function hetzner-rescue-wipe-12-10-10-extra {
|
||||||
# lv swap
|
|
||||||
lvcreate --name 'swap' --size '68719476736b' 'crypt'
|
|
||||||
# lv data
|
|
||||||
lvcreate --name 'data' --extents '100%FREE' 'crypt'
|
|
||||||
# format swap
|
# format swap
|
||||||
mkswap --label 'swap' '/dev/mapper/crypt-swap'
|
mkswap --label 'swap' '/dev/mapper/crypt-swap'
|
||||||
# format data
|
# format data
|
||||||
|
|
Loading…
Reference in a new issue