j
k
j a
j l
copy_nfsroot_to_src_lv() { src_lv=$1 lvdisplay ${src_lv} > /dev/null || {
lvdisplay $src_lv && return
后面就不用缩进了
# create logical volume lvcreate -L 10G -n $(basename ${src_lv}) os || exit 1
# create logical volume
lvcreate -L 10G -n $(basename ${src_lv}) os || exit 1
exit 1 => exit
Thanks, Fengguang
Back to the thread
Back to the list