Disappearing files in FreeBSD 13.0-R2
Waitman Gobble
gobble.wa at gmail.com
Mon Mar 15 01:22:38 UTC 2021
On Sun, Mar 14, 2021 at 9:20 PM Waitman Gobble <gobble.wa at gmail.com> wrote:
>
> On Sun, Mar 14, 2021 at 8:00 PM David Christensen
> <dpchrist at holgerdanske.com> wrote:
> >
> > On 3/14/21 4:03 PM, Waitman Gobble wrote:
> > > I did a fresh install using ZFS with encryption. I copied the files on a
> > > second drive (UFS) to /usr/home/backup (ZFS). I reformatted the second
> > > drive ZFS and created a new pool "home" for that drive. It decided to mount
> > > the drive as /home. AFAIK i never told the system to do that. But /home and
> > > /usr/home are different, there is no link.
> > >
> > > I can only see /usr/home/backup if i boot into single user mode. If i mount
> > > read write or boot normally then /usr/home is empty.
> > >
> > > I copied the files to a usb drive.
> > >
> > > How do i delete the backup? Its taking up 100 gb. I can see them read only
> > > and copy to usb drive, but as soon as i mount read write they disappear. I
> > > did not import the home pool, it does not show up in the status command.
> >
> >
> > Please run the following commands and post your console session:
> >
> > # gpart show
> >
> > # zpool list
> >
> > # zfs list -d 1
> >
> > # zfs list -r -t all home
> >
> >
> > David
>
> Thanks for the reply.
>
> Ok, Here's the info from multi-user mode.
>
> In single user mode the 'home' pool (second drive) doesn't show up in
> status or list or anything, which is fine.
> When I boot into single user mode / read only then /usr/home has 100gb
> of backup. If I reboot to multi-user or mount read-write in single
> user then the files in /usr/home disappear. (even if the second drive
> isn't mounted). The 80 GB avail should be like 180GB I think, it's a
> 250GB drive. The usage stats don't change if the files in /usr/home
> appear or not.
>
> The home directory for the second drive is /home which isn't a link to
> /usr/home or vice-versa AFAIK. in multi-user mode /home has my files,
> /usr/home is empty. in single-user read only , /home is empty and
> /usr/home has the backup files.
>
> root at ayo:/home # gpart show
> => 40 488397088 ada0 GPT (233G)
> 40 532480 1 efi (260M)
> 532520 1024 2 freebsd-boot (512K)
> 533544 984 - free - (492K)
> 534528 4194304 3 freebsd-swap (2.0G)
> 4728832 483667968 4 freebsd-zfs (231G)
> 488396800 328 - free - (164K)
>
> => 40 976773088 ada1 GPT (466G)
> 40 976773088 1 freebsd-zfs (466G)
>
> => 40 976773088 da0 GPT (466G)
> 40 2008 - free - (1.0M)
> 2048 976771072 1 freebsd-ufs (466G)
> 976773120 8 - free - (4.0K)
>
> => 40 976773088 da1 GPT (466G)
> 40 2008 - free - (1.0M)
> 2048 976771072 1 freebsd-ufs (466G)
> 976773120 8 - free - (4.0K)
>
> root at ayo:/home # zpool list
> NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP
> HEALTH ALTROOT
> home 464G 294G 170G - - 0% 63% 1.00x ONLINE -
> zroot 230G 142G 87.6G - - 0% 61% 1.00x ONLINE -
> root at ayo:/home # zfs list -d 1
> NAME USED AVAIL REFER MOUNTPOINT
> home 294G 156G 294G /home
> zroot 142G 80.4G 96K /zroot
> zroot/ROOT 140G 80.4G 96K none
> zroot/tmp 184K 80.4G 184K /tmp
> zroot/usr 1.38G 80.4G 96K /usr
> zroot/var 877M 80.4G 96K /var
> root at ayo:/home # zfs list -r -t all home
> NAME USED AVAIL REFER MOUNTPOINT
> home 294G 156G 294G /home
> root at ayo:/home # ls /usr/home/
> [nada]
> root at ayo:/home #
>
>
oops, missed a couple. sorry.
root at ayo:/home # zfs list -r -t all home
NAME USED AVAIL REFER MOUNTPOINT
home 294G 156G 294G /home
root at ayo:/home # zfs list -d 1
NAME USED AVAIL REFER MOUNTPOINT
home 294G 156G 294G /home
zroot 142G 80.4G 96K /zroot
zroot/ROOT 140G 80.4G 96K none
zroot/tmp 184K 80.4G 184K /tmp
zroot/usr 1.38G 80.4G 96K /usr
zroot/var 877M 80.4G 96K /var
--
Waitman Gobble
More information about the freebsd-questions
mailing list