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
    • 最新
    • 标签
主页 / server / 问题

问题[debian-jessie](server)

Martin Hope
Chris Woelkers
Asked: 2021-01-29 11:09:12 +0800 CST

ZFS 使多个新驱动器失败

  • 0

我们决定用一个类似的 12TB 驱动器系统替换我们老化的主 NAS,该系统由三个 48 驱动器 SAS 扩展器和 4TB 驱动器组成,同时重复使用大约一年前添加的一些较新的硬件、一个扩展器和 SAS 卡。做出决定是为了使事情尽可能简单和便宜,同时最终不占用任何额外的机架空间。

新硬件到货了,服务器和两个扩展器,并设置了 Debian Buster 和 buster-backports 存储库中可用的 ZFS。ZFS 池是使用两个 U.2 SSD 驱动器的镜像创建的,其中两个 U.2 SSD 驱动器用于缓存,另外两个 U.2 SSD 驱动器用于缓存,4 个 HDD 备用(每个扩展器 2 个)和 12 个 RAID-Z2 RAID,每个 7 个驱动器(每个扩展器 6 次袭击)。一切看起来都不错,我开始使用脚本将数据从旧 NAS 复制到这个,该脚本利用了增量快照、zfs 发送和 zfs 接收。

脚本的第一次运行花了很多天,但最终完成了。两端都没有问题。第二次运行也很有效。然后在第三次之后,ZFS 池出现了许多问题。在 4 次袭击中,大量磁盘的状态变为不可用或失败,所有 4 个备用磁盘都自动投入使用。zpool status 的输出如下。

# zpool status
  pool: bigvol
 state: DEGRADED
status: One or more devices is currently being resilvered.  The pool will
    continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
  scan: resilver in progress since Thu Jan 28 09:55:20 2021
    160T scanned at 11.5G/s, 151T issued at 10.8G/s, 160T total
    4.99T resilvered, 94.53% done, 0 days 00:13:46 to go
