Date: Wed, 05 Jun 2019 08:34:35 -0500 From: "Dean E. Weimer" <dweimer@dweimer.net> To: Mario Olofo <mario.olofo@gmail.com> Cc: freebsd-stable@freebsd.org Subject: Re: ZFS - Problem removing files after changing the compression type Message-ID: <00ea216052cd77e568ac6d3b21a53e4d@dweimer.net> In-Reply-To: <CAP4Gn9Dn02ehTQtT17ZO9pYGYhgvB2v08ANguLXJvO5TT7qo_Q@mail.gmail.com> References: <CAP4Gn9Dn02ehTQtT17ZO9pYGYhgvB2v08ANguLXJvO5TT7qo_Q@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2019-06-05 8:14 am, Mario Olofo wrote: > Hello guys, > > I'm configuring a new installation of FreeBSD-12.0-RELEASE and > installed > with ZFS for the root file system. > I run the command zfs set compression=lz4 root, and after this, the > system > become a little weird. > I tried to test some npm install to see if the compression was working > and > it is, but when I try to run some commands (ie. ng serve), it fails > with > I/O error. > Deleted the node_modules directory and when I tried to delete the .npm > dir, > the system returns "Directory not empty". > When run as sudo rm -rf, the result is "Unknown error: 122" > > I did something that I was not supposed to? > In the btrfs one can change the compression on the fly without issues > because of metadata, don't know if zfs behaves this way too. > > My system is a Dell G3, with a i5 8gen and an SSD on the m.2 slot > running > the FreeBSD (on UFS the notebook freezes and halt when I run npm > install). > Gentoo and Windows running on the same SSD and it's all good. > > Thank you, > Best reggards, > > Mario You should be able to change ZFS compression on the fly. Old data already written is not changed, but new writes will use the new compression setting. I have done this before, It looks like something else is happening I don't think the issue is related to the ZFS compression setting. I am not familiar with npm, so I have no idea whats going on there. Look at your dmesg output and check logs to see if the system logged any disk access errors also check status of zpool with zpool status. -- Thanks, Dean E. Weimer http://www.dweimer.net/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00ea216052cd77e568ac6d3b21a53e4d>