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

subfolders #4

Open
zunder1990 opened this issue Jul 14, 2023 · 3 comments
Open

subfolders #4

zunder1990 opened this issue Jul 14, 2023 · 3 comments

Comments

@zunder1990
Copy link

I got this working mounting the root of the moosefs folder. I have a subfolder export from moosefs, how do I tell this plugin to use it.

@Zorlin
Copy link
Owner

Zorlin commented Jul 15, 2023

Hi @zunder1990,

That's cool! I think you might be the first person to actually use this outside of me.

Currently the plugin doesn't support subfolders at all, but I will strongly consider prioritising adding support for that. It should be a relatively minor change, it just needs testing and care.

@zunder1990
Copy link
Author

I will keep an eye on the git updates and test again. Right now I have 4 node proxmox cluster and I mount moosefs path using fstab. I use moosefs as the backend for my vm backups. I am using the mfsdelayedinit since on other hosts it would fail to mount on boot since it was trying to mount before network was up.
Here is from fstab
moosefs-leader:/vmbackups /mnt/vmbackups moosefs rw,mfsdelayedinit,mfspassword=xxxxxxxxxxxxxx 0 0
Here is the mfsexports
10.10.0.0/24 /vmbackups rw,alldirs,maproot=0,password=xxxxxxxxxxxxxx,admin,mingoal=2,maxgoal=2
I built the package on one of my proxmox nodes and had to install make and gcc
I did get an error but the .deb looked to install fine.

rm -rf debian
mkdir debian
make DESTDIR=/root/pve-moosefs/debian install
make[1]: Entering directory '/root/pve-moosefs'
install -d /root/pve-moosefs/debian/usr/share/perl5/PVE/Storage/Custom
for i in MooseFSPlugin.pm; do install -D -m 0644 $i /root/pve-moosefs/debian/usr/share/perl5/PVE/Storage/Custom/$i; done
make[1]: Leaving directory '/root/pve-moosefs'
install -d -m 0755 debian/DEBIAN
sed -e s/@@Version@@/0.1.0/ -e s/@@PKGRELEASE@@/1/ -e s/@@arch@@/all/ <control.in >debian/DEBIAN/control
install -D -m 0644 copyright debian//usr/share/doc/libpve-storage-custom-moosefs-perl/copyright
install -m 0644 changelog.Debian debian//usr/share/doc/libpve-storage-custom-moosefs-perl/
install -m 0644 triggers debian/DEBIAN
gzip -9 debian//usr/share/doc/libpve-storage-custom-moosefs-perl/changelog.Debian
dpkg-deb --build debian
dpkg-deb: building package 'libpve-storage-custom-moosefs-perl' in 'debian.deb'.
mv debian.deb libpve-storage-custom-moosefs-perl_0.1.0-1_all.deb
rm -rf debian
lintian libpve-storage-custom-moosefs-perl_0.1.0-1_all.deb
make: lintian: No such file or directory
make: *** [Makefile:44: libpve-storage-custom-moosefs-perl_0.1.0-1_all.deb] Error 127

@Zorlin
Copy link
Owner

Zorlin commented Jul 15, 2023 via email

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

No branches or pull requests

2 participants