From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 54DF9DA6C for ; Tue, 19 Apr 2022 12:14:32 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 4AD8126B86 for ; Tue, 19 Apr 2022 12:14:32 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 7C88826B7D for ; Tue, 19 Apr 2022 12:14:31 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 4E6ED42215; Tue, 19 Apr 2022 12:14:31 +0200 (CEST) Date: Tue, 19 Apr 2022 12:14:20 +0200 From: Fabian =?iso-8859-1?q?Gr=FCnbichler?= To: Proxmox VE development discussion References: In-Reply-To: MIME-Version: 1.0 User-Agent: astroid/0.15.0 (https://github.com/astroidmail/astroid) Message-Id: <1650362772.zl3kfo8mc2.astroid@nora.none> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SPAM-LEVEL: Spam detection results: 0 AWL 0.175 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record T_SCC_BODY_TEXT_LINE -0.01 - Subject: Re: [pve-devel] MooseFS storage plugin X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2022 10:14:32 -0000 On April 19, 2022 4:15 am, Benjamin via pve-devel wrote: > I've hacked together a really basic first try. >=20 > https://github.com/Zorlin/pve-moosefs/blob/main/MooseFSPlugin.pm >=20 > I'm getting this error which I don't fully understand - >=20 > Can't locate object method "mkpath" via package "/mnt/mfs" (perhaps you > forgot to load "/mnt/mfs"?) at > /usr/share/perl5/PVE/Storage/Custom/MooseFSPlugin.pm line 111. (500) the current state seems to be basically equivalent to the following=20 (which doesn't require a custom plugin ;)): - ensure moosefs gets mounted (.mount unit, fstab, ..) at boot - dir plugin entry with is_mountpoint set the first part is handled by activate_storage in your plugin, the second=20 part makes the dir plugin only active (or activatable) if something is=20 mounted at the configured path (otherwise, failure to mount the moosefs=20 would lead to using the local empty mountpoint dir, which is of course=20 not desired!) might be an avenue worth exploring if all the interaction between PVE=20 and the storage besides the storage activation itself is via dir=20 semantics/the dir plugin code ;) of course if there are more aspects=20 that do require interacting with the moosefs server when doing certain=20 storage operations, a custom plugin is the way to go (with all the=20 caveats Thomas already mentioned).