Discourse 설치 환경 비교

구분SPVSDVSSV비고
OSCentOS release 6.5 (Final)CentOS Linux release 7.5.1804 (Core)CentOS Linux release 7.5.1804 (Core)
Kernel Version4.3.0-1.el6.elrepo.x86_643.10.0-693.17.1.el7.x86_643.10.0-862.9.1.el7.x86_64
Discourse 설치경로/community/company/was/discourse (예정)

Dockerdocker-engine-1.7.1-1.el6.x86_64docker-ce-18.09.1-3.el7.x86_64

Docker Root Dir/var/lib/docker//var/lib/docker/

Storage Driverdevicemapperdevicemapper

Filesystemextfsxfsxfs
ftype101


Docker 권장 Storage Drivers

(출처:https://docs.docker.com/storage/storagedriver/select-storage-driver/)

Linux distributionRecommended storage driversAlternative drivers
Docker Engine - Community on Ubuntuoverlay2 or aufs (for Ubuntu 14.04 running on kernel 3.13)overlay¹, devicemapper², zfs, vfs
Docker Engine - Community on Debianoverlay2(Debian Stretch), aufsor devicemapper(older versions)overlay¹, vfs
Docker Engine - Community on CentOSoverlay2overlay¹, devicemapper², zfs, vfs
Docker Engine - Community on Fedoraoverlay2overlay¹, devicemapper², zfs, vfs

Discourse 설치시 devicemapper 이슈

FAILED
--------------------
Pups::ExecError: rm -fr /var/run/postgresql failed with return #<Process::Status: pid 44 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params "rm -fr /var/run/postgresql"
e2dc80ecc95d1d10a46a3c68e6061159517aba616346c7489fb242a0ad4e1232
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one

Docker 설치시 경고 메시지

WARNING: the devicemapper storage-driver is deprecated, and will be removed in a future release.

WARNING: devicemapper: usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device.

Docker공식 페이지의 storage-driver

출처 : https://docs.docker.com/storage/storagedriver/select-storage-driver/

The devicemapper storage driver is deprecated in Docker Engine 18.09, and will be removed in a future release. It is recommended that users of the devicemapper storage driver migrate to overlay2.


해결방안

Disk 생성시 Docker 호완 Filesystem으로 설정합니다.


자세한 정보는 아래 URL을 참조

https://linuxer.pro/2017/03/fix-chown-error-discourse-bootstrap/


SPV 서버 정보

SPV
[svcapp_su@SPV ~]$ cat /etc/*-release
CentOS release 6.5 (Final)
LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
CentOS release 6.5 (Final)
CentOS release 6.5 (Final)
-----------------------------------------------------------------
[svcapp_su@SPV ~]$ sudo docker info
Containers: 1
Images: 8
Storage Driver: devicemapper
 Pool Name: docker-8:1-1052558-pool
 Pool Blocksize: 65.54 kB
 Backing Filesystem: extfs
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data Space Used: 5.9 GB
 Data Space Total: 107.4 GB
 Data Space Available: 9.353 GB
 Metadata Space Used: 4.039 MB
 Metadata Space Total: 2.147 GB
 Metadata Space Available: 2.143 GB
 Udev Sync Supported: true
 Deferred Removal Enabled: false
 Data loop file: /var/lib/docker/devicemapper/devicemapper/data
 Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
 Library Version: 1.02.95-RHEL6 (2015-09-08)
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.3.0-1.el6.elrepo.x86_64
Operating System: <unknown>
CPUs: 4
Total Memory: 7.797 GiB
Name: SPV
ID: 2SUX:LOIQ:4C3K:MIPS:HZET:GA6B:D3IT:LLTB:DMDX:VALV:3ZNM:4U4P
WARNING: No swap limit support
[svcapp_su@SPV ~]$ 
----------------------------------------------------------------
[svcapp_su@SPV ~]$ cat /etc/fstab 

#
# /etc/fstab
# Created by anaconda on Fri May 22 13:38:39 2015
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=044f8a19-4e80-4602-b252-827d91907b9d /                       ext4    defaults        1 1
UUID=46085d43-40db-4b32-8126-0d1cd6e98567 swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults,size=4G        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/mapper/VG01-srv    /srv                    ext4    defaults        0 0
/dev/mapper/VG02-com    /community              ext4    defaults        0 0
#cgroup /sys/fs/cgroup cgroup defaults 0 0
[svcapp_su@SPV ~]$
----------------------------------------------------------------
[svcapp_ro@SPV /]$ ls -al
합계 172
dr-xr-xr-x.  31 root   root    4096 2017-09-23 09:09 .
dr-xr-xr-x.  31 root   root    4096 2017-09-23 09:09 ..
-rw-r--r--    1 root   root       0 2017-09-23 09:09 .autofsck
-rw-r--r--    1 root   root       0 2015-05-22 14:20 .autorelabel
drwx------.   3 root   root    4096 2015-05-22 13:54 .dbus
drwx------.   2 root   root    4096 2015-05-22 13:54 .pulse
-rw-------.   1 root   root     256 2015-05-22 13:54 .pulse-cookie
drwxr-xr-x    2 root   root    4096 2015-05-29 11:20 baas-data
dr-xr-xr-x.   2 root   root    4096 2017-09-19 03:35 bin
dr-xr-xr-x.   4 root   root    4096 2016-01-26 20:04 boot
drwxrwxrwx.  10 root   root    4096 2017-03-22 17:42 cgroup
drwx------    5    102    107  4096 2016-01-27 15:13 community
------------------------------------------------------------------
[svcapp_su@SPV ~]$ sudo tune2fs -l /dev/sda1
tune2fs 1.41.12 (17-May-2010)
Filesystem volume name:   <none>
Last mounted on:          /
Filesystem UUID:          044f8a19-4e80-4602-b252-827d91907b9d
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags:         signed_directory_hash 
Default mount options:    user_xattr acl
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              1769472
Block count:              7077632
Reserved block count:     353881
Free blocks:              2226317
Free inodes:              1556333
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      1022
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
Flex block group size:    16
Filesystem created:       Fri May 22 13:31:59 2015
Last mount time:          Sat Sep 23 09:09:41 2017
Last write time:          Fri Feb  8 04:34:49 2019
Mount count:              35
Maximum mount count:      -1
Last checked:             Fri May 22 13:31:59 2015
Check interval:           0 (<none>)
Lifetime writes:          5566 GB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
First orphan inode:       407031
Default directory hash:   half_md4
Directory Hash Seed:      fe12f1ef-b23c-417a-be77-d13639eb2fbd
Journal backup:           inode blocks
[svcapp_su@SPV ~]$ 

SDV 서버 정보

SDV
[svcapp_su@SDV ~]$  cat /etc/*-release
CentOS Linux release 7.5.1804 (Core) 
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

CentOS Linux release 7.5.1804 (Core) 
CentOS Linux release 7.5.1804 (Core) 
[svcapp_su@SDV ~]$ 
--------------------------------------------------------------------
[svcapp_su@SDV ~]$ sudo docker info
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 2
Server Version: 18.09.1
Storage Driver: devicemapper
 Pool Name: docker-253:0-6987293-pool
 Pool Blocksize: 65.54kB
 Base Device Size: 10.74GB
 Backing Filesystem: xfs
 Udev Sync Supported: true
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data loop file: /var/lib/docker/devicemapper/devicemapper/data
 Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
 Data Space Used: 2.824GB
 Data Space Total: 107.4GB
 Data Space Available: 20.79GB
 Metadata Space Used: 2.351MB
 Metadata Space Total: 2.147GB
 Metadata Space Available: 2.145GB
 Thin Pool Minimum Free Space: 10.74GB
 Deferred Removal Enabled: true
 Deferred Deletion Enabled: true
 Deferred Deleted Device Count: 0
 Library Version: 1.02.149-RHEL7 (2018-07-20)
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: c4446665cb9c30056f4998ed953e6d4ff22c7c39
runc version: 4fc53a81fb7c994640722ac585fa9ca548971871
init version: fec3683
Security Options:
 seccomp
  Profile: default
Kernel Version: 3.10.0-693.17.1.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 15.51GiB
Name: SDV
ID: OGSW:4WOF:IZLP:WEGN:X4GM:4R77:5SJI:XTX2:6YPS:Z5LT:VZNK:6WSS
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine

WARNING: the devicemapper storage-driver is deprecated, and will be removed in a future release.
WARNING: devicemapper: usage of loopback devices is strongly discouraged for production use.
         Use `--storage-opt dm.thinpooldev` to specify a custom block storage device.
[svcapp_su@SDV ~]$ 
-------------------------------------------------------------------
[svcapp_su@SDV ~]$ cat /etc/fstab 

#
# /etc/fstab
# Created by anaconda on Thu Nov 16 15:57:16 2017
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/centos-root /                       xfs     defaults        0 0
UUID=49511eeb-6c6c-483c-a179-fdec499be1e3 /boot                   xfs     defaults        0 0
/dev/mapper/centos-swap swap                    swap    defaults        0 0
[svcapp_su@SDV ~]$ 
---------------------------------------------------------------------
[svcapp_su@SDV ~]$ xfs_info /dev/mapper/centos-root 
meta-data=/dev/mapper/centos-root isize=256    agcount=4, agsize=2948864 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=0        finobt=0 spinodes=0
data     =                       bsize=4096   blocks=11795456, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=0
log      =internal               bsize=4096   blocks=5759, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
[svcapp_su@SDV ~]$ 
  • No labels