You are not logged in.

#1 2016-05-16 07:25:54

STREBLO
Member
Registered: 2015-02-15
Posts: 135

ZFS Data Going Missing and Mounting Over Existing Files

I noticed upon reboot that my folders were disappearing inside my home directory as if it was reverting back to how the system was right after fresh install. All I would have in my home directory was a '.bashrc' file.

When checking my logs I found this

journalctl -b 0
May 15 23:12:25 Archon systemd[1]: home.mount: Directory /home to mount over is not empty, mounting anyway.
May 15 23:12:25 Archon systemd[1]: Mounting /home...
May 15 23:12:25 Archon systemd[1]: Mounting POSIX Message Queue File System...
May 15 23:12:25 Archon systemd[1]: Mounting Huge Pages File System...
May 15 23:12:25 Archon systemd[1]: Started Load Kernel Modules.
May 15 23:12:25 Archon systemd[1]: Started Create list of required static device nodes for the current kernel.
May 15 23:12:25 Archon systemd[1]: Mounted POSIX Message Queue File System.
May 15 23:12:25 Archon systemd[1]: Mounted Huge Pages File System.
May 15 23:12:25 Archon systemd[1]: Mounted Debug File System.
May 15 23:12:25 Archon systemd[1]: Started Setup Virtual Console.
May 15 23:12:25 Archon systemd-journald[440]: Journal started
May 15 23:12:25 Archon systemd[1]: Started Journal Service.
May 15 23:12:25 Archon systemd[1]: Mounted /var.
May 15 23:12:25 Archon systemd[1]: Mounted /home.

So it seems to somehow be mounting over existing folders or something? Is it somehow saving my data in the wrong place and then mounting something over it when I reboot? Everything seems to be working fine and saving properly but then upon reboot it just reverted to how it was at fresh install with nothing in it.

I am running up to date ZFS from the archzfs repository

Here is my dataset setup:

zfs list
NAME                        USED  AVAIL  REFER  MOUNTPOINT
vault                       877M   429G    96K  /vault
vault/ARCHON                876M   429G    96K  none
vault/ARCHON/ROOT          13.0M   429G    96K  none
vault/ARCHON/ROOT/default  12.9M   429G  10.3M  /
vault/ARCHON/home            96K   429G    96K  legacy
vault/ARCHON/tmp            184K   429G   120K  legacy
vault/ARCHON/usr            602M   429G   593M  legacy
vault/ARCHON/var            261M   429G   259M  legacy

And my fstab:

vault/ARCHON/ROOT/default       /               zfs             rw,relatime,xattr,noacl 0 0
vault                   /vault          zfs             rw,relatime,xattr,noacl 0 0
vault/ARCHON/home       /home           zfs             rw,relatime,xattr,noacl 0 0
vault/ARCHON/var        /var            zfs             rw,relatime,xattr,posixacl      0 0
vault/ARCHON/usr        /usr            zfs             rw,relatime,xattr,noacl 0 0
vault/ARCHON/tmp        /tmp            zfs             rw,relatime,xattr,noacl 0 0

My pool seems to be fine and I can't find any other errors. Other than the home directory gone I don't have any other problems.

Last edited by STREBLO (2016-05-16 07:35:28)

Offline

#2 2016-05-16 07:34:38

STREBLO
Member
Registered: 2015-02-15
Posts: 135

Re: ZFS Data Going Missing and Mounting Over Existing Files

Ok, Strange, now upon rebooting my original data is back. What could be happening? When I reboot, half the time my data shows up.

Update:

So somehow folders were made in the empty home directory which it was complaining about, i unmounted my home directory and deleted everything under it which seems to have fixed the problem.

Last edited by STREBLO (2016-05-17 00:52:19)

Offline

Board footer

Powered by FluxBB