技术标签: OpsDev运维开发 OpsDev
今天早上使用内网gitlab仓库的时候,发现页面无法打开,ssh也无法连接。
到机房接上显示器,发现如下错误:
Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)
输入root密码,进入shell界面。
按照提示,使用命令查看日志
# journalctl -xb -p3 -- Logs begin at Tue 2017-09-05 09:34:14 CST, end at Tue 2017-09-05 10:15:57 CST. -- ....省略部分内容 Sep 05 09:34:18 localhost.localdomain kernel: :megaswr[ahci]: polling for interrupt status timed out for port=1, slot=0 Sep 05 09:34:18 localhost.localdomain kernel: :megasr[ahci]: warning PortReset called for port[1] Sep 05 09:34:18 localhost.localdomain kernel: :megasr[ahci]: device on port:[1] online:[0x133] [0] milliseconds after reset Sep 05 09:34:25 localhost.localdomain kernel: :megaswr[ahci]: polling for interrupt status timed out for port=1, slot=0 Sep 05 09:34:25 localhost.localdomain kernel: :megaswr[ahci]:Trouble port=1, slot=0 Sep 05 09:34:25 localhost.localdomain kernel: :megaswr[osl]: breakpoint called Sep 05 09:34:25 localhost.localdomain kernel: :megasr[ahci]: Device:[2:INTEL SSDSC2BW48] NCQ:[Yes] Queue Depth:[0x20] capacity=0x37e436b0 Sep 05 09:34:25 localhost.localdomain kernel: :megasr[ahci]: Device:[3:INTEL SSDSC2BW48] NCQ:[Yes] Queue Depth:[0x20] capacity=0x37e436b0 Sep 05 09:34:25 localhost.localdomain kernel: :megasr[ahci]: Device:[4:ST9500620NS ] NCQ:[Yes] Queue Depth:[0x20] capacity=0x3a386030 Sep 05 09:34:25 localhost.localdomain kernel: :megasr[ahci]: Device:[5:ST9500620NS ] NCQ:[Yes] Queue Depth:[0x20] capacity=0x3a386030 Sep 05 09:34:25 localhost.localdomain kernel: :megasr: raid 10 logical drive is degraded, is not initialized, has 2 spans, and has a size of 0x6f869000 sectors Sep 05 09:34:25 localhost.localdomain kernel: :megasr: raid 1 logical drive is online, is not initialized, has 2 drives, and has a size of 0x3a175800 sectors. Sep 05 09:34:25 localhost.localdomain kernel: :megasr[raid_key]: [ ] RAID5 support [ ] SAS drive support Sep 05 09:35:57 localhost.localdomain systemd[1]: Timed out waiting for device dev-sdc1.device.
在日志中看到,dev-sdc1设备出现问题。
查看磁盘分区情况
# fdisk -l Disk /dev/sdb: 499.0 GB, 498999492608 bytes, 974608384 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0xfcae2784 Device Boot Start End Blocks Id System /dev/sdb1 2048 1949216767 974607360 83 Linux WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion. Disk /dev/sda: 958.0 GB, 957997907968 bytes, 1871089664 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: gpt # Start End Size Type Name 1 2048 411647 200M EFI System EFI System Partition 2 411648 821247 200M Microsoft basic 3 821248 1871087615 891.8G Linux LVM Disk /dev/mapper/cl-root: 946.8 GB, 946834767872 bytes, 1849286656 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mapper/cl-swap: 10.7 GB, 10737418240 bytes, 20971520 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes
很明显,sdc没了,这才记起,当时安装系统的时候,因为多插了一块U盘,当时U盘被识别为sdb,这块磁盘被识别成了sdc。
查看fstab,证明了这一点。
# cat /etc/fstab # # /etc/fstab # Created by anaconda on Tue Aug 8 13:10:48 2017 # # Accessible filesystems, by reference, are maintained under ‘/dev/disk‘ # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info # /dev/mapper/cl-root / xfs defaults 0 0 UUID=a51fd6f8-a756-4e8f-ba44-5589fb99861e /boot xfs defaults 0 0 UUID=7D74-6C54 /boot/efi vfat umask=0077,shortname=winnt 0 0 /dev/mapper/cl-swap swap swap defaults 0 0 /dev/sdc1 /data ext4 defaults 0 0
看来要把写死的磁盘名称更改为UUID。
# blkid /dev/sdc1: UUID="ab4c28b5-1708-483c-973a-40f91d320a9d" TYPE="ext4" ...
修改后的fstab为
# cat /etc/fstab # # /etc/fstab # Created by anaconda on Tue Aug 8 13:10:48 2017 # # Accessible filesystems, by reference, are maintained under ‘/dev/disk‘ # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info # /dev/mapper/cl-root / xfs defaults 0 0 UUID=a51fd6f8-a756-4e8f-ba44-5589fb99861e /boot xfs defaults 0 0 UUID=7D74-6C54 /boot/efi vfat umask=0077,shortname=winnt 0 0 /dev/mapper/cl-swap swap swap defaults 0 0 UUID=ab4c28b5-1708-483c-973a-40f91d320a9d /data ext4 defaults 0 0
尝试重启daemon,仍然弹出同样错误。
# systemctl daemon-reload Error getting authority. Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)
exit退出shell,再次弹出该错误。
Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)
不用管,等待几秒,系统已经可以正常启动。
lingo求解最大流量问题代码极其希望CSDN能加入lingo,MATLAB等建模语言的代码染色方式model:sets:node/1..6/;road(node,node):w,a,f;endsetsdata:a=0,1,1,0,0,0,0,0,0,1,1,0,0,0,0,1,1,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0;w=0,3,4,0,0,0,0,0,0,6,4,0,0,0,0,5,3,0,0,0,0,0,0,7,0,0
认清形势,建立信心题目中给了 2e mod n2^e \ mod \ n2e mod n, 4e mod p4^e \ mod \ p4e mod p 和 8e mod p8^e \ mod \ p8e mod p。令它们分别为 ..._npuctf
package com.womow.zyzd.common.generator;import com.baomidou.mybatisplus.core.exceptions.MybatisPlusException;import com.baomidou.mybatisplus.core.toolkit.StringPool;import com.baomidou.mybatisplus.core.toolkit.StringUtils;import com.baomidou.mybatis.
git checkout -b 分支名称。git push origin 分支名称。
为Element框架的组件添加输入校验需求分析:<el-select filterable>...</el-select>组件为可输入搜索字段的选择框,但组件知道的@change事件并不会为输入进行事件触发,但需求需要为其进行输入校验。解决方法:首先找到组件里面的<input>元素。然后为其只读属性设置为false。最后为其添加input事件,并设置执行函数。代码展示:<template> <div class="countries-s_el-select校验
Linux下命令行cURL基本使用1. 获取页面内容2.显示 HTTP 头3. 将链接保存到文件4. 使用 -H 自定义 header5. 使用 -c 保存 Cookie6.使用 -b 读取 Cookie7.使用 -d 发送 POST 请求语法: # curl [option] [url] 1. 获取页面内容当我们不加任何选项使用 curl 时,默认会发送 GET 请求来获取链接内容到标准输出。curl http://www.codebelief.com2.显示 HTTP 头同时显示 HTT
首先我们来看一下问题先码在下面我们知道回溯法一般生成子集树和排列树,在这个问题中我们很容易得知我们要解决的问题是一个子集树,因为每个公民要么去要么不去,首先我们得找出可行解,当递归到了叶子节点的时候我们计算并更新最优值#include <iostream>using namespace std;int maxc=0;//定义最优值int n;//居民人数int m;//m对仇敌关系int x[51][51]={0};//定义邻接矩阵int a[51]={0};//定义解向量_部落卫队问题回溯法
遗传算法1.初探遗传算法Ok,先看维基百科对遗传算法所给的解释:遗传算法是计算数学中用于解决最优化的搜索算法,是进化算法的一种。进化算法最初是借鉴了进化生物学中的一些现象而发展起来的,这些现象包括遗传、突变、自然选择以及杂交等。遗传算法通常实现方式为一种计算机模拟。对于一个最优化问题,一定数量的候选解(称为个体)的抽象表示(称为染色体)的种群向更好的解进化。传统上,解用二进制表示(即0和1..._遗传算法公式
Database AdministrationThe DBA role:primarily concerned with "maintenance"/"ops" phasebut should be consulted during all phases of development"Database Administrator" or "DBA" often framed as a "job" ...
若有不对或者不合适的地方,求指出来,
文章转自:https://blog.csdn.net/hjimce/article/details/50866313一、背景意义本篇博文主要讲解2015年深度学习领域,非常值得学习的一篇文献:《Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift》,这个..._batchnormalization
先在vs的安装路径里找到:newc++file.cpp文件,然后点击鼠标右键找到文件所在位置,找到文件所在的位置后将该文件复制粘贴到桌面上然后在桌面将文件打开进行修改(可以在记事本里打开),打开文件后输入#define _CRT_SECURE_NO_WARNINGS 1#pragma warning(disable:6031),然后关闭文件保存,随后再将修改后的文件拖到源文件所在位置将源文件更换掉。完成后重新打开VS软件,新建一个项目之后就一直都可以正常使用啦,若想在已有文件上进行修改就只需手动在开头处