config:

    NAME                                           STATE     READ WRITE CKSUM
    bigvol                                         DEGRADED     0     0     0
      raidz2-0                                     ONLINE       0     0     0
        scsi-35000c500cacd481b                     ONLINE       0     0     0
        scsi-35000c500cacceddb                     ONLINE       0     0     0
        scsi-35000c500cacd5c4b                     ONLINE       0     0     0
        scsi-35000c500cacd19cb                     ONLINE       0     0     0
        scsi-35000c500cacd0f4f                     ONLINE       0     0     0
        scsi-35000c500cacd5efb                     ONLINE       0     0     0
        scsi-35000c500cacd133f                     ONLINE       0     0     0
      raidz2-1                                     ONLINE       0     0     0
        scsi-35000c500cab6617f                     ONLINE       0     0     0
        scsi-35000c500cacd131b                     ONLINE       0     0     0
        scsi-35000c500cacd1637                     ONLINE       0     0     0
        scsi-35000c500cacd0dd3                     ONLINE       0     0     0
        scsi-35000c500cab64247                     ONLINE       0     0     0
        scsi-35000c500cacd5f4b                     ONLINE       0     0     0
        scsi-35000c500cacd206b                     ONLINE       0     0     0
      raidz2-2                                     ONLINE       0     0     0
        scsi-35000c500cacd251f                     ONLINE       0     0     0
        scsi-35000c500cacf60a7                     ONLINE       0     0     0
        scsi-35000c500cacd55cb                     ONLINE       0     0     0
        scsi-35000c500cacd3a5f                     ONLINE       0     0     0
        scsi-35000c500cacd0fa7                     ONLINE       0     0     0
        scsi-35000c500cacd4cb3                     ONLINE       0     0     0
        scsi-35000c500cacd2edf                     ONLINE       0     0     0
      raidz2-3                                     DEGRADED     0     0     0
        scsi-35000c500cacd1627                     ONLINE       0     0     0
        scsi-35000c500cacd049f                     ONLINE       0     0     0
        scsi-35000c500cacdf9d3                     ONLINE       0     0     0
        scsi-35000c500cab51563                     DEGRADED     0     0     1  too many errors  (resilvering)
        scsi-35000c500cacd1c9b                     DEGRADED     0     0     0  too many errors
        scsi-35000c500cacdf757                     FAULTED      0    10    48  too many errors  (resilvering)
        scsi-35000c500cacd291b                     FAULTED      0    11    31  too many errors  (resilvering)
      raidz2-4                                     DEGRADED     0     0     0
        spare-0                                    DEGRADED     0     0    11
          scsi-35000c500cacdb54f                   FAULTED      0    18     0  too many errors  (resilvering)
          scsi-35000c500cacdc907                   DEGRADED     0     0     0  too many errors  (resilvering)
        scsi-35000c500cacd2c77                     DEGRADED     0     0     4  too many errors
        scsi-35000c500cacdbdd3                     DEGRADED     0     0    12  too many errors  (resilvering)
        scsi-35000c500cacd0a47                     DEGRADED     0     0     7  too many errors  (resilvering)
        scsi-35000c500cacdf107                     DEGRADED     0     0     4  too many errors  (resilvering)
        scsi-35000c500cacd59fb                     DEGRADED     0   195    79  too many errors  (resilvering)
        scsi-35000c500cacd5307                     DEGRADED     0   177    30  too many errors  (resilvering)
      raidz2-5                                     DEGRADED     0     0     0
        spare-0                                    DEGRADED     0     0    15
          scsi-35000c500cacd03a3                   FAULTED      0    12     0  too many errors  (resilvering)
          scsi-35000c500cacd340b                   ONLINE       0     0     0
        scsi-35000c500cacd29d7                     FAULTED      0    21    24  too many errors  (resilvering)
        scsi-35000c500cacd23d7                     DEGRADED     0     0    11  too many errors  (resilvering)
        scsi-35000c500cacd1c27                     DEGRADED     0     0    29  too many errors  (resilvering)
        spare-4                                    DEGRADED     0     0    32
          scsi-35000c500cacd26bb                   FAULTED      0    31     0  too many errors  (resilvering)
          scsi-35000c500cacd299f                   DEGRADED     0     0     0  too many errors  (resilvering)
        scsi-35000c500cacd258b                     DEGRADED     0   207    63  too many errors  (resilvering)
        spare-6                                    DEGRADED     0     0    24
          scsi-35000c500cacdf867                   FAULTED      0    15     0  too many errors  (resilvering)
          scsi-35000c500cacd60ef                   ONLINE       0     0     0
      raidz2-6                                     DEGRADED     0     0     0
        scsi-35000c500cacd2e37                     ONLINE       0     0     0
        scsi-35000c500cacd0ecf                     ONLINE       0     0     0
        11839096008852004814                       UNAVAIL      0     0     0  was /dev/disk/by-id/scsi-35000c500cacd1f8f-part1
        scsi-35000c500cacd088b                     ONLINE       0     0     0
        scsi-35000c500cacd28df                     ONLINE       0     0     0
        scsi-35000c500cacd068b                     ONLINE       0     0     0
        scsi-35000c500cacdbd77                     ONLINE       0     0     0
      raidz2-7                                     ONLINE       0     0     0
        scsi-35000c500cacd040b                     ONLINE       0     0     0
        scsi-35000c500cacd16bb                     ONLINE       0     0     0
        scsi-35000c500cacd4d37                     ONLINE       0     0     0
        scsi-35000c500cacd1b57                     ONLINE       0     0     0
        scsi-35000c500cacd0453                     ONLINE       0     0     0
        scsi-35000c500cacd3f6b                     ONLINE       0     0     0
        scsi-35000c500cacd0297                     ONLINE       0     0     0
      raidz2-8                                     ONLINE       0     0     0
        scsi-35000c500cacd4bcb                     ONLINE       0     0     0
        scsi-35000c500cacd36cf                     ONLINE       0     0     0
        scsi-35000c500cacd1983                     ONLINE       0     0     0
        scsi-35000c500cacd3aaf                     ONLINE       0     0     0
        scsi-35000c500cacda90b                     ONLINE       0     0     0
        scsi-35000c500cacd0d53                     ONLINE       0     0     0
        scsi-35000c500cacdaa1f                     ONLINE       0     0     0
      raidz2-9                                     ONLINE       0     0     0
        scsi-35000c500cacd3f13                     ONLINE       0     0     0
        scsi-35000c500cacd3187                     ONLINE       0     0     0
        scsi-35000c500cacd59a3                     ONLINE       0     0     0
        scsi-35000c500cacd0913                     ONLINE       0     0     0
        scsi-35000c500cacdf663                     ONLINE       0     0     0
        scsi-35000c500cacd156b                     ONLINE       0     0     0
        scsi-35000c500cacd203f                     ONLINE       0     0     0
      raidz2-10                                    ONLINE       0     0     0
        scsi-35000c500cacd4c97                     ONLINE       0     0     0
        scsi-35000c500cacd58a3                     ONLINE       0     0     0
        scsi-35000c500cacd2353                     ONLINE       0     0     0
        scsi-35000c500cacd3f67                     ONLINE       0     0     0
        scsi-35000c500cacd235f                     ONLINE       0     0     0
        scsi-35000c500cacdf14f                     ONLINE       0     0     0
        scsi-35000c500cacd2583                     ONLINE       0     0     0
      raidz2-11                                    ONLINE       0     0     0
        scsi-35000c500cacd2f87                     ONLINE       0     0     0
        scsi-35000c500cacdb557                     ONLINE       0     0     0
        scsi-35000c500cacd00f3                     ONLINE       0     0     0
        scsi-35000c500cacd3ea7                     ONLINE       0     0     0
        scsi-35000c500cacd23ff                     ONLINE       0     0     0
        scsi-35000c500cacd09d3                     ONLINE       0     0     0
        scsi-35000c500cacd3adb                     ONLINE       0     0     0
    logs    
      mirror-12                                    ONLINE       0     0     0
        nvme-eui.343842304db011100025384700000001  ONLINE       0     0     0
        nvme-eui.343842304db011060025384700000001  ONLINE       0     0     0
    cache
      nvme-eui.343842304db010920025384700000001    ONLINE       0     0     0
      nvme-eui.343842304db011080025384700000001    ONLINE       0     0     0
    spares
      scsi-35000c500cacdc907                       INUSE     currently in use
      scsi-35000c500cacd299f                       INUSE     currently in use
      scsi-35000c500cacd340b                       INUSE     currently in use
      scsi-35000c500cacd60ef                       INUSE     currently in use

