ScPrime Cloud Storage
  • About
    • Team
    • Project Specification
  • Resources
    • Software
    • KPIs
    • Incentives
    • What are SPF?
    • Storage Network Status
    • Coin Info
    • Whitepaper
    • Explorer
    • Consensus Mining (ASIC)
    • Logo and Style Guide
    • Source Code – (Open Only)
  • Documentation
    • Xa-Miner Documentation
    • DIY Provider Documentation
  • ScPrime Articles
    • Two Papa Bravo Event
    • Updating Software for the 222800 Hard Fork
    • Hard Fork Process and Information
    • ScPrime Mining Algorithm Change Proposal
    • What are SPF?
    • SPF-B New Token Format Details
    • The Distributed Storage Competition – Part 2
    • The Distributed Storage Competition – Part 1
  • Xa-Miner
    • Xa-Miner 64TB
    • Xa-Miner 16TB
  • Menu Menu

DIY Getting Started

  • Storage Provider Overview
  • Provider Requirements/Configs
  • Port Forwarding Guide
  • Collateral
  • Licensing FAQ

Storage Provider Setup

  • Windows Command-Line Interface Guide (CLI)
  • Linux Setup
  • Synology/Docker Setup
  • Windows Supervisor-Lite Installation Guide
  • Linux Supervisor-Lite Installation Guide
  • Post-Announce Guide
  • Provider Settings
  • Windows Update Guide
  • Linux Update Guide – Basic
  • Linux Update Guide – Advanced
  • Linux Full License Software Installation Guide
  • Linux Full License Software Fresh Installation Guide
  • Uptime Robot Guide for ScPrime Storage Providers

Software/Wallets

  • Windows WebWallet Guide
  • Linux WebWallet Guide
  • Mac WebWallet Guide
  • Cold Wallet Generator Setup
  • Command-Line Interface (CLI)/Wallet Setup – Windows
  • Command-Line Interface (CLI)/Wallet Setup – Linux
  • Wallet Sweep

Tutorials

  • Linux Folder Provisioning Guide
  • Linux Metadata Guide
  • Linux Multiple Provider Guide
  • Windows to Linux Migration Guide
  • Windows UI to CLI Migration Guide
  • Grafana Provider Status Messages

Information

  • Block 109,000 Fork Technical Issues
  • Storage Provider Earnings
  • ScPrime Community FAQ
  • SCP Supply
  • SCP Supply Precision Change
  • May 15th Fork FAQ
Table of Contents
  • Linux Folder Provisioning Guide
    • Adding a New Folder
    • Resizing a Folder
    • Removing a Folder
    • Drive Sizes

Linux Folder Provisioning Guide

This guide will help DIY Linux users to provision new folders, resize existing folders and remove folders. Storage folders are a key part of the ScPrime DIY Provider solution as this is where the data you are storing and getting paid for is stored. At least one storage folder needs to be added to a provider when initially setting up. But folders can also be removed and resized as part of regular maintenance activities on your provider.

Adding a New Folder

To add a new folder to a provider, whether it’s on initial setup or simply adding more capacity to an existing provider, use the following commands to first create the folder in Linux and then add that into spd along with the size of the folder you wish to allocate:

mkdir <PATH>

./spc host folder add <PATH> <SIZE>

Below is an example with a 4TB drive which is mounted at /dev/Data2, adding a 2TB folder:

Once added to spd, then inside this folder we can see 2 files called siahostdata.dat and siahostmetadata.dat. The first file is the size of the provisioned folder and this is where data will be stored. The 2nd file contains metadata about the data stored in the siahostdata.dat file.

Resizing a Folder

Now if we want to increase (or decrease) the size of the folder and allow for more data to be stored in it, we can resize it with the following command:

./spc host folder resize <PATH> <NEW-SIZE>

Removing a Folder

Sometimes you might want to remove a folder from spd to, for example, remove a physical drive from your system. This is possible without losing data as long as you have other folders provisioned in spd already. Using the example above, if we wanted to remove the drive mounted at /mnt/Data, we can remove it and spd will move any Used data (4.19MB in this case) to any remaining folders, so in our case it will all be moved to /mnt/Data2/SCP2. To do this we use the following command:

