Skip to content
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

Closed
nasi87 opened this issue Jan 19, 2019 · 6 comments
Closed

/mnt/ncdata not mounted after reboot #769

nasi87 opened this issue Jan 19, 2019 · 6 comments

Comments

@nasi87
Copy link

nasi87 commented Jan 19, 2019

Steps to reproduce

  1. install clean Ubuntu
  2. sudo bash -c "$(wget -q -O - https://raw.githubusercontent.com/nextcloud/vm/master/nextcloud_install_production.sh)"
  3. reboot (automatic at end of script)

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)

Insert your nextcloud.log file here

Installation log (command output)

Insert the CLI output here

Screenshoots

@nasi87
Copy link
Author

nasi87 commented Jan 19, 2019

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.

@enoch85
Copy link
Member

enoch85 commented Jan 20, 2019

Thanks for your report.

PS: /dev/sdb - which shall be DATA drive - is an iSCSI drive on my NAS

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.

@enoch85
Copy link
Member

enoch85 commented Jan 20, 2019

Just tested here on the latest version and there are no issues across reboots.

What the script does is basically:

  1. Unmount if mounted (/dev/sdb)
  2. Formats and mounts it as ZFS as with any other drive, but in this case it's ZFS specific.

The rest is just a bunch of checks and preconditions.

So I belive this "bug" is one of two things.

  1. A faulty iSCSI setup
  2. A bug with the ZFS packages in Ubuntu.

Closing since it works as expected. Please reopen if you think I'm wrong.

@enoch85 enoch85 closed this as completed Jan 20, 2019
@enoch85
Copy link
Member

enoch85 commented May 1, 2020

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!

@enoch85
Copy link
Member

enoch85 commented May 1, 2020

Related: #1204

@nasi87
Copy link
Author

nasi87 commented May 2, 2020

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.

Thanks for your feedback.
And no worry, I thought it was iSCSI-related too. So I did change the way how to mount this iSCSI-LUN. Instead of mounting it in Nextcloud-VM directly it is now mounted by my Proxmox-host which then mounts it as a virtual disk. So Nextcloud-VM sees a normal virtual disk as usual.

So unfortunately I did not change anything ZFS-related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants