modified azvolumes setup scripts to use parted instead of fdisk to allow
disks larger than 2TB
This commit is contained in:
Родитель
a56de00136
Коммит
2dc2b346cb
|
@ -30,19 +30,9 @@ setup_storage_disks()
|
|||
|
||||
for disk in $Disks; do
|
||||
#disk=`readlink -f /dev/disk/azure/scsi1/lun$lun`
|
||||
fdisk -l $disk || break
|
||||
fdisk $disk << EOF
|
||||
n
|
||||
p
|
||||
1
|
||||
|
||||
|
||||
t
|
||||
fd
|
||||
w
|
||||
EOF
|
||||
parted -s $disk -- mklabel gpt
|
||||
parted -s $disk -- mkpart primary 0% 100%
|
||||
createdPartitions="$createdPartitions ${disk}p1"
|
||||
|
||||
done
|
||||
sleep 10
|
||||
mkdir -p $mountPoint
|
||||
|
|
|
@ -21,17 +21,8 @@ setup_storage_disks()
|
|||
|
||||
for lun in $LUNS; do
|
||||
disk=`readlink -f /dev/disk/azure/scsi1/lun$lun`
|
||||
fdisk -l $disk || break
|
||||
fdisk $disk << EOF
|
||||
n
|
||||
p
|
||||
1
|
||||
|
||||
|
||||
t
|
||||
fd
|
||||
w
|
||||
EOF
|
||||
parted -s $disk -- mklabel gpt
|
||||
parted -s $disk -- mkpart primary 0% 100%
|
||||
createdPartitions="$createdPartitions ${disk}1"
|
||||
done
|
||||
sleep 10
|
||||
|
|
|
@ -30,17 +30,8 @@ setup_storage_disks()
|
|||
|
||||
for disk in $Disks; do
|
||||
#disk=`readlink -f /dev/disk/azure/scsi1/lun$lun`
|
||||
fdisk -l $disk || break
|
||||
fdisk $disk << EOF
|
||||
n
|
||||
p
|
||||
1
|
||||
|
||||
|
||||
t
|
||||
fd
|
||||
w
|
||||
EOF
|
||||
parted -s $disk -- mklabel gpt
|
||||
parted -s $disk -- mkpart primary 0% 100%
|
||||
createdPartitions="$createdPartitions ${disk}p1"
|
||||
|
||||
done
|
||||
|
|
Загрузка…
Ссылка в новой задаче