用xfs挂载什么就什么; docker 的存储驱动程序

用xfs挂载什么就什么; docker 的存储驱动程序

我有一个虚拟的 redhat linux 机器,用于 Docker。显然,我尚未将其正确设置为生产模式,因为我仍在使用 devicemapper 将存储模式作为环回设备运行(1)。最后,我想配置 docker 以使用overlay2文件系统2

df我的问题是我不知道如何解释我的文件系统如何组合在一起的输出。它与安装为/dev/sda1和 的老式 1-2 硬盘驱动器有很大不同/dev/sda2

df

Filesystem            1K-blocks     Used Available Use% Mounted on
/dev/mapper/rhel-root  18348032 16437056   1910976  90% /
devtmpfs                1913900        0   1913900   0% /dev
tmpfs                   1930752        0   1930752   0% /dev/shm
tmpfs                   1930752   201648   1729104  11% /run
tmpfs                   1930752        0   1930752   0% /sys/fs/cgroup
/dev/sda1                508588   273748    234840  54% /boot
/dev/mapper/rhel-data  31442944   119460  31323484   1% /data
tmpfs                    386152       12    386140   1% /run/user/42
tmpfs                    386152        0    386152   0% /run/user/982
/dev/dm-4              10475520   196220  10279300   2% /var/lib/docker/devicemapper/mnt/cc19510c0309762e0dbc9f3dfe21900d969f926c6ef04ed7d11b7bdeede89f91
/dev/dm-5              10475520    59804  10415716   1% /var/lib/docker/devicemapper/mnt/5a7a640f1488988864923b943a5c69204fc6f731aedc27400898d3c9c35577ab
shm                       65536        0     65536   0% /var/lib/docker/containers/1b3a8d5dac84e7cc9be3956049bb9902f4c56c1af644e7b2bf9572d69b49585f/mounts/shm
shm                       65536        0     65536   0% /var/lib/docker/containers/765355272efb9e0ab8aa1fd1a12de59753f44e494713e7e2345820cb2a9d5c31/mounts/shm
tmpfs                    386152        0    386152   0% /run/user/959053690
/dev/dm-6              10475520  1947752   8527768  19% /var/lib/docker/devicemapper/mnt/533250fcc6d43b1918fff0062a177848fda9ef9343e3fd0ab01de86bb58bfdc8
shm                       65536        0     65536   0% /var/lib/docker/containers/f84698c4831b2771009ad85ccd0cbb82b420d7ac0bcd60edfbbe9556fe360feb/mounts/shm
tmpfs                    386152        0    386152   0% /run/user/959055879

我在下面包含了xfs_info两个文件系统的输出,但不确定其中之一是否是 docker 容器和安装在容器上的卷使用的存储:

$ xfs_info /dev/mapper/rhel-root
meta-data=/dev/mapper/rhel-root  isize=256    agcount=5, agsize=1144832 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=0        finobt=0 spinodes=0
data     =                       bsize=4096   blocks=4589568, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=0
log      =internal               bsize=4096   blocks=2560, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0

$ xfs_info /dev/mapper/rhel-data
meta-data=/dev/mapper/rhel-data  isize=256    agcount=7, agsize=1280000 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=0        finobt=0 spinodes=0
data     =                       bsize=4096   blocks=7863296, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=0
log      =internal               bsize=4096   blocks=2560, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0

有人可以好心地引导我度过这个过程吗?

相关内容