errors: No known data errors

出于显而易见的原因,我已停止传输,并正在等待重新同步结束,然后再更换 FAULTED 和 UNAVAIL 驱动器。但是我想知道是否应该更换 DEGRADED 驱动器?另外,如果有人知道为什么会发生这种情况?(除了一组坏驱动器的可能性之外。)或者我只需要杀死池并更换驱动器。无论哪种方式,我都认为必须再次复制数据。

zfs debian-buster debian-jessie
  • 1 个回答
  • 83 Views
Martin Hope
SeinopSys
Asked: 2017-02-05 14:32:40 +0800 CST

无法在 Debian Jessie 上安装 openjdk-8-jre-headless

  • 29

这个星期五,我在跑步时看到由于某种原因我有 2 个被保留的软件包apt-get upgrade,所以我自然而然地做了任何没有经验的系统管理员都会做的事情并卸载了这些软件包,希望我可以简单地重新安装它们并解决问题。

我几乎不知道,我只是让情况变得更糟。当我尝试重新安装openjdk-8-jre-headless时,我得到了这个:

$ apt-get install openjdk-8-jre-headless
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 openjdk-8-jre-headless : Depends: ca-certificates-java but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我尝试手动升级提到的软件包,但无济于事。

$ apt-get upgrade ca-certificates-java
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... ca-certificates-java is already the newest version.
Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

环顾四周,我在任何地方都没有提到解决这个确切错误的方法。

我在重新启动的服务器上使用 ElasticSearch,但我应该预料到它此时不会启动。所以现在我没有 Java,我的用户也没有搜索。发生了什么事,我该如何解决?

java debian apt debian-jessie
  • 4 个回答
  • 65136 Views
Martin Hope
TheBrick
Asked: 2017-02-05 05:03:44 +0800 CST

如果 samba 共享脱机,则停止 apache 服务

  • 1

我正在 debian jessie 服务器上从 fstab 安装 samba 网络共享。在这些共享上,我正在存储 apache2 网络服务器使用的文件。

如果网络共享脱机,有没有办法停止 apache2 服务?

apache-2.4 systemd debian-jessie
  • 1 个回答
  • 48 Views
Martin Hope
Rainer
Asked: 2017-01-31 06:35:31 +0800 CST

Proftp 服务器在登录时给出“没有这样的文件或目录”,即使目录存在

  • 0

我在https://www.howtoforge.com/tutorial/proftpd-installation-on-debian-and-ubuntu/之后在新的和更新的 Debian Jessie 8.7 上设置了一个新的 proftp 实例,但新用户再次断开连接(任何用户 -甚至 root e=when allowed) 成功登录后:

