I have played around with my server now for quite a while.
I have 3 disks in my server. On disk 1 I installed Ubuntu Server 18.x. I set up the two other disks as a raid 1. Afterward I ran the nextcloud_install_production.sh script. Then I ran into an error here:
|
check_command zpool create -f -o ashift=12 "$LABEL_" "$DISKTYPE" |
I had a look into this file and found out that for this installation ZFS is used for the nextcloud data disk. I removed the label that the disks are part of a raid with these commands:
mdadm --stop /dev/md0
mdadm --zero-superblock /dev/sdd
Then I started over again. This time the installation was good and the disk was formated with ZFS. Unfortunatley I made an other mistake, so I wanted to start over again.
I installed Ubuntu Server on disk 1 and ran the script. I ran into an issue caused by the same line like mentioned above.
The command complains, that the disk is already in use.
Now the command
lsblk -l -n grep -v mmcblk | grep disk
gives me this list:
sda 8:0 1 28,7G 0 disk
sdb 8:16 0 149,1G 0 disk
sdc 8:32 0 238,5G 0 disk
sdd 8:48 0 238,5G 0 disk
I am not sure, but the script wants to format sdb, than this would be a bad idea because my system is installed to sdb.
Would it be possible to change the script so that we show the user a list of disks that we can use and propose a disk but let the user decide which one to format?
I have played around with my server now for quite a while.
I have 3 disks in my server. On disk 1 I installed Ubuntu Server 18.x. I set up the two other disks as a raid 1. Afterward I ran the nextcloud_install_production.sh script. Then I ran into an error here:
vm/static/format-sdb.sh
Line 127 in 829d171
I had a look into this file and found out that for this installation ZFS is used for the nextcloud data disk. I removed the label that the disks are part of a raid with these commands:
Then I started over again. This time the installation was good and the disk was formated with ZFS. Unfortunatley I made an other mistake, so I wanted to start over again.
I installed Ubuntu Server on disk 1 and ran the script. I ran into an issue caused by the same line like mentioned above.
The command complains, that the disk is already in use.
Now the command
lsblk -l -n grep -v mmcblk | grep diskgives me this list:
I am not sure, but the script wants to format sdb, than this would be a bad idea because my system is installed to sdb.
Would it be possible to change the script so that we show the user a list of disks that we can use and propose a disk but let the user decide which one to format?