AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-236302

sherpaurgen's questions

Martin Hope
sherpaurgen
Asked: 2021-11-29 20:28:28 +0800 CST

由于磁盘/控制器速度慢而导致冻结启动

  • 2

我在戴尔 r740xd 上运行 ubuntu 20.04,其中一个磁盘控制器似乎在服务器启动时显示磁盘(用于 openzfs 池的多路径磁盘)速度很慢。如果服务器从“恢复模式”->“恢复正常启动”启动,则检测到慢速控制器磁盘并正常导入。直到现在我已经尝试通过编辑文件 /etc/default/grub 在 grub cmdline 选项中添加 rootdelay=300 选项

GRUB_CMDLINE_LINUX_DEFAULT="rootdelay=300"
update-grub
update-initramfs -u

但是我没有观察到任何延迟并且启动卡住了

如果控制器插槽从 BIOS 中禁用,服务器将正常启动而不使用恢复模式(但它不是一个选项)。

在此处输入图像描述

linux zfs grub zfsonlinux
  • 2 个回答
  • 73 Views
Martin Hope
sherpaurgen
Asked: 2018-08-01 01:38:20 +0800 CST

使用 ethtool 更改网络接口速度不起作用

  • 2

我使用的是具有 Gbps 以太网卡的 lenevo M5 服务器,但奇怪的是,当我读取 cat /sys/class/net/eth3/speed 时,它显示 100,类似地使用 ethtool 时它仅显示 100Mbps。dmesg 和 ethtool 的输出如下。知道为什么

root@server1:~# dmesg |grep eth1
[ 3.027487] tg3 0000:16:00.1 eth1: Tigon3 [partno(BCM95769) rev 5719001] (PCI Express) MAC address 08:94:ef:5d:81:a2
[ 3.027497] tg3 0000:16:00.1 eth1: attached PHY is 5719C (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[1])
[ 3.027503] tg3 0000:16:00.1 eth1: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[1] TSOcap[1]
[ 3.027508] tg3 0000:16:00.1 eth1: dma_rwctrl[00000001] dma_mask[64-bit]
[ 28.133071] bond0: Adding slave eth1
[ 28.249876] bond0: Enslaving eth1 as a backup interface with an up link
[ 53.149602] tg3 0000:16:00.1 eth1: Link is up at 100 Mbps, full duplex
[ 53.149620] tg3 0000:16:00.1 eth1: Flow control is off for TX and off for RX
[ 53.149624] tg3 0000:16:00.1 eth1: EEE is disabled

# ethtool eth3

Settings for eth3: 
Supported ports: [ TP ] 
Supported link modes: 10baseT/Half 10baseT/Full 
100baseT/Half 100baseT/Full 
1000baseT/Half 1000baseT/Full 
Supported pause frame use: No 
Supports auto-negotiation: Yes 
Advertised link modes: 100baseT/Full 
Advertised pause frame use: Symmetric 
Advertised auto-negotiation: Yes 
Link partner advertised link modes: 100baseT/Half 100baseT/Full 
1000baseT/Full 
Link partner advertised pause frame use: No 
Link partner advertised auto-negotiation: Yes 
Speed: 100Mb/s 
Duplex: Full 
Port: Twisted Pair 
PHYAD: 2 
Transceiver: internal 
Auto-negotiation: on 
MDI-X: off 
Supports Wake-on: g 
Wake-on: g 
Current message level: 0x000000ff (255) 
drv probe link timer ifdown ifup rx_err tx_err 
Link detected: yes 

当我尝试使用ethtool -s eth3 speed 1000 duplex full“速度”部分更改速度时为“未知”,类似地读取(cat)文件 /sys/class/net/eth3/speed 给出无效参数。

ubuntu
  • 2 个回答
  • 6259 Views
Martin Hope
sherpaurgen
Asked: 2017-11-30 00:31:21 +0800 CST

如何阻止 syslog 或 auditd/audisp 将主机信息添加到转发的日志文件?[复制]

  • 0
