2019-12-06 15:26:03 +00:00
# Storage Mining
2019-12-01 08:21:20 +00:00
2019-12-06 15:26:03 +00:00
Here are instructions to learn how to perform storage mining. For hardware specifications please read [this ](https://docs.lotu.sh/en+hardware-mining ).
It is useful to [join the DevNet ](https://docs.lotu.sh/en+join-devnet ) prior to attempting storage mining for the first time.
## Get started
Please ensure that at least one **BLS address** (`t3..`) in your wallet exists with the following command:
2019-12-01 08:21:20 +00:00
```sh
2019-12-06 15:26:03 +00:00
lotus wallet list
2019-12-01 08:21:20 +00:00
```
2019-12-04 15:39:41 +00:00
With this address, go to the [faucet ](https://lotus-faucet.kittyhawk.wtf/miner.html ), and
2019-12-01 08:21:20 +00:00
click `Create Miner`
2019-12-06 15:26:03 +00:00
Await this response:
2019-12-01 08:21:20 +00:00
2019-12-06 15:26:03 +00:00
```sh
To initialize the storage miner run the following command
```
2019-12-02 00:08:53 +00:00
2019-12-06 15:26:03 +00:00
## Initialize the storage miner
2019-12-01 08:21:20 +00:00
```sh
2019-12-06 15:26:03 +00:00
lotus-storage-miner init --actor=ACTOR_VALUE_RECEIVED --owner=OWNER_VALUE_RECEIVED
2019-12-01 08:21:20 +00:00
```
2019-12-06 15:26:03 +00:00
Example
2019-12-01 08:21:20 +00:00
```sh
2019-12-06 15:26:03 +00:00
lotus-storage-miner init --actor=t01424 --owner=t3spmep2xxsl33o4gxk7yjxcobyohzgj3vejzerug25iinbznpzob6a6kexcbeix73th6vjtzfq7boakfdtd6a
2019-12-01 08:21:20 +00:00
```
2019-12-06 15:26:03 +00:00
This command will take 30-60 seconds.
## Mining
To mine:
2019-12-01 08:21:20 +00:00
```sh
2019-12-06 15:26:03 +00:00
lotus-storage-miner run
2019-12-01 08:21:20 +00:00
```
2019-12-06 15:26:03 +00:00
Get information about your miner:
```sh
lotus-storage-miner info
# example: miner id `t0111`
```
2019-12-01 08:21:20 +00:00
2019-12-04 15:39:41 +00:00
**Seal** random data to start producing **PoSts** :
2019-12-01 08:21:20 +00:00
```sh
2019-12-06 15:26:03 +00:00
lotus-storage-miner store-garbage
2019-12-01 08:21:20 +00:00
```
2019-12-06 15:26:03 +00:00
Get **miner power** and **sector usage** :
2019-12-01 08:21:20 +00:00
```sh
2019-12-06 15:26:03 +00:00
lotus-storage-miner state power
# returns total power
2019-12-01 08:21:20 +00:00
2019-12-06 15:26:03 +00:00
lotus-storage-miner state power < miner >
2019-12-01 08:21:20 +00:00
2019-12-06 15:26:03 +00:00
lotus-storage-miner state sectors < miner >
2019-12-01 08:21:20 +00:00
```
2019-12-04 15:39:41 +00:00
2019-12-06 15:26:03 +00:00
## Change nickname
Update `~/.lotus/config.toml` with:
2019-12-04 15:39:41 +00:00
2019-12-04 17:53:36 +00:00
```sh
2019-12-04 15:39:41 +00:00
[Metrics]
Nickname="snoopy"
```
2019-12-06 15:26:03 +00:00
## Troubleshooting
```sh
lotus-storage-miner info
# WARN main lotus-storage-miner/main.go:73 failed to get api endpoint: (/Users/myrmidon/.lotusstorage) %!w(*errors.errorString=&{API not running (no endpoint)}):
```
If you see this, that means your **Lotus Storage Miner** isn't ready yet.