Commit 2affe724 by Thom Cherryhomes

Refs #2773 - Make create scripts explicitly set mountpoint to legacy upon create.

1 parent e009bdac
Pipeline #667 passed
in 12 seconds
......@@ -55,13 +55,10 @@ if [[ "$3" != "demonized" ]] ;then
for d in $ActiveDrives; do parted -a optimal -s $d mklabel gpt; done
Log "Using zpool to actually create the pool"
zpool create "$name" mirror $ActiveDrives
zpool create -m legacy "$name" mirror $ActiveDrives
zpool_err="$?"
Log "Process 'zpool create $name $ActiveDrives' exited with error $zpool_err"
Log "Setting mount point to legacy for PlutoStorageDevices"
zfs set mountpoint=legacy "$name"
sleep 3
# Update Raid Information
......
......@@ -56,13 +56,10 @@ if [[ "$3" != "demonized" ]] ;then
for d in $ActiveDrives; do parted -a optimal -s $d mklabel gpt; done
Log "Using zpool to actually create the pool"
zpool create "$name" $ActiveDrives
zpool create -m legacy "$name" $ActiveDrives
zpool_err="$?"
Log "Process 'zpool create $name $ActiveDrives' exited with error $zpool_err"
Log "Setting mount point to legacy for PlutoStorageDevices"
zfs set mountpoint=legacy "$name"
sleep 3
# Update Raid Information
......
......@@ -55,13 +55,10 @@ if [[ "$3" != "demonized" ]] ;then
for d in $ActiveDrives; do parted -a optimal -s $d mklabel gpt; done
Log "Using zpool to actually create the pool"
zpool create "$name" raidz1 $ActiveDrives
zpool create -m legacy "$name" raidz1 $ActiveDrives
zpool_err="$?"
Log "Process 'zpool create $name $ActiveDrives' exited with error $zpool_err"
Log "Setting mount point to legacy for PlutoStorageDevices"
zfs set mountpoint=legacy "$name"
sleep 3
# Update Raid Information
......
......@@ -55,13 +55,10 @@ if [[ "$3" != "demonized" ]] ;then
for d in $ActiveDrives; do parted -a optimal -s $d mklabel gpt; done
Log "Using zpool to actually create the pool"
zpool create "$name" raidz2 $ActiveDrives
zpool create -m legacy "$name" raidz2 $ActiveDrives
zpool_err="$?"
Log "Process 'zpool create $name $ActiveDrives' exited with error $zpool_err"
Log "Setting mount point to legacy for PlutoStorageDevices"
zfs set mountpoint=legacy "$name"
sleep 3
# Update Raid Information
......
......@@ -55,13 +55,10 @@ if [[ "$3" != "demonized" ]] ;then
for d in $ActiveDrives; do parted -a optimal -s $d mklabel gpt; done
Log "Using zpool to actually create the pool"
zpool create $name raidz3 $ActiveDrives
zpool create -m legacy $name raidz3 $ActiveDrives
zpool_err="$?"
Log "Process 'zpool create "$name" $ActiveDrives' exited with error $zpool_err"
Log "Setting mount point to legacy for PlutoStorageDevices"
zfs set mountpoint=legacy "$name"
sleep 3
# Update Raid Information
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!