V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  FenixVu  ›  全部回复第 2 页 / 共 4 页
回复总数  65
1  2  3  4  
2022-06-13 17:27:02 +08:00
回复了 FenixVu 创建的主题 Linux 删除/lib64/libstdc++.so 导致服务器无法启动
@julyclyde 菜了没思路(ToT)
2022-06-13 17:25:59 +08:00
回复了 FenixVu 创建的主题 Linux 删除/lib64/libstdc++.so 导致服务器无法启动
@U2FsdGVkX1
@whenov
我先试试,谢谢
2022-06-13 16:48:51 +08:00
回复了 FenixVu 创建的主题 Linux 删除/lib64/libstdc++.so 导致服务器无法启动
2022-05-12 15:13:10 +08:00
回复了 FenixVu 创建的主题 问与答 内网外能共用一个前端么?
@lower 我刚才也这么想的写了个批处理丢给客户,客户说公司上百台电脑,不可能一个个都去执行一遍
我最后绕了一圈还是单独部署了一个内网前端...
2022-05-12 11:56:57 +08:00
回复了 FenixVu 创建的主题 问与答 内网外能共用一个前端么?
@xiangyuecn 有啥实践的文档么
2022-05-12 11:49:05 +08:00
回复了 FenixVu 创建的主题 问与答 内网外能共用一个前端么?
@lower
```
listen 80;
listen 443 ssl;
server_name www.xxxcom;
ssl_certificate /var/log/nginx/xxxcom_bundle.pem;
ssl_certificate_key /var/log/nginx/xxx.com.key;

ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
ssl_prefer_server_ciphers on;

root /usr/share/nginx/html;
index index.html;

location / {
proxy_pass http://10.0.0.1:12345/;
}
```
这是外网访问 xxx 的请求转发到服务器 10.0.0.1 的 12345 上
但是我内网没法访问 xxx 啊
2022-05-12 11:36:00 +08:00
回复了 FenixVu 创建的主题 问与答 内网外能共用一个前端么?
@lower 请问这个需求 咋写啊是直接在 location 里 rewrite 么
2022-02-12 10:36:39 +08:00
回复了 FenixVu 创建的主题 Linux inode 没满,但是会随机报磁盘空间不足是啥问题?
@feedcode 我开始也考虑过是哈希问题,但是我想的方向是底层硬盘某一块满了,去查看后发现并没有,没往文件系统这块想,感谢你分享的文章看完后发现只能更换文件系统类型了
2022-02-11 17:56:55 +08:00
回复了 FenixVu 创建的主题 Linux inode 没满,但是会随机报磁盘空间不足是啥问题?
@duke807
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 16G 0 16G 0% /dev
tmpfs tmpfs 3.2G 338M 2.9G 11% /run
/dev/mapper/ubuntu--vg-root ext4 1.5T 700G 745G 49% /
tmpfs tmpfs 16G 4.0K 16G 1% /dev/shm
tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/sda1 ext2 720M 58M 626M 9% /boot
/home/hisee/.Private ecryptfs 1.5T 700G 745G 49% /home/hisee
overlay overlay 1.5T 700G 745G 49%



Filesystem Inodes IUsed IFree IUse% Mounted on
udev 4110911 430 4110481 1% /dev
tmpfs 4116178 865 4115313 1% /run
/dev/mapper/ubuntu--vg-root 100425728 35748318 64677410 36% /
tmpfs 4116178 2 4116176 1% /dev/shm
tmpfs 4116178 3 4116175 1% /run/lock
tmpfs 4116178 16 4116162 1% /sys/fs/cgroup
/dev/sda1 46848 299 46549 1% /boot
/home/hisee/.Private 100425728 35748318 64677410 36% /home/hisee
overlay 100425728 35748318 64677410 36% /var/lib/docker/overlay2/8bdfd3b8eb24e7422778b6e6ecc13a900bfa12bbad903fc283694d0148b511ca/merged
2022-02-11 17:07:07 +08:00
回复了 FenixVu 创建的主题 Linux inode 没满,但是会随机报磁盘空间不足是啥问题?
@huangmingyou 看不太懂