./spc host folder remove <PATH>

When we run that on the example provider above, we get the following:

We can now see the 4.19MB Used data on the /mnt/Data2/SCP2 folder and the 1TB folder has been removed from spd. Now the physical drive can be removed from the OS.

Drive Sizes

The table below can be used as a useful guide to how much usable space you have on your drive. Remember to also take off a couple of 100GB to allow for the siahostmetadata.dat and a bit of wiggle room. So for example from the table below, for a 12TB drive you should not be provisioning more than about 10.7TB of folder storage. Over-provisioning a drive will have extremely bad consequences to your provider, while initially it may be able to write data to the storage folder, soon you will appear to stop receiving data and this is because spd can not write to the drive due to it being over-provisioned.

Capacity on product (Decimal)Windows Output (Binary)
500 GB465 GB
1 TB (1,000 GB)931 GB
2 TB (2,000 GB)1.81 TB
3 TB (3,000 GB)2.72 TB
4 TB (4,000 GB)3.63 TB
5 TB (5,000 GB)4.54 TB
6 TB (6,000 GB)5.45 TB
8 TB (8,000 GB)7.27 TB
10 TB (10,000 GB)9.09 TB
12 TB (12,000 GB)10.91 TB
14 TB (14,000 GB)12.73 TB
16 TB (16,000 GB)14.55 TB
18 TB (18,000 GB)16.37 TB
20 TB (20,000 GB)18.18 TB

On Linux, you can check the size of your drive using the following command:

df -h

In our example provider that shows the following:

/dev/sdd is our 4TB drive (actually a virtual disk in a VM so not an actual physical 4TB drive) and we can see it has 3.7TB of available space.

 

What are your Feelings
Share This Article :
  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
Table of Contents
  • Linux Folder Provisioning Guide
    • Adding a New Folder
    • Resizing a Folder
    • Removing a Folder
    • Drive Sizes

Developer

About
Logos
Contact

Resource

Software
Explorer
Docs/Guides
Whitepaper
Open Source

Legal

Privacy Policy
Licensed Provider Terms of Service

© Copyright - SCP, Corp. - Privacy Policy
Scroll to top

This site uses cookies. By continuing to browse the site, you are agreeing to our use of cookies.

OKLearn more

Cookie and Privacy Settings



How we use cookies

We may request cookies to be set on your device. We use cookies to let us know when you visit our websites, how you interact with us, to enrich your user experience, and to customize your relationship with our website.

Click on the different category headings to find out more. You can also change some of your preferences. Note that blocking some types of cookies may impact your experience on our websites and the services we are able to offer.

Essential Website Cookies

These cookies are strictly necessary to provide you with services available through our website and to use some of its features.

Because these cookies are strictly necessary to deliver the website, refusing them will have impact how our site functions. You always can block or delete cookies by changing your browser settings and force blocking all cookies on this website. But this will always prompt you to accept/refuse cookies when revisiting our site.

We fully respect if you want to refuse cookies but to avoid asking you again and again kindly allow us to store a cookie for that. You are free to opt out any time or opt in for other cookies to get a better experience. If you refuse cookies we will remove all set cookies in our domain.

We provide you with a list of stored cookies on your computer in our domain so you can check what we stored. Due to security reasons we are not able to show or modify cookies from other domains. You can check these in your browser security settings.

Google Analytics Cookies

These cookies collect information that is used either in aggregate form to help us understand how our website is being used or how effective our marketing campaigns are, or to help us customize our website and application for you in order to enhance your experience.

If you do not want that we track your visit to our site you can disable tracking in your browser here:

Other external services

We also use different external services like Google Webfonts, Google Maps, and external Video providers. Since these providers may collect personal data like your IP address we allow you to block them here. Please be aware that this might heavily reduce the functionality and appearance of our site. Changes will take effect once you reload the page.

Google Webfont Settings:

Google Map Settings:

Google reCaptcha Settings:

Vimeo and Youtube video embeds:

Other cookies

The following cookies are also needed - You can choose if you want to allow them:

Privacy Policy

You can read about our cookies and privacy settings in detail on our Privacy Policy Page.

Privacy
Accept settingsHide notification only