这个问题在这里已经有了答案:
使用 Syslogd 进行远程日志记录,我可以更改主机名吗? (3 个回答)
4年前关闭。

我已将 auditd 日志文件转发到中央日志服务器,但在中央日志服务器收到的日志添加了我不想要的额外信息。注意(auditd 和 syslog 位于同一台服务器上,其中 auditd 将 auditd 日志事件转发到其本地 syslog(local6 设施),本地 syslog 会将 local6.* 发送到中央日志服务器)

这是在中央日志服务器收到的日志,其中此“ <182>Nov 29 14:04:16 ubuntu audispd: node=ubuntu”由 syslog(在日志源)或 audisp(在日志源)附加

(auditd-->syslog-->) --> centralSyslog

<182>Nov 29 14:04:16 ubuntu audispd: node=ubuntu type=SYSCALL msg=audit(1511943556.347:424): arch=c000003e syscall=2 success=yes exit=3 a0=2647ca8 a1=90800 a2=2648317 a3=20 items=1 ppid=2726 pid=2727 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts1 ses=4 comm="bash" exe="/bin/bash" key="log_sec"
<182>Nov 29 14:04:16 ubuntu audispd: node=ubuntu type=CWD msg=audit(1511943556.347:424):  cwd="/tmp"
<182>Nov 29 14:04:16 ubuntu audispd: node=ubuntu type=PATH msg=audit(1511943556.347:424): item=0 name="/opt/secret_dir/" inode=918715 dev=fc:00 mode=040755 ouid=0 ogid=0 rdev=00:00 nametype=NORMAL
<182>Nov 29 14:04:16 ubuntu audispd: node=ubuntu type=PROCTITLE msg=audit(1511943556.347:424): proctitle="bash"

实际的日志文件如下所示:-

type=SYSCALL msg=audit(1511943489.078:423): arch=c000003e syscall=263 success=yes exit=0 a0=ffffff9c a1=12480c0 a2=0 a3=15e items=2 ppid=2727 pid=19367 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts1 ses=4 comm="rm" exe="/bin/rm" key="log_sec"
type=CWD msg=audit(1511943489.078:423):  cwd="/tmp"
type=PATH msg=audit(1511943489.078:423): item=0 name="/opt/secret_dir/" inode=918715 dev=fc:00 mode=040755 ouid=0 ogid=0 rdev=00:00 nametype=PARENT
type=PATH msg=audit(1511943489.078:423): item=1 name="/opt/secret_dir/password.txt" inode=918727 dev=fc:00 mode=0100644 ouid=0 ogid=0 rdev=00:00 nametype=DELETE
type=PROCTITLE msg=audit(1511943489.078:423): proctitle=726D002D7266002F6F70742F7365637265745F6469722F70617373776F72642E747874
type=SYSCALL msg=audit(1511943556.347:424): arch=c000003e syscall=2 success=yes exit=3 a0=2647ca8 a1=90800 a2=2648317 a3=20 items=1 ppid=2726 pid=2727 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts1 ses=4 comm="bash" exe="/bin/bash" key="log_sec"
type=CWD msg=audit(1511943556.347:424):  cwd="/tmp"
type=PATH msg=audit(1511943556.347:424): item=0 name="/opt/secret_dir/" inode=918715 dev=fc:00 mode=040755 ouid=0 ogid=0 rdev=00:00 nametype=NORMAL
type=PROCTITLE msg=audit(1511943556.347:424): proctitle="bash"

我的 audisp 配置文件如下所示(在 LogSource server1)

cat /etc/audisp/plugins.d/syslog.conf | grep -v "#"

active = yes
direction = out
path = builtin_syslog
type = builtin 
args = LOG_LOCAL6
format = string

rsyslog 配置文件如下所示(在源日志服务器 1)

猫 /etc/rsyslog.d/50-default.conf

 ..
local6.*     @@192.168.8.147:6161
linux
  • 1 个回答
  • 1244 Views
