-
-
Notifications
You must be signed in to change notification settings - Fork 665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/mnt/ncdata not mounted after reboot #769
Comments
PS: /dev/sdb - which shall be DATA drive - is an iSCSI drive on my NAS PPS: when mounting a second virtual disk (the "traditional" way) it works fine. Even if the host points that virtual disk to an iSCSI-LUN. So maybe the problem is that iSCSI-service is not ready when ZFS tries to mount it's pool or something like that. So I think it's not really an issue of the Nextcloud-VM-script. |
Thanks for your report.
Well, there I think you have the issue - your iSCSI setup. Can you please confirm that it's the same behaviour if you not mount iSCSI and just run it plain as intended? The scripts are not designed to cover all scenarios, but it should be possible to mount iSCSI if done right, never tested though. On my servers I run a NFS mount and I never had any issues with that. |
Just tested here on the latest version and there are no issues across reboots. What the script does is basically:
The rest is just a bunch of checks and preconditions. So I belive this "bug" is one of two things.
Closing since it works as expected. Please reopen if you think I'm wrong. |
Hi @nasi87 So, it seems you are right after all. ZFS can be a bit buggy, as I noticed in Ubuntu 20.04. Sorry for not really believing you the last time. In an effort to trying to fix it, I've been working on this the past day: https://github.com/nextcloud/vm/blob/master/static/change-to-zfs-mount-generator.sh Do you still have issues? If yes, how did you solve it? Also, please try the script, please remember to make a snapshot first. Thanks! |
Related: #1204 |
Thanks for your feedback. So unfortunately I did not change anything ZFS-related. |
Steps to reproduce
Expected behaviour
after reboot proceed with nextcloud-startup-script.sh
Actual behaviour
nextcloud-startup-script.sh aborts because of missing /mnt/ncdata
ncadmin@nextcloud:~$ zpool list
no pools available
temporary workaround:
root@nextcloud:~# zpool import ncdata
but it doesn't survive next reboot
Server configuration
Nextcloud server version: none
Server OS Ubuntu 18.04.1 server amd64
How did you install the VM? (Scripted install from master OR Released version)
script from master
Network
Do you use DHCP?
yes
Is port 80 and/or 443 open?
not yet, but afaik not necessary
Logs / Screenshots
will provide if needed
Log file (/mnt/ncdata/nextcloud.log)
Installation log (command output)
Screenshoots
The text was updated successfully, but these errors were encountered: