RHEL

EC2 instance launched from AMI not reachable(ssh) after start/stop or reboot

与世无争的帅哥 提交于 2019-12-06 00:29:57
问题 When we launch an instance from an AMI. At first the instance is accessible(ssh). Once we stop/start the instance or reboot it the machine becomes inaccessible via ssh,we can ping it though. We see below error in System log. AMI ID used - ami-72dc9220 Instance - i-0896a15f - Linux rhel6.4 M1.large instance. ../ ******************* BLKFRONT for device/vbd/2049 ********** backend at /local/domain/0/backend/vbd/236/2049 Failed to read /local/domain/0/backend/vbd/236/2049/feature-barrier. Failed

RedHat7&CentOS7 忘记用户密码后强行修改

∥☆過路亽.° 提交于 2019-12-05 23:51:04
进入互动式命令环境 开机出现 grub boot loader 开机选项菜单时,立即点击键盘任意鍵, boot loader 会暂停。 按下 e ,编辑选项菜单。 移动上下鍵至 linux16 核心命令行: linux16 /vmlinuz-3.10.0-123.el7.x86_64 root=UUID=449d53d1-84c2-40c0-b05e-d1900591d71b ro rd.lvm.lv=vg_kvm7usb/swap crashkernel=auto vconsole.keymap=us crashkernel=auto vconsole.font=latarcyrheb-sun16 rd.lvm.lv=vg_kvm7usb/root rhgb quiet LANG=en_US.UTF-8 rd.break 在核心命令行最后追加 rd.break 。 再按下Ctrl+X 重新以这个设定开机。 修改密码过程 开机后的互动式命令环境,并不是正常开机的系统,正常开机系统挂载在 /sysboot 且挂载成只读,必须重新挂载成可写入,才能修改密码,步骤如下: 重新挂载 /sysroot 成可读可写,并切换到 /sysroot 。 switch_root:/# mount –o remount,rw /sysroot switch_root:/# chroot /sysroot

Linux RPM 安装命令总结

余生长醉 提交于 2019-12-05 20:00:29
Linux 安装时,除了几个核心模块以外,其余几乎所有的模块均通过RPM 完成安装。RPM 有五种操作模式,分别为:安装、卸载、升级、查询和验证。 1)用RPM安装软件包,最简单的命令如下: 1 #rpm -i example.rpm 安装 example.rpm 包; 2 #rpm -iv example.rpm 安装 example.rpm 包并在安装过程中显示正在安装的文件信息; 3 #rpm -ivh example.rpm 安装 example.rpm 包并在安装过程中显示正在安装的文件信息及安装进度 2)删除已安装的软件包 要卸载软件包example,只需输入以下这行命令: # rpm -e example 注意:软件包名是example,而不是rpm文件名"example.rpm"。 3)升级软件包 升级软件类似于安装软件: # rpm -Uvh example.rpm 用户要注意的是:rpm会自动卸载相应软件包的老版本。如果老版本软件的配置文件通新版本的不兼容,rpm会自动将其保存为另外一个文件,用户会看到下面的信息: saving /etc/example.conf as /etc/example.conf.rpmsave 这样用户就可以自己手工去更改相应的配置文件。 另外如果用户要安装老版本的软件,用户就会看到下面的出错信息: # rpm -Uvh

hacmp测试步骤(AIX)