03:20:55 ~$ ftp otrupload@ftpserver:21
Connected to ftpserver.
220 ProFTPD 1.3.5 Server (Debian) [192.168.1.101]
331 Password required for otrupload
Password:
230 User otrupload logged in
Remote system type is UNIX.
Using binary mode to transfer files.
200 Type set to I
local: 21 remote: 21
229 Entering Extended Passive Mode (|||49865|)
550 21: No such file or directory
221 Goodbye.
03:22:14 ~$

我的配置如下所示(我将其修剪以查看发生了什么):

# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6                         off
# If set on you can experience a longer connection delay in many cases.
IdentLookups                    off

ServerName                      "Debian"
ServerType                      standalone
DeferWelcome                    off

MultilineRFC2228                on
DefaultServer                   on
ShowSymlinks                    on

TimeoutNoTransfer               600
TimeoutStalled                  600
TimeoutIdle                     1200

DisplayLogin                    welcome.msg
DisplayChdir                    .message true
ListOptions                     "-l"

DenyFilter                      \*.*/

# Port 21 is the standard FTP port.
Port                            21

MaxInstances                    30

# Set the user and group that the server normally runs at.
User                            proftpd
Group                           nogroup

# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask                           022  022
# Normally, we want files to be overwriteable.
AllowOverwrite                  on


TransferLog /var/log/proftpd/xferlog
SystemLog   /var/log/proftpd/proftpd.log



<Global>
    RootLogin   off
    RequireValidShell off
</Global>

DefaultRoot  /ftpshare/

<Limit LOGIN>
    DenyGroup !ftpgroup
</Limit>

的主目录otrupload是\ftpshare

# echo ~otrupload
/ftpshare

它具有以下权限:

drwxrwxrwt  2 otrupload otrupload      4096 Jan 30 06:04 ftpshare

有什么建议吗?它在我上次安装时工作,我遵循完全相同的方向?

proftpd debian-jessie
  • 3 个回答
  • 2553 Views
Martin Hope
Alexandru R
Asked: 2017-01-29 09:41:32 +0800 CST

如何在 fstab 中设置 noatime

  • 0

我正在根据本文安装 Mongo 3.4,并说要在 /etc/fstab 中设置 noatime

在给出的示例中,它看起来像:

LABEL=cloudimg-rootfs   /        ext4   defaults,noatime,discard        0 0

但是我的,使用 Debian 8(从 7 升级)在数字海洋上的一个小滴看起来像这样:

UUID=5bc31ecc-d864-44dc-bea4-d409696cb577 /               ext4    errors=remount-ro 0       1
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0

我刚开始使用系统管理员的东西,并想确保一切正常。我应该如何添加noatime?

filesystems debian-jessie
  • 1 个回答
  • 1927 Views
Martin Hope
muruga
Asked: 2017-01-23 20:51:44 +0800 CST

Lenovo Thinkserver RD450 未检测到硬盘

  • 0

我们购买了一台新的联想 ThinkServer RD450机架式服务器。

它有两个 1 GB 的硬盘。我们在服务器中配置了RAID 1,然后开始安装 Debian Jessie OS。在安装过程中,分区步骤中没有显示硬盘。我尝试使用 Ubuntu Live 启动系统,那时我能够分别看到两个硬盘。请让我知道我是否应该安装 RAID 驱动程序来检测硬盘,并让我知道我应该使用什么 RAID 驱动程序。

linux-kernel megaraid debian-jessie
  • 1 个回答
  • 602 Views
Martin Hope
Nenroz
Asked: 2017-01-23 14:47:40 +0800 CST

Nginx - 设置子域无法正常工作

  • 1

一开始,我创建了一个 conf 文件,当我想访问时可以正常工作http://www.domain.com:

server {
   listen 80;
   listen [::]:80;

   root /var/www/domain;
   index index.html

   server_name domain.com www.domain.com;
}

然后我决定为子域创建另一个 conf 文件:

server {
   listen 80;
   listen [::]:80;

   root /var/www/subdomain.domain;
   index index.html

   server_name subdomain.domain.com;
}

现在的问题是,每当我想访问http://www.domain.comorhttp://subdomain.domain.com时,在这两种情况下,结果都是我应该为子域获取的页面。

新的 conf 文件已正确添加到site-enabled文件夹:

ln -s /etc/nginx/site-available/subdomain.domain.conf /etc/nginx/site-enabled/subdomain.domain.conf

这就是我的 DNS 记录的样子:

domain.com. IN A <server_ip>
www.domain.com. IN A <server_ip>
subdomain.domain.com. IN A <server_ip>
domain-name-system subdomain nginx debian-jessie
  • 1 个回答
  • 1575 Views
