1. find all disk attached to this machine
    sudo fdisk -l
    Disk /dev/xvda: 8589 MB, 8589934592 bytes, 16777216 sectors
    ..
    Disk /dev/nvme0n1: 950.0 GB, 950000000000 bytes, 1855468750 sectors
    ..

2. select target to make as a /data folder
    "/dev/nvme0n1"

3. format disk to xfs filesystem
    sudo mkfs -t xfs /dev/nvme0n1

4. mount disk to /data folder
    sudo mkdir -p /data
    sudo mount /dev/nvme0n1 /data
    check mounted disk list: df -TH

5. give permission to mongod user
    sudo chown mongod:mongod /data



'mongoDB' 카테고리의 다른 글

mongodb "convert to capped collection" effect  (0) 2018.02.23
mongos setup on centos  (0) 2018.01.12
mongodb profiling 과 AWS EBS IOPS에대한 고찰이라고나 할까?  (0) 2015.05.06
Shading  (0) 2014.04.23
블로그 이미지

시간을 거스르는자

,