。_饼干妹妹 提交于 2019-12-05 14:20:01
准备工作: 记录两个node的当前信息: ifconfig -a 如果db和ap的启动顺序有固定要求,需要检查相应的启动脚本(/sysadmin/hacmp下) lsvg -o df -k 测试: 1.网卡故障: a.拔掉service网卡网线: IP地址由standby网卡接管,应用无影响 ifconfig -a(standby网卡IP改变) b.插回service网卡网线: 不自动发生接管 c.拔掉standby网卡网线: IP地址由原service网卡接管,应用无影响 ifconfig -a(原service网卡IP恢复) d.插回standby网卡网线: 不自动发生接管 e.将service,standby网卡网线同时拔掉: node2接管node1的服务及IP 在node2上: tail -f /tmp/hacmp.out (可查看hacmp服务日志) ifconfig -a (查看node1的serviceIP是否已切换) lsvg -o (查看node1的VG是否都已varyon) df -k (查看node1的文件系统是否都已mount上) ps -ef |grep * (检查node1的服务进程是否都已启动) 在node1上: 启动hacmp smit clstart f.对node2执行相同操作. 2.主机故障: (应为非正常关机,但为保护server硬件

TCP参数调优详解

 ̄綄美尐妖づ 提交于 2019-12-05 12:11:55
在TCP/IP协议中,TCP协议提供可靠的连接服务,采用三次握手建立一个连接。 第一次握手:建立连接时,客户端发送syn包(syn=x)到服务器,并进入SYN_SEND状态,等待服务器确认; 第二次握手:服务器收到syn包,必须确认客户的SYN(ack=x+1),同时自己也发送一个SYN包(syn=y),即SYN+ACK包,此时服务器进入SYN_RECV状态; 第三次握手:客户端收到服务器的SYN+ACK包,向服务器发送确认包ACK(ack=y+1),此包发送完毕,客户端和服务器进入ESTABLISHED状态,完成三次握手。 完成三次握手,客户端与服务器开始传送数据,在上述过程中,还有一些重要的概念: 未连接队列:在三次握手协议中,服务器维护一个未连接队列,该队列为每个客户端的SYN包(syn=j)开设一个条目,该条目表明服务器已收到 SYN包,并向客户发出确认,正在等待客户的确认包。这些条目所标识的连接在服务器处于Syn_RECV状态,当服务器收到客户的确认包时,删除该条目, 服务器进入ESTABLISHED状态。 Backlog参数:表示未连接队列的最大容纳数目。 SYN-ACK 重传次数 服务器发送完SYN-ACK包,如果未收到客户确认包,服务器进行首次重传,等待一段时间仍未收到客户确认包,进行第二次重传,如果重传次数超 过系统规定的最大重传次数

XSP Configure fails due to mono module dependancy

坚强是说给别人听的谎言 提交于 2019-12-05 10:20:44
I have mono installed in my RHEL 5 machine which is visible as follows: which mono /usr/local/bin/mono mono -V Mono JIT compiler version 2.10.2 (tarball Wed Oct 16 10:33:49 CDT 2013) Copyright (C) 2002-2011 Novell, Inc and Contributors. www.mono-project.com TLS: __thread SIGSEGV: altstack Notifications: epoll Architecture: amd64 Disabled: none Misc: softdebug LLVM: supported, not enabled. GC: Included Boehm (with typed GC and Parallel Mark) When i try to run the configure script for xsp, it fails since it could not find mono. ./configure checking build system type... x86_64-unknown-linux-gnu

Docker - Creating base image with RHEL iso

泪湿孤枕 提交于 2019-12-05 05:36:44
I am trying to use a RHEL image for my project. Is there a way to create a base image with my RHEL 6's iso file? I am not using Fedora as it is beneficial for my project to use the RHEL distribution instead. If you want a fair bit of control, you may want to look into the script in the Docker contrib repository on Github. One of them is for "yum" based images, Centos in this case, but there's no reason it shouldn't work for RHEL. It bootstraps itself through a series of YUM installs. If you look at the usage: OPTIONS: -p "<packages>" The list of packages to install in the container. The

How can enable udev sync successfully in docker?

别说谁变了你拦得住时间么 提交于 2019-12-05 05:21:47
I have downloaded and install the static-linked docker 1.6.1 from this site , and run it on RHEL 7.1 : [root@localhost bin]# ./docker -d WARN[0000] Udev sync is not supported. This will lead to unexpected behavior, data loss and errors INFO[0000] +job init_networkdriver() INFO[0000] +job serveapi(unix:///var/run/docker.sock) INFO[0000] Listening for HTTP on unix (/var/run/docker.sock) INFO[0000] -job init_networkdriver() = OK (0) INFO[0000] Loading containers: start. INFO[0000] Loading containers: done. INFO[0000] docker daemon: 1.6.1 97cd073; execdriver: native-0.2; graphdriver: devicemapper

Using strace fixes hung memory issue

自闭症网瘾萝莉.ら 提交于 2019-12-05 05:17:54
I have a multithreaded process running on RHEL6.x (64bit). I find that the process hangs and some threads (of the same process) crash most of the time when I try to bring up the process. Some threads wait for shared memory between the threads to get created (I can see that all of it does not get created). But when I use strace , the process does not hang and it works just fine (all of the memory that is supposed to be created, gets created). Even interrupting strace after the memory gets created, keeps the process running fine for good. I have read this: strace fixes hung process which did

嵌入式文件系统简介(一) —— Linux MTD设备文件系统

笑着哭i 提交于 2019-12-05 05:13:41
1. 文件系统简介 文件系统是一种存储和组织计算机数据的方法,它使得对其访问和查找变得容易,文件系统使用文件和树形目录的抽象逻辑概念代替了硬盘和光盘等物理设备使用数据块的概念,用户使用文件系统来保存数据不必关心数据实际保存在硬盘(或者光盘)的地址为多少的数据块上,只需要记住这个文件的所属目录和文件名。在写入新数据之前,用户不必关心硬盘上的那个块地址没有被使用,硬盘上的存储空间管理(分配和释放)功能由文件系统自动完成,用户只需要记住数据被写入到了哪个文件中。 文件系统通常使用硬盘和光盘这样的存储设备,并维护文件在设备中的物理位置。但是,实际上文件系统也可能仅仅是一种访问数据的界面而已,实际的数据是通过网络协议(如NFS、SMB、9P等)提供的或者内存上,甚至可能根本没有对应的文件(如proc文件系统)。 严格地说,文件系统是一套实现了数据的存储、分级组织、访问和获取等操作的抽象数据类型(Abstract data type)。 2. 存储设备和文件系统的关系 在嵌入式系统中,与文件系统相关的存储设备包括硬盘、Flash存储器等。Flash存储器又分为Flash芯片设备(Raw Flash device,也叫MTD设备)和带Flash控制器的设备(Flash Translation Layer device, FTL设备),两者的关键区别是是否带有Flash控制器