2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Jetson AGX XavierにSSDを装着する

Posted at

環境

  • Jetson AGX Xavier
  • Ubuntu 18.04
  • jetpack 4.5

icon_Jetson AGX Xavier.png

やりたい事

Jetson AGX Xavier にSSDを装着して、dockerが使用する領域をSSDに移したい

使ったSSD

61QEkDvrFcL.AC_SX679.jpg

取り付け

ssd001.png
裏側のネジ4か所を外す
ssd003.jpg

インストール方法

  • SSDの認識を確認
ls /dev/nvme0n1
  • マウント
cd ~/
sudo mkfs.ext4 /dev/nvme0n1
sudo mkdir nvme
sudo mount /dev/nvme0n1 /home/jetson/nvme

-vi等で /etc/fstabにデバイスを追加する

/dev/nvme0n1 /home/jetson/nvme ext4 defaults 0 1

再起動する

/dev/nvme0n1 /home/jetson/nvme ext4 defaults 0 1

dockerを移動する

sudo docker info
sudo service docker stop
sudo mv /var/lib/docker /home/jetson/nvme/
sudo ln -s /home/jetson/nvme/docker /var/lib/

zramを無効にする

cd /etc/systemd
sudo mv nvzramconfig.sh nvzramconfig.sh.orig

swapを移動する

sudo fallocate -l 32G /home/jetson/nvme/swapfile
sudo chmod 600 /home/jetson/nvme/swapfile
sudo mkswap /home/jetson/nvme/swapfile
sudo swapon /home/jetson/nvme/swapfile

-vi等で /etc/fstabにswapを追加する

/home/jetson/nvme/swapfile swap swap defaults 0 0

Dockerを再起動

sudo service docker start

確認方法

docker inspect [コンテナID]

参考にした記事

Docker

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?