mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-30 05:02:54 +08:00
17 lines
315 B
Bash
17 lines
315 B
Bash
#!/bin/bash
|
|
|
|
# xxx TODO EDITME
|
|
target=/dev/sda4
|
|
|
|
pvcreate $target
|
|
vgcreate -A y pve $target
|
|
|
|
#lvcreate -L 100G -n data pve
|
|
lvcreate -A y --readahead auto \
|
|
--name data --extent 99%FREE pve
|
|
|
|
lvconvert --type thin-pool pve/data
|
|
|
|
(pvs; vgs; lvs) |tee >/root/lvminfo.txt
|
|
echo "Define storage in pve GUI as local-lvm"
|