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-24008

osgx's questions

Martin Hope
osgx
Asked: 2014-03-27 10:32:43 +0800 CST

从 wtmp 解码所有记录

  • 2

/var/log/wtmp根据手册页http://linux.die.net/man/5/wtmp的 Linux 日志存储了许多系统事件的“utmp”事件,例如登录到它 (LOGIN_PROCESS ut_type)、更改运行级别 (RUN_LVL ut_type) 等。

有一个last实用程序,它解析 wtmp 并打印谁登录到系统,以及何时重新启动。

是否有工具可以显示日志中的其他记录wtmp?

将信息写入wtmp日志的过程是什么?

linux
  • 2 个回答
  • 2196 Views
Martin Hope
osgx
Asked: 2013-05-08 07:26:36 +0800 CST

将 root 从 lvm2 转换为 lvm2+raid1 (lvconvert --type raid1) 后出现“LV 状态不可用”

  • 0

我刚刚通过 lvm2 根文件系统从线性 lvm2(单个硬盘:sda)转换为 lvm2 raid1(使用lvconvert -m1 --type raid1 /dev/ubuntu/root /dev/sdb5命令)。但是在这次转换之后我无法启动我的 ubuntu 12.10 (kernel 3.5.0-17-generic)。

Initramfs 说它在 /dev/mapper 中找不到根文件系统:

Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
... (kernel messages)
Gave up waiting for root device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
   - Check root= (did the system wait for the right device?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  /dev/mapper/ubuntu-root does not exist.  Dropping to a shell!

有我的模块和 cmdline 列表:

(initramfs) cat /proc/modules
hid_generic
usbhid
hid
e1000
raid10
raid456
async_pq
async_xor
xor
async_memcpy
async_raid6_recov
raid6_pq
async_tx
raid1
raid0
multipath
linear
(initramfs) cat /proc/cmdline
BOOT_IMAGE=/vmlinux-3.5.0-17-generic root=/dev/mapper/ubuntu-root ro
(initramfs) ls /dev/mapper
control     ubuntu-swap_1

实用程序有输出lvm,表明根 LV 处于非活动状态/不可用:

lvm> pvscan
  PV /dev/sda5    VG ubuntu   lvm2 [ 13.76 GiB / 408.00 MiB free]
  PV /dev/sdb5    VG ubuntu   lvm2 [ 13.76 GiB / 508.00 MiB free]
lvm> vgscan
  Reading all physical volumes. This may take a while...
  Found volume group "ubuntu" using metadata type lvm2
lvm> lvscan
  inactive        '/dev/ubuntu/root' [13.26 GiB] inherit
  ACTIVE          '/dev/ubuntu/swap_1' [100.00 MiB] inherit

lvm> lvdisplay ubuntu
  --- Logical volume ---
  LV Path                /dev/ubuntu/root
  LV Name                root
  VG Name                ubuntu
  LV UUID                xxxxxxxxxxxxxxx
  LV Write Access        read/write
  LV Creation host, time ubuntu, 2013-05-07
  LV Status              NOT available          <<<<< !!!!
  LV Size                13.26 GB
  Current LE             3394
  Mirrored volumes       2
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto

在我lvchange -ay ubuntu的例子中,initrd 失败了:

lvm>  lvchange -ay ubuntu
  /sbin/modprobe failed: 1
  Can't process LV root: raid1 target support missing from kernel?

我的 initrd 中缺少哪个模块?现在我有了这个内核的完整模块集合,可以尝试任何模块。

raid
  • 1 个回答
  • 1634 Views
Martin Hope
osgx
Asked: 2010-03-05 23:38:35 +0800 CST

禁用子目录的 mod_proxy (apache)

  • 3

我有一个用于反向代理的文件夹的 apache:

<VirtualHost *:80>
 ...
 ProxyPass /site http://server.local:8989/site
 ProxyPassReverse /site http://server.local:8989/site
</VirtualHost *:80>

如何禁用 url 的 /site/IMAGES/* 代理?

apache-2.2 mod-proxy
  • 3 个回答
  • 8681 Views
Martin Hope
osgx
Asked: 2010-02-28 22:17:21 +0800 CST

适用于 Linux/XFree 或 X.Org 的 XScope 程序

  • 0

我在哪里可以找到用于带有 XFree/X.Org 的 Linux 的 XScope 程序、xlib 调用的调试器/跟踪器?

linux utilities
  • 1 个回答
  • 967 Views
Martin Hope
osgx
Asked: 2010-02-27 02:39:06 +0800 CST

"#< #5.1.3 SMTP; 553 抱歉,您的域不存在。> #SMTP#"

  • 0

我收到了错误

#< #5.1.3 SMTP; 553 sorry, your domain does not exists.> #SMTP#

这是什么意思?

它是来自服务器的带有 sendmail 的消息,发送到 domain3(使用 ms 交换)。

来自交易所的完整错误邮件(对不起,不是确切的消息,但从 ru 翻译成 en)

Diagnostic info for administrators:

Forming server: domain1_with_sendmail

user@domain3
#< #5.1.3 SMTP; 553 sorry, your domain does not exists.> #SMTP#

Exchange 是否从远程 smtp 错误中更改文本描述?

domain3 有“MX”记录,domain3 没有“A”记录,“www.domain3”只有一个

更新“所有域都是公共的并且具有完全限定的名称,所有 dns 都可以访问。”

更新 2:域 1 只有“A”记录,但没有 MX 记录。会不会有问题?

email exchange smtp sendmail
  • 2 个回答
  • 4288 Views
Martin Hope
osgx
Asked: 2010-02-26 16:47:11 +0800 CST

exim4 - 禁用关于“RCPT 后来自远程邮件服务器的 SMTP 错误”的自动回复

  • 2

我在其他服务器 domain2 前面的 domain1 上设置了 exim4(带有 sendmail)。第二台服务器无法直接访问互联网,因此 domain1 是 domain2 的 MX。并且 domain2 的设置与hubbed_hostdomain1 上的 exim4 相同。

当垃圾邮件发送者为 no_such_user@domain2 发送消息时,它的 sendmail 会拒绝:

550 5.1.1 <no_such_user@domain2>... User unknown

然后,域 1 的 exim4 执行如下自动回复:

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  no_such_user@domain2
    SMTP error from remote mail server after RCPT TO:<no_such_user@domain2>:
    host 10.0.0.1 [10.0.0.1]: 550 5.1.1 <no_such_user@domain2>... User
unknown

垃圾邮件发送者使用虚假的“发件人”字段,这样生成的消息会被 exim 冻结很长时间。

如何禁用 exim4 的部分或全部自动回复?理想情况下,我想要一个过滤器,如果消息未传递错误“用户未知”而不是不从邮件守护程序生成任何自动回复。

谢谢!

email smtp exim auto-reply
  • 2 个回答
  • 9325 Views
Martin Hope
osgx
Asked: 2010-02-04 17:58:53 +0800 CST

debian 5 (2.6.26) 中的 ext4

  • 2

ext4 是否已准备好在 debian 5(带有 linux 内核版本 2.6.26)中用于生产?它会是稳定的、没有糟糕的和没有错误的吗?

linux debian ext4 kernel kernel-panic
  • 3 个回答
  • 1566 Views
Martin Hope
osgx
Asked: 2010-02-04 15:17:11 +0800 CST

Debian - 在远程系统上调整根 ext3 分区的大小

  • 0

我想调整(缩小)远程 Debian 5.0 系统的根 ext3 fs 分区。没有LVM。

不使用livecd可以吗?例如通过自定义 initrd.img。

第二个问题 - 我可以指示 grub 仅在下一次重新启动时使用不同的选项,而不是在第二次及以后。

linux ext3 remote rootfs
  • 2 个回答
  • 2580 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