on them, I use the following:
#!/bin/sh
for i in $(multipath -ll | grep sd | awk '{print $3}')
do
# create a label first
parted /dev/$i --script -- mklabel msdos
# create partition take whole disk
parted /dev/$i --script -- mkpart primary 0 -1
# set type lvm
parted /dev/$i --script -- set 1 lvm on
parted /dev/$i --script print
done
WARNING: THIS CAN WIPE OUT YOUR LOCAL DISK PARTITIONS!
this is for a new system (all disks have no data) and the
local storage is on a H/W raid (/dev/c0dX).
hth.
0 comments:
Post a Comment