jetlag icon indicating copy to clipboard operation
jetlag copied to clipboard

the extra disk (nvme, etc) should be mounted on /var/lib/containers on bastion

Open iranzo opened this issue 1 year ago • 1 comments

On bastion host, specially when holding a registry, the root hard drive can get filled.

If the host has extra disks, like nvme, they should be made ready on /var/lib/containers so that system is getting root disk filled

iranzo avatar Mar 09 '23 14:03 iranzo

I think we should just document how to setup a separate disk to host your disconnected registry. I have ran into this myself and have a few steps to quickly resolve this issue:

  1. Tear down any podman pods on bastion
  2. mv /opt /opt2
  3. parted /dev/nvme0n1 (Or whatever extra disk you are using)
  4. (parted) mklabel
  5. (parted) unit s
  6. (parted) mkpart primary xfs 0% 100%
  7. (parted) quit
  8. mkfs.xfs /dev/nvme0n1p1
  9. mkdir opt
  10. lsblk --fs /dev/nvme0n1p1
  11. vi /etc/fstab
  12. systemctl daemon-reload
  13. mount /opt
  14. rerun setup-bastion to bring podman pods back up

akrzos avatar May 08 '23 18:05 akrzos