```
execve("/bin/mkdir", ["mkdir", ".minio.sys/buckets/nethospitalse"...], [/* 20 vars */]) = 0
brk(NULL) = 0x12bf000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=35801, ...}) = 0
mmap(NULL, 35801, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fbe711e3000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libselinux.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260Z\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=130224, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbe711e2000
mmap(NULL, 2234080, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fbe70da5000
mprotect(0x7fbe70dc4000, 2093056, PROT_NONE) = 0
mmap(0x7fbe70fc3000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e000) = 0x7fbe70fc3000
mmap(0x7fbe70fc5000, 5856, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fbe70fc5000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\t\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1868984, ...}) = 0
mmap(NULL, 3971488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fbe709db000
mprotect(0x7fbe70b9b000, 2097152, PROT_NONE) = 0
mmap(0x7fbe70d9b000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c0000) = 0x7fbe70d9b000
mmap(0x7fbe70da1000, 14752, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fbe70da1000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libpcre.so.3", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000\25\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=456632, ...}) = 0
mmap(NULL, 2552072, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fbe7076b000
mprotect(0x7fbe707d9000, 2097152, PROT_NONE) = 0
mmap(0x7fbe709d9000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6e000) = 0x7fbe709d9000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240\r\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=14608, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbe711e1000
mmap(NULL, 2109680, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fbe70567000
mprotect(0x7fbe7056a000, 2093056, PROT_NONE) = 0
mmap(0x7fbe70769000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7fbe70769000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260`\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=138696, ...}) = 0
mmap(NULL, 2212904, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fbe7034a000
mprotect(0x7fbe70362000, 2093056, PROT_NONE) = 0
mmap(0x7fbe70561000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7fbe70561000
mmap(0x7fbe70563000, 13352, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fbe70563000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbe711e0000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbe711de000
arch_prctl(ARCH_SET_FS, 0x7fbe711de800) = 0
mprotect(0x7fbe70d9b000, 16384, PROT_READ) = 0
mprotect(0x7fbe70561000, 4096, PROT_READ) = 0
mprotect(0x7fbe70769000, 4096, PROT_READ) = 0
mprotect(0x7fbe709d9000, 4096, PROT_READ) = 0
mprotect(0x7fbe70fc3000, 4096, PROT_READ) = 0
mprotect(0x611000, 4096, PROT_READ) = 0
mprotect(0x7fbe711ec000, 4096, PROT_READ) = 0
munmap(0x7fbe711e3000, 35801) = 0
set_tid_address(0x7fbe711dead0) = 62296
set_robust_list(0x7fbe711deae0, 24) = 0
rt_sigaction(SIGRTMIN, {0x7fbe7034fb50, [], SA_RESTORER|SA_SIGINFO, 0x7fbe7035b390}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x7fbe7034fbe0, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x7fbe7035b390}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
statfs("/sys/fs/selinux", 0x7ffe96852140) = -1 ENOENT (No such file or directory)
statfs("/selinux", 0x7ffe96852140) = -1 ENOENT (No such file or directory)
brk(NULL) = 0x12bf000
brk(0x12e0000) = 0x12e0000
open("/proc/filesystems", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
read(3, "nodev\tsysfs\nnodev\trootfs\nnodev\tr"..., 1024) = 392
read(3, "", 1024) = 0
close(3) = 0
open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1668976, ...}) = 0
mmap(NULL, 1668976, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fbe71046000
close(3) = 0
mkdir(".minio.sys/buckets/nethospitalserver/HISREPORT2022011300000686_7a1db02f905b445aa52e6e43134adfc6.xml", 0777) = -1 ENOSPC (No space left on device)
open("/usr/lib/x86_64-linux-gnu/charset.alias", O_RDONLY|O_NOFOLLOW) = -1 ENOENT (No such file or directory)
write(2, "mkdir: ", 7mkdir: ) = 7
write(2, "cannot create directory \342\200\230.mini"..., 129cannot create directory ‘.minio.sys/buckets/nethospitalserver/HISREPORT2022011300000686_7a1db02f905b445aa52e6e43134adfc6.xml’) = 129
write(2, ": No space left on device", 25: No space left on device) = 25
write(2, "\n", 1
) = 1
close(1) = 0
close(2) = 0
exit_group(1) = ?
+++ exited with 1 +++
```
2022-02-11 17:06:31 +08:00
回复了 FenixVu 创建的主题 Linux inode 没满,但是会随机报磁盘空间不足是啥问题?
@duke807 我这边确实都是小文件差不多 1000w,问题是我现在磁盘空间也有 inode 也有,我这边是一个 minio 的存储应该只有他在写文件
2022-02-09 09:24:42 +08:00
回复了 FenixVu 创建的主题 Linux 有迁移过 MiniO 的老哥么
@tommydong 恩我网上也开到了这个我试试
2022-02-09 09:24:24 +08:00
回复了 FenixVu 创建的主题 Linux 有迁移过 MiniO 的老哥么
@wellsc 光 rsync 数据文件没用 有.minio.sys 的索引也要同步过来 这个我在同步测试
2022-02-09 09:23:48 +08:00
回复了 FenixVu 创建的主题 Linux 有迁移过 MiniO 的老哥么
@th00000
就是从开始的几百兆的速度然后一直降 现在只有 100kb,1t 数据过年挂了 9 天 没动
2021-12-13 15:10:36 +08:00
回复了 FenixVu 创建的主题 问与答 求一个存储迁移方案
@novaeye 内网也可以嘛
2021-09-03 16:48:36 +08:00
回复了 FenixVu 创建的主题 Docker DockerApi 开不启,没思路求指点
最后百度了半天 /etc/docker/daemon.json 里添加
{
"hosts": ["tcp://0.0.0.0:9000", "unix:///var/run/docker.sock"]
}
生效了
2021-08-16 13:51:57 +08:00
回复了 mikulch 创建的主题 问与答 弱弱的请教一个 Loki 的配置问题
@mikulch 你这个咋配的
promtail 一个 job 的采集点下有多个日志 但是在一个 job 里展示完全不知道哪个是哪个 可以去 filename 里找但是一旦项目多了日志也就多了乱了不好找啊 能在多一级菜单么
https://wx2.sinaimg.cn/mw690/008b5Qi2gy1gtf7e2vwazj30w80eagmn.jpg
2021-08-16 11:25:21 +08:00
回复了 mikulch 创建的主题 问与答 弱弱的请教一个 Loki 的配置问题
@mikulch 这套你现在还在用么
2021-08-16 11:21:07 +08:00
回复了 mikulch 创建的主题 问与答 弱弱的请教一个 Loki 的配置问题
@FenixVu 恩有点类是我是一个 promtail 下配置了两个日志路径但是只能采集到第一个
```
scrape_configs:
- job_name: system
pipeline_stages:
- regex:
expression: '^(?P<timestamp>\d{4}-\d{2}-\d{2}\S\d{2}:\d{2}:\d{2}.\d+\+\d{2}:\d{2}).*'
- timestamp:
source: timestamp
format: RFC3339Nano
action_on_failure: skip
static_configs:
- targets:
- localhost
labels:
job: 59.110/mysql
__path__: /var/log/960c6986c8b14cb3d38a188962bfa75b251e07df56f486629acecdb53e2f6046/*.log

- job_name: test
pipeline_stages:
- regex:
expression: '^(?P<timestamp>\d{4}-\d{2}-\d{2}\S\d{2}:\d{2}:\d{2}.\d+\+\d{2}:\d{2}).*'
- timestamp:
source: timestamp
format: RFC3339Nano
action_on_failure: skip
static_configs:
- targets:
- localhost
labels:
job: 59.110/test
__path__: /var/log/1b60893eaa204cb44d4560eaae02ac0b8da16b51d733a2cd886be0f6c6e93cb2/*.log
```
2021-08-16 11:07:31 +08:00
回复了 mikulch 创建的主题 问与答 弱弱的请教一个 Loki 的配置问题
你到是说说咋解决的啊
1  2  3  4  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2484 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 18ms · UTC 05:17 · PVG 13:17 · LAX 21:17 · JFK 00:17
Developed with CodeLauncher
♥ Do have faith in what you're doing.