Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
-Device does not contain a recognized partition table.
-Created a new <removed>.
Command (m for help): Partition type
p primary (0 primary, 0 extended, 4 free)
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
-Device does not contain a recognized partition table.
-Created a new <removed>.
Command (m for help): Partition type
p primary (0 primary, 0 extended, 4 free)
mdadm -q --create ${MD_DEVICE} --metadata=0.90 --chunk=64 --level=0 \
--raid-devices=2 ${DEVICE1} ${DEVICE2} >> $TS_OUTPUT 2>> $TS_ERRLOG
+# create dos partition table
+$TS_CMD_FDISK ${MD_DEVICE} &>/dev/null <<EOF
+o
+w
+q
+EOF
+
ts_log "Create partitions on RAID device"
$TS_CMD_FDISK ${MD_DEVICE} >> $TS_OUTPUT 2>> $TS_ERRLOG <<EOF
n
--raid-devices=2 ${DEVICE1} ${DEVICE2} >> $TS_OUTPUT 2>> $TS_ERRLOG
udevadm settle
+# create dos partition table
+$TS_CMD_FDISK ${MD_DEVICE} &>/dev/null <<EOF
+o
+w
+q
+EOF
+
ts_log "Create partitions on RAID device"
$TS_CMD_FDISK ${MD_DEVICE} >> $TS_OUTPUT 2>> $TS_ERRLOG <<EOF
n