Install & Run PDP

This guide walks you through setting up a PDP-enabled Filecoin Storage Provider using Lotus, YugabyteDB, and Curio

🚀 Prerequisites

Before starting, make sure you have a user with sudo privileges. This section prepares your system for the PDP stack.


⚙️ Hardware requirements

  • RAM: 32 GiB+

  • CPU: 8 Core+

  • Storage:

    • 1 TiB Fast storage (NVMe/SSD)

    • 10 TiB Long-term storage (HDD)

  • GPU: Not required

  • Connectivity: Public HTTPS endpoint (domain)


🧰 System Package Installation


🔨 Install Go (v1.24.0)


🔧 Install Rust

When prompted, choose the option 1) Proceed with standard installation (default — just press Enter).


🔐 Add Go and Rust to Secure Sudo Path


⛓️ Installing and Running Lotus

🧠 Lotus is your gateway to the Filecoin network. It syncs the chain, manages wallets, and is required for Curio to interact with your node.

🔧 Build Lotus Daemon

Clone and check out Lotus:

Build and Install for Mainnet

Build and Install for Calibration


📦 Import a Snapshot and Start the Daemon

Download the Snapshot

Mainnet:

Calibration:

Import and Start the Daemon

If you encounter errors related to EnableEthRPC or EnableIndexer, run the following command and restart Lotus

Monitor Sync Progress

To monitor continuously:

Monitor Logs


🐘 Running YugabyteDB

🧠 Curio uses YugabyteDB to store metadata about deals, sealing operations, and PDP submissions.

🛠 Set ulimit configuration

To do this:

🔁 Persist new limits across reboots

Add these lines to /etc/security/limits.conf:

This ensures the increased limits are automatically applied to future sessions.

Apply limit immediately (for current shell only)

Verify:

⚙️ Install Yugabyte

🚀 Start the DB

You can also check your Yugabyte cluster details directly in the CLI with:


🧱 Installing and Configuring Curio

🧠 Curio is the core PDP client that coordinates sealing, interacts with Lotus and submits PDP proofs.

⚙️ System Configuration

Before you proceed with the installation, you should increase the UDP buffer size:

To make this change persistent across reboots:

🔬 Build Curio

Clone the repository and switch to the PDP branch:

Curio is compiled for a specific Filecoin network at build time. Choose the appropriate build command below.

Mainnet

Calibration

This step will take a few minutes to complete.

✅ Install and Verify Curio

Run the following to install the compiled binary:

This will place curio in /usr/local/bin

Verify the installation:

Expected example output:


🔧 Guided Setup

Curio provides a utility to help you set up a new miner interactively. Run the following command:

1️⃣ Select Curio Installation Type

Use the arrow keys to navigate the guided setup menu and select "Setup non-Storage Provider cluster".

2️⃣ Enter Your YugabyteDB Connection Details

If you used the default installation steps from this guide, the following values should work:

  • Host: 127.0.0.1

  • Port: 5433

  • Username: yugabyte

  • Password: yugabyte

  • Database: yugabyte

You can verify these settings by running the following command from the Yugabyte directory:

After selecting "Continue to connect and update schema", Curio will automatically create the required tables and schema in the database.

3️⃣ Telemetry (Optional)

You'll be asked whether to share anonymised or signed telemetry with the Curio team to help improve the software.

Select your preference and continue.

4️⃣ Save Database Configuration

At the final step of the guided setup, you'll be prompted to choose where to save your database configuration file.

Use the arrow keys to select a location. A common default is:

Once selected, setup will complete, and the miner configuration will be stored.

5️⃣ Launch the Curio Web GUI

To explore the Curio interface visually, start the GUI layer:

Then, open your browser and go to:

This will launch the Curio web GUI locally.


🧪 Enabling FWSS PDP

🧠 This section enables FWSS Proof of Data Possession (PDP) on your SP node using Curio. These steps guide you through running a standalone PDP service using Curio and pdptool.

📦 Attach Storage Locations

With Curio running with the GUI layer:

Run the following commands in your Curio CLI to attach storage paths:

Your fast-storage path should point to high-performance storage media such as NVMe or SSD


🔧 Add a PDP Configuration Layer

Browse to the Configurations page of the Curio GUI.

Create a new layer named pdp and enable the following under Subsystems:

You may find it helpful to search for the setting names in your browser.

  • EnableParkPiece

  • EnablePDP

  • EnableCommP

  • EnableMoveStorage

In the HTTP section:

  • ✅ Enable: true

  • 🌐 DomainName: your domain (e.g., pdp.mydomain.com)

  • 📡 ListenAddress: 0.0.0.0:443

Tip: You must point your domain's A record to your server's public IP address for Let's Encrypt to issue a certificate.


💰 Import your Filecoin Wallet Private Key:

Create a new delegated wallet:

You can display your Lotus wallets at any time by running:

Export & convert your new delegated wallet address private key:

Browse to the PDP page of the Curio GUI and in the Owner Address section:

  • Select Import Key

  • Copy the previously generated private wallet key into the Private Key (Hex) field.

  • Select Import Key

Make sure to send a small amount of FIL or tFIL (testnet FIL) to your 0x wallet - we recommend 8 FIL for Mainnet & 5 tFIL for Calibration to ensure uninterrupted PDP operation during initial setup and testing. Calibration test FIL faucet information.


🚀 Restart and Verify

Restart Curio with both layers:

If you encounter errors related to EnableEthRPC or EnableIndexer, run the following command and restart Lotus

If you encounter errors binding to port 443 when starting Curio with the pdp configuration layer, run:

Test the PDP service:

If pdptool is not installed, clone and build Curio:

Generate a service secret:

Always use public for the --service-name flag


🎉 You're Done!

You've successfully launched a PDP-enabled Filecoin Storage Provider stack. Your system is now:

  • ✅ Syncing with the Filecoin network via Lotus

  • ✅ Recording deal and sector metadata in YugabyteDB

  • ✅ Operating Curio to manage sealing and coordination

  • ✅ Enabled Proof of Data Possession (PDP)

  • ✅ Connected to your PDP-enabled storage provider


🔜 Next Steps

Last updated

Was this helpful?