This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Mistake: Mount ZFS to root folder

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
ERM-Consulting
NewUser
NewUser
Posts: 8
Joined: 16 Apr 2020 10:00
Status: Offline

Mistake: Mount ZFS to root folder

Post by ERM-Consulting »

Yes, very, very silly mistake:
Trying solving an issue on our BACKUP-ZFS-system I made a big mistake:
Umount ZFS dataset and later mount ZFS dataset but obvious to the wrong node. (I suspect I mounted it to "/" as everything stops immediately on mounting)

System could not answer any further request after the wrong mount: no Web-GUI anymore, no ssh login. Open putty session stops immediately too!
Booting the system stops when it access the zfs.

The system had been very stabil during the last 5 years, but now I cannot access the ZFS-datashare any more (NAS4FREE 10.2 - last uptime about 600 days).

The main issue as I understand is the mountpoint that is stored in the ZFS-dataset itself.
When I set up a new system (used XigmaNAS 12.1.9.4) I can access the server, the disks, can configure the virtual device BUT:
When importing the ZFS the system stops immediately

As the installation is on USB-Stick, I can start the configuration on a different PC and change any setting - BUT the mountpoint is in the ZFS-dataset and I cannot access the ZFS

Question:
  • Is there any chance to manipulate the ZFS when I start XigmaNAS WITHOUT ZFS and I do NOT import the ZFS?
  • Is there any option to change the mountpoint of the ZFS-dataset without "activating/mounting" the ZFS?
I tried to change the config.xml in the dataset section:
<canmount>NO</canmount>
But that does not stop the mounting

The mountpoint of the ZFS itself is ok: <mountpoint>/zDataBackup</mountpoint>
But the mountpoint of one of the datesets is wrong.

YES, I could destroy the ZFS as it is "only" our backup system but I wish to know if there is any option to solve the issue
(that is the way I learned most of my IT knowledge :( :) )

Many thanks for help in advance!
Heiko

User avatar
ms49434
Developer
Developer
Posts: 828
Joined: 03 Sep 2015 18:49
Location: Neuenkirchen-Vörden, Germany - GMT+1
Contact:
Status: Offline

Re: Mistake: Mount ZFS to root folder

Post by ms49434 »

ERM-Consulting wrote:
26 Apr 2020 12:41
Yes, very, very silly mistake:
Trying solving an issue on our BACKUP-ZFS-system I made a big mistake:
Umount ZFS dataset and later mount ZFS dataset but obvious to the wrong node. (I suspect I mounted it to "/" as everything stops immediately on mounting)

System could not answer any further request after the wrong mount: no Web-GUI anymore, no ssh login. Open putty session stops immediately too!
Booting the system stops when it access the zfs.

The system had been very stabil during the last 5 years, but now I cannot access the ZFS-datashare any more (NAS4FREE 10.2 - last uptime about 600 days).

The main issue as I understand is the mountpoint that is stored in the ZFS-dataset itself.
When I set up a new system (used XigmaNAS 12.1.9.4) I can access the server, the disks, can configure the virtual device BUT:
When importing the ZFS the system stops immediately

As the installation is on USB-Stick, I can start the configuration on a different PC and change any setting - BUT the mountpoint is in the ZFS-dataset and I cannot access the ZFS

Question:
  • Is there any chance to manipulate the ZFS when I start XigmaNAS WITHOUT ZFS and I do NOT import the ZFS?
  • Is there any option to change the mountpoint of the ZFS-dataset without "activating/mounting" the ZFS?
I tried to change the config.xml in the dataset section:
<canmount>NO</canmount>
But that does not stop the mounting

The mountpoint of the ZFS itself is ok: <mountpoint>/zDataBackup</mountpoint>
But the mountpoint of one of the datesets is wrong.

YES, I could destroy the ZFS as it is "only" our backup system but I wish to know if there is any option to solve the issue
(that is the way I learned most of my IT knowledge :( :) )

Many thanks for help in advance!
Heiko

Code: Select all

zpool import
will list all pools that can be imported.

Code: Select all

zpool import -N -a
will import all available pools but will not mount any filesystems.
more to read: zpool
1) XigmaNAS 12.1.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7U3, 22GB out of 32GB ECC RAM, LSI 9300-8i IT mode in passthrough mode. Pool 1: 2x HGST 10TB, mirrored, L2ARC: Samsung 850 Pro; Pool 2: 1x Samsung 860 EVO 1TB, SLOG: Samsung SM883, services: Samba AD, CIFS/SMB, ftp, ctld, rsync, syncthing, zfs snapshots.
2) XigmaNAS 12.1.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7U3, 8GB out of 32GB ECC RAM, IBM M1215 crossflashed, IT mode, passthrough mode, 2x HGST 10TB , services: rsync.

ERM-Consulting
NewUser
NewUser
Posts: 8
Joined: 16 Apr 2020 10:00
Status: Offline

Re: Mistake: Mount ZFS to root folder

Post by ERM-Consulting »

My very best thank to you!
Worked immediately!

And in deed: checking with zfs list
it showed / as a mountpoint for one of the datasets.

zfs set mountpoint=/<mountpoint for pool>/<dataset> <pool>/<dataset>
zfs mount <pool>
zfs mount <pool>/<dataset>


And the server is up again - many thanks!

Post Reply

Return to “ZFS (only!)”