Martin Hope
Marco Brenna
Asked: 2017-01-20 10:15:52 +0800 CST

cpu 100% 与 Debian 8 上的 tomcat 7

  • 0

我对 Debian 8 上的 tomcat 7 的默认配置有疑问。

问题:我得到了服务器的 cpu,由于 java 进程,跳转到 100% 并在那里停留数小时,使服务器变慢。如果我重新启动 tomcat 服务器,cpu 将再次变为 1%。几个小时后,问题又开始了。

Java 应用程序状态:在 tomcat 上没有安装自定义 Java 应用程序,因此这可能是 tomcat 问题。

日志:观看 catalina.out 我发现此错误消息与 cpu pitch start 相对应

2017 年 1 月 19 日上午 1:03:23 org.apache.coyote.http11.AbstractHttp11Processor 进程信息:解析 HTTP 请求标头时出错

如何复制:服务器重新启动后,我尝试通过 Web 浏览器访问此 URL 来使用 https 访问 Tomcat 服务器主页

https://domain.com:8080

瞧,cpu 开始发疯,我像以前一样得到日志。

这是什么意思:这意味着每个有特殊请求的人都可以对我的服务器进行 DDOS

问题:有没有办法在不改变我的 Linux 发行版或 apt 使用的打包版本的 tomcat 的情况下解决这个问题?

我正在使用来自 Google Compute Engine 的全新 debian 8 默认映像。Tomcat 7.0.56 Java 1.7.0_111

tomcat debian debian-jessie tomcat7
  • 3 个回答
  • 1668 Views
Martin Hope
Sasha MaximAL
Asked: 2017-01-14 05:26:12 +0800 CST

拒绝 exim4 接收所有电子邮件

  • 1

我有一个全新的安装,没有对机器exim4进行任何调整。Debian 8.6

我用它从 PHP 发送电子邮件:

; /etc/php5/fpm/conf.d/mail.ini 
[mail function]
sendmail_path = /usr/sbin/exim4 -t
mail.add_x_header = On
mail.log = syslog

最近我们开始收到很多垃圾邮件,由于不存在收件人,exim 试图发回这些邮件。

所以,我的问题是:如何完全拒绝exim4接收任何外部电子邮件?(也许不包括一些本地电子邮件,如 cron 电子邮件。)

谢谢你。


正如@slipeer所指出的,我的进出口银行已经没有收到任何外部电子邮件。所以我提出了一个不同的问题:

拒绝某些本地用户(不是地址)从 exim4 发送电子邮件

debian email exim deny debian-jessie
  • 1 个回答
  • 405 Views
Martin Hope
mahatmanich
Asked: 2017-01-08 15:27:45 +0800 CST

在 debian 8 上使用 nginx 设置 xymon 在 cgi 脚本上给出 403

  • 0

我正在尝试在 debian 上使用 nginx 设置 xymon,并且我已经完成了初始设置。

但是,每当我点击 cgi 脚本时,我都会收到 403 错误。

这是我的设置:

server {
        listen 127.0.0.1:8081;

        server_name localhost;
        index       index.html;
        root        /var/lib/xymon/www;

        error_log /var/log/nginx/xymon.error.log;
        access_log /var/log/nginx/xymon.access.log;

        location /xymon/ {
                alias /var/lib/xymon/www/;
        }

        location /cgi-bin/ {
                alias /usr/lib/xymon/cgi-bin/;
        }

        location /cgi-secure/ {
                alias  /usr/lib/xymon/cgi-secure/;
        }

       location ~ ^/.*\.sh$ {
                gzip off;
                fastcgi_param SCRIPT_NAME $fastcgi_script_name;
                fastcgi_param DOCUMENT_ROOT /var/lib/xymon/;
                fastcgi_param REMOTE_USER $remote_user;
                include fastcgi_params;
                fastcgi_pass unix:/var/run/fcgiwrap.socket;
       }
}

我试图从这个 freeBSD 设置中对其进行调整: https ://blog.feld.me/posts/2014/11/setting-up-xymon-with-nginx/

我得到一些无用的日志:127.0.0.1 - - [08/Jan/2017:00:25:14 +0100] "GET /cgi-bin/findhost.sh HTTP/1.1" 403 25

有没有人用 nginx 在 debian 上设置 xymon 并让它工作?

fastcgi nginx debian-jessie xymon
  • 1 个回答
  • 684 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