New set up a replicat set, log in to primary, show dbs a look scared jump
The local database takes up more than 80 g of space
[Email protected] bin]#/mongo--host 10.1.1.31--port 27017
MongoDB Shell version:2.4.6
Connecting To:10.1.1.31:27017/test
Server has startup warnings:
Mon Jan 15:12:35.071 [Initandlisten]
Mon Jan 15:12:35.071 [initandlisten] * * Warning:you is running on a NUMA machine.
Mon Jan 15:12:35.071 [initandlisten] * * We suggest launching mongod like this to avoid performance problems:
Mon Jan 15:12:35.071 [initandlisten] * * Numactl--interleave=all Mongod [Other options]
Mon Jan 15:12:35.071 [Initandlisten]
Wxh:primary> Show DBS
Local 82.0380859375GB
[Email protected] db1]# ls-ltr
Total 86023348
-rwxr-xr-x. 1 root root 6 Jan 15:12 Mongod.lock
-RW-------. 1 root root 2146435072 Jan 15:13 local.40
-RW-------. 1 root root 2146435072 Jan 15:13 local.39
-RW-------. 1 root root 2146435072 Jan 15:13 local.38
-RW-------. 1 root root 2146435072 Jan 15:13 local.37
-RW-------. 1 root root 2146435072 Jan 15:13 local.36
-RW-------. 1 root root 2146435072 Jan 15:13 local.35
-RW-------. 1 root root 2146435072 Jan 15:13 local.34
-RW-------. 1 root root 2146435072 Jan 15:13 local.33
-RW-------. 1 root root 2146435072 Jan 15:13 local.32
-RW-------. 1 root root 2146435072 Jan 15:13 local.31
-RW-------. 1 root root 2146435072 Jan 15:13 local.30
Drwxr-xr-x. 2 root root 4096 Jan 15:13 Journal
-RW-------. 1 root root 2146435072 Jan 15:13 local.9
-RW-------. 1 root root 2146435072 Jan 15:13 local.8
-RW-------. 1 root root 2146435072 Jan 15:13 local.7
-RW-------. 1 root root 2146435072 Jan 15:13 local.6
-RW-------. 1 root root 2146435072 Jan 15:13 local.5
-RW-------. 1 root root 2146435072 Jan 15:13 local.4
-RW-------. 1 root root 2146435072 Jan 15:13 local.3
-RW-------. 1 root root 2146435072 Jan 15:13 local.29
-RW-------. 1 root root 2146435072 Jan 15:13 local.28
-RW-------. 1 root root 2146435072 Jan 15:13 local.27
-RW-------. 1 root root 2146435072 Jan 15:13 local.26
-RW-------. 1 root root 2146435072 Jan 15:13 local.25
-RW-------. 1 root root 2146435072 Jan 15:13 local.24
-RW-------. 1 root root 2146435072 Jan 15:13 local.23
-RW-------. 1 root root 2146435072 Jan 15:13 local.22
-RW-------. 1 root root 2146435072 Jan 15:13 local.21
-RW-------. 1 root root 2146435072 Jan 15:13 local.20
-RW-------. 1 root root 2146435072 Jan 15:13 local.2
-RW-------. 1 root root 2146435072 Jan 15:13 local.19
-RW-------. 1 root root 2146435072 Jan 15:13 local.18
-RW-------. 1 root root 2146435072 Jan 15:13 local.17
-RW-------. 1 root root 2146435072 Jan 15:13 local.16
-RW-------. 1 root root 2146435072 Jan 15:13 local.15
-RW-------. 1 root root 2146435072 Jan 15:13 local.14
-RW-------. 1 root root 2146435072 Jan 15:13 local.13
-RW-------. 1 root root 2146435072 Jan 15:13 local.12
-RW-------. 1 root root 2146435072 Jan 15:13 local.11
-RW-------. 1 root root 2146435072 Jan 15:13 local.10
-RW-------. 1 root root 2146435072 Jan 15:13 local.1
-RW-------. 1 root root 67108864 Jan 15:13 local.0
Drwxr-xr-x. 2 root root 4096 Jan 15:14 _tmp
-RW-------. 1 root root 16777216 Jan 15:26 local.ns
-RW-------. 1 root root 2146435072 Jan 15:26 local.41
[Email protected] db1]# df-h
Filesystem Size used Avail use% mounted on
/dev/mapper/vg_sys-lv_root
79G 3.4G 72G 5%/
Tmpfs 64G 76K 64G 1%/DEV/SHM
/DEV/SDA1 485M 39M 422M 9%/boot
/dev/mapper/vg_sys-lv_lsmp
148G 274M 140G 1%/LSMP
/dev/mapper/vg_sys-lv_opt
99G 13G 82G 14%/opt
/dev/mapper/vg_sys-lv_var
118G 11G 101G 10%/var
/dev/mapper/vg_mondb-lv_mondb
1.8T 369G 1.4T 22%/mongodata
Data catalog is mounted under/mongodata, because the Mongodata mount point has a capacity of 1.4T, so oplog default size is 5% mount point size, causing the local database too large problem
url:http://blog.itpub.net/22034023/viewspace-1073134