有没有办法移动已安装ICP的ICP私有映像注册表的位置?

时间:2019-03-29 23:52:51

标签: ibm-cloud-private

我的ICP专用映像注册表所在的驱动器上的磁盘空间不足。我知道可以在ICP安装之前使用绑定安装为“ / var / lib / registry”指定位置。是否有程序可以在现有ICP群集上安全地移动ICP私有映像注册表的位置?

2 个答案:

答案 0 :(得分:1)

如何将/ current /目录移动到另一个分区/磁盘

一旦添加了额外的磁盘,对其进行了分区,创建了文件系统,并准备将/ current /目录移动到该磁盘;请执行以下步骤:

假设/ dev / xvdc11是使用ext4文件系统创建的分区

# create a temp mount point and mount your new partition
mkdir /mnt/dirName
mount /dev/xvdc11 /mnt/dirName

# confirm that it is mounted.
df -h

# copy current directory content to the temp mount point
rsync -aqxP /current/directory/* /mnt/dirName

# use bind mount to set the new location
mount --rbind /mnt/dirName /dirName

# unmount and delete the temp mount point
umount /mnt/dirName
rm -rf /mnt/dirName

# persist this change across system reboots
echo "/dev/xvdc11   /current/directory   ext4   defaults   0   0" >> /etc/fstab

答案 1 :(得分:0)

是的,您可以执行此活动,请查看有关图像管理的更多详细信息: https://www.ibm.com/support/knowledgecenter/en/SSBS6K_3.1.2/manage_images/image_manager.html 也可以通过使用API​​完成此任务 https://www.ibm.com/support/knowledgecenter/en/SSBS6K_3.1.2/apis/image_management.html