Data Disk and Directories
2. Mount the data disk on /kaia and create the kcnd directories.
** The size of Kaia blockchain data always increases. Please attach a data disk big enough to store the Mainnet chaindata. You can refer to the chaindata size via Mainnet snapshot archive.
1) Find the data disk.
$ lsblk2) Format the data disk and mount it on /kaia.
Warning
mkfs erases everything on the disk. Please make sure <data_disk> is the new, empty data disk.
$ sudo mkfs.xfs /dev/<data_disk>
$ sudo mkdir -p /kaia
$ sudo mount /dev/<data_disk> /kaia
$ df -h /kaia3) Add the data disk to /etc/fstab so that it is mounted again after reboot.
$ echo "UUID=$(sudo blkid -s UUID -o value /dev/<data_disk>) /kaia xfs defaults,nofail 0 2" | sudo tee -a /etc/fstab
$ sudo umount /kaia && sudo mount -a && df -h /kaia4) Create the kcnd directory, and the data and logs directories under it.
$ sudo mkdir -p /kaia/kcnd/data
$ sudo mkdir -p /kaia/kcnd/logs
$ ls -l /kaia/kcnd| Path | Usage |
|---|---|
/kaia/kcnd/data | DATA_DIR - chaindata, nodekey |
/kaia/kcnd/logs | LOG_DIR - kcnd.out |
If you finish this step, please click the next button > on the right side of this page.