Martin Hope
sherpaurgen
Asked: 2017-05-07 07:50:35 +0800 CST

使用多个 ip 地址 tcp 检查远程服务器的端口

  • 0

我试图在端口 25 上 tcp 连接 yahoo 的邮件服务器。我有 3 个公共 IP 地址可以说:-

(all are allowed in SPF records)
99.99.99.99
77.77.77.77
88.88.88.88

如何使用特定 IP 地址远程登录(或其他检查)到 yahoos mta(检查是否允许我的所有三个 IP 地址向雅虎发送电子邮件)

linux
  • 2 个回答
  • 1178 Views
Martin Hope
sherpaurgen
Asked: 2017-03-30 00:45:47 +0800 CST

在centos 7机器上的同一个vlan上配置多个ip

  • 0

我现有的网络文件如下所示

# cat ifcfg-ens1.200
DEVICE=ens1.200
BOOTPROTO=static
ONBOOT=yes
IPADDR=172.16.2.10
NETMASK=255.255.255.0
USERCTL=no
NETWORK=172.16.2.0
VLAN=yes

如何设置在同一个vlan内分配另一个IP地址,下面是我尝试过的,但它给出了错误

# cat ifcfg-ens1:1.200
DEVICE=ens1:1.200
BOOTPROTO=static
ONBOOT=yes
IPADDR=172.16.1.253
NETMASK=255.255.255.0
USERCTL=no
NETWORK=172.16.1.0
VLAN=yes
centos
  • 1 个回答
  • 935 Views
Martin Hope
sherpaurgen
Asked: 2015-11-03 02:33:08 +0800 CST

如何使用 Icinga 版本 2 监控远程“https”?

  • 10

我在 VirtualBox 内的 ubuntu 14.04.3 上有 icinga 2.3.11。我试图在此处监视“https”端口 443,例如“ https://mail.google.com ”。以下是我的默认 host.conf 文件片段

object Host "mailserver-01" {
    import "generic-host"
    address = "74.125.136.17"    /* ip for mail.google.com */ 
    vars.os = "Linux"
    vars.http_vhosts["http"] = {
        http_uri = "/"
    }
    vars.http_ssl = "1"
    vars.http_warn_time = "5"
    vars.http_critical_time = "10"

    vars.notification["mail"] = {
        groups = [ "icingaadmins" ]
    }
}

下面是来自默认 services.conf 文件的片段

apply Service "httpS" {
    import "generic-service"
    check_command = "http"
    assign where host.name == "mailserver-01"
}

虽然 icingaweb2 仪表板显示 OK/green,但我不确定它是否正确

linux
  • 2 个回答
  • 20020 Views
Martin Hope
sherpaurgen
Asked: 2015-09-25 22:27:29 +0800 CST

PTR记录格式会影响邮件服务器的信誉吗

  • 0

我想知道 PTR 记录的格式是否会影响邮件服务器的声誉,例如:-

示例:-1

dig -X 162.254.148.198  (this ip belongs to mail.setopati.com)

;; ANSWER SECTION:
198.148.254.162.in-addr.arpa. 21577 IN  PTR 162-254-148-198.static.hvvc.us.

示例:-2(此假设示例)

dig -X 162.254.148.198
;; ANSWER SECTION:
198.148.254.162.in-addr.arpa. 21577 IN  PTR 162-254-148-198.mail.setopati.com.

这是一些googlemail反向记录,但答案与“mail.google.com”之类的不匹配 dig -x 216.58.220.37

;; ANSWER SECTION:
37.220.58.216.in-addr.arpa. 21599 IN    PTR maa03s18-in-f37.1e100.net.
37.220.58.216.in-addr.arpa. 21599 IN    PTR maa03s18-in-f37.1e100.net.
37.220.58.216.in-addr.arpa. 21599 IN    PTR maa03s18-in-f5.1e100.net.
linux
  • 3 个回答
  • 215 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve