系统分区指导 1,Unless you have a reason for doing otherwise, we recommend that you create the following partitions for x86, AMD64, and Intel 64 systems: A swap partition A /boot partition A / partition A home partition a, Recommended System Swap Space Amount of RAM in the system Recommended swap space Recommended swap space if allowing for hibernation 2GB of RAM or less 2 times the amount of RAM 3 times the amount of RAM 2GB to 8GB of RAM Equal to the amount of RAM 2 times the amount of RAM 8GB to 64GB of RAM 0.5 times the amount of RAM 1.5 times the amount of RAM 64GB of RAM or more 4GB of swap space No extra space needed b, A /boot/ partition (250 MB) The GRUB bootloader in Red Hat Enterprise Linux 6 supports only the ext2, ext3, and ext4 (recommended) file systems. You cannot use any other file system for /boot, such as Btrfs, XFS, or VFAT. If you have a RAID card, be aware that some BIOSes do not support booting from the RAID card. In cases such as these, the /boot/ partition must be created on a partition outside of the RAID array, such as on a separate hard drive. c, A root partition (3.0 GB - 5.0 GB) The / (or root) partition is the top of the directory structure. The /root directory /root (sometimes pronounced "slash-root") directory is the home directory of the user account for system administration. d, A home partition (at least 100 MB) e, Minimum partition sizes Directory Minimum size / 250 MB /usr 250 MB, but avoid placing this on a separate partition /tmp 50 MB /var 384 MB /home 100 MB /boot 250 MB The PackageKit update software downloads updated packages to /var/cache/yum/ by default. If you partition the system manually, and create a separate /var/ partition, be sure to create the partition large enough (3.0 GB or more) to download package updates. If /usr is on a separate file system from /, the boot process becomes much more complex b
Linux下/etc/init.d和/etc/rc.d/rc.local的区别说明:
最终确定是shell环境问题,临时改为/bin/bash即可查看. 1.问题现象 # su - jingyu $ id uid=503(jingyu) gid=507(jingyu) groups=507(jingyu) $ ulimit -a ulimit: Command not found. 2.临时切换为/bin/bash即可查看 $ echo $SHELL /bin/csh $ bash $ ulimit -a core file size (blocks, -c) 0 data
【批量装机自动化】项目名称PXE + kickstart 实现无人值守批量装机 项目需求: 利用PXE + kickstart 技术实现无人值守装RHEL6和RHEL7系统 需要有台DHCP服务器为新装系统提供自动分配 分别在已经安装好的RHEL6和RHEL7系统上利用system-config-kickstart服务生成相应应答文件。 整体思路 1.装机条件准备 准备RHEL6和RHEL7两个以存在的系统 准备RHEL6和7的安装源(HTTP方式提供yum仓库) 以RHEL7系统为服务器提供DHCP和TFTP服务 配置DHCP服务 2 从真机上去提取ks-rhel6.cfg,并创建目录/var/www/html/rhel6以存放ks-rhel6.cfg。 scp root@192.168.4.10:/root/ks-rhel6.cfg /var/www/html/rhel6/ 2.红帽7上: 装system-config-kickstart软件包
RHEL.repo #cd /etc/yum.repos.d/ #mkdir bak/ #cp * bak/ #vi RHEL.repo ############################# [rhel6 ] name=rhel6 baseurl=file:///home/RHEL enabled=1 gpgcheck=0 ############################# 5.保存RHEL.repo RHEL.repo #cd /etc/yum.repos.d/ #mkdir bak/ #cp * bak/ #vi RHEL.repo ############################# [rhel6 ] name=rhel6 baseurl=ftp://192.9.169.99/pub/ enabled=1 gpgcheck=0 ############################# 2.注意上面的
systemctl管理服务的启动、重启、停止、重载、查看状态的命令: Sysvinit命令(红帽RHEL6系统) Systemctl命令(红帽RHEL7系统) 作用 service foo start status systemctl status foo.service 查看服务状态 systemctl设置服务的开机启动、不启动、查看各级别下服务启动状态的命令: Sysvinit命令(红帽RHEL6
本文档将分别介绍Ansible Tower在RHEL6和RHEL7上的安装。 3.3 软件依赖(RHEL) 操作系统版本 依赖 Red Hat Enterprise Linux 6 rhscl源 Red Hat Enterprise Linux 7 无 注:以上依赖源分别为RHEL6 从Ansible Tower 3.0开始,Tower在RHEL6上的运行环境是python2.7,所以在RHEL6上安装Tower不在依赖optional源,而是依赖于rhscl源。 RHEL6: # yum repolist --nopluginsrepo id repo name 5.安装Ansible Tower在RHEL6上 本小节介绍的是Ansible Tower在RHEL6上的标准安装,使用单节点,内置数据库。
RHEL6优化了内存申请的效率,而且在某些场景下对KVM的性能有明显提升:http://www.linux-kvm.org/wiki/images/9/9e/2010-forum-thp.pdf。 原本 transparent_hugepage 功能是在内核2.6.38之后才引入的,红帽在RHEL6就将此功能合并进来、详细还有待进一步了解。
关于RHEL6安装RAC权限绑定问题 红帽企业版 Linux 6.0 开始弃用 /etc/multipath.conf 配置文件中的mode、uid 和 gid 参数。 device-mapper 设备的权限(包括 multipath 映射)由 udev 规则设定,在我们安装RAC的过程中,对权限的给予是一个比较麻烦的问题,一般来说,无论是RHEL5还是RHEL6我们都会通过 UDEV来对权限做很好的控制,一下说明在RHEL6下通过两种方法对磁盘权限做控制 方法一: 如果使用的是linux自带的多路径软件我们可以使用如下: /usr/share/doc/device-mapper-version
redhat6.7_1 --ram 512 --disk path=/data/redhat6.7_1.img,size=30 --vcpus 1 --os-type linux --os-variant rhel6 disk path=/data/test02.qcow2,format=qcow2,size=10,bus=virtio --vcpus 1 --os-type linux --os-variant rhel6
id=Media import, time=Tue Mar 8 20:37:24 2016) Found a candidate signature: breed=redhat, version=rhel6 Found a matching signature: breed=redhat, version=rhel6 Adding distros from path /var/www/cobbler
(2)在1.10主机上安装ftp服务,搭建yum服务器,将系统安装光盘下的所有文件复制到/var/ftp/rhel6下,启动FTP 服务。 步骤: 1、按照实验拓扑图配置IP地址,实现可以ping通 2、把系统光盘挂载到/media目录下,并安装vsftpd服务 3、准备软件仓库目录:创建目录/var/ftp/rhel6 ,并把系统光盘全部复制到此目录下
在RHEL6中并没有/etc/hostname这个配置文件,因此怀疑很可能是当时实施安装的工程师是按照RHEL6的方法修改了主机名,但是由于/etc/hostname没有配置所以重启出现问题。
mnt/ # rpm -i /mnt/Packages/vsftpd-2.2.2-11.el6_4.1.x86_64.rpm # umount /dev/cdrom # mkdir /var/ftp/rhel6 # mount /dev/cdrom /var/ftp/rhel6/ # service vsftpd restart ? //仓库类别 name=Red Hat Enterprise Linux 6 //仓库名称 baseurl=ftp://192.168.3.10/rhel6 # cd /var/ftp/rhel6/images/pxeboot/ # cp vmlinuz initrd.img /var/lib/tftpboot/ 准备 PXE 引导程序,启动菜单文件 用于
因此RHEL6以及之后的版本,默认支持KVM,而放弃了Xen。Xen?Xen 是一个开放源代码虚拟机监视器,由剑桥大学开发。 总结在学习Linux的时候就遇到了RHEL6,因此Xen虚拟机基本都没有接触过,直接使用的是kvm。
db_unrecoverable_scn_tracking TRUE 对于参数的一些补充说明如下: 数据库实例禁用AMM特性,即不要设置memory_target RHEL6 以下,禁止设置filesystemio_options RHEL6中,推荐设置filesystemio_options=SETALL
墨墨导读:之前测试遇到过mtu修改不能滚动的情况,目前在自己测试环境重新反复验证发现正常是可以滚动的,下面梳理下整个实施方案:环境:RHEL6 + Oracle 11.2.0.4 RAC(2 nodes 之前测试遇到过mtu修改不能滚动的情况,目前在自己测试环境重新反复验证发现正常是可以滚动的,下面梳理下整个实施方案: 环境:RHEL6 + Oracle 11.2.0.4 RAC(2 nodes) /etc
/bin/bash rm -rf /etc/yum.repos.d/*.repo echo '[repo] name=rhel6 repo baseurl=file:///misc/cd enable= yum.repos.d/ repo rhel6.repo [root@centos67-x64 shell]# cat /etc/yum.repos.d/rhel6.repo [repo] name=rhel6
name node1 \ --noautoconsole \ --ram 512 \ --arch=x86_64 \ --vcpus=1 \ --os-type=linux \ --os-variant=rhel6 kvm_node1 \ --noautoconsole \ --ram 1024 \ --arch=x86_64 \ --vcpus=1 \ --os-type=linux \ --os-variant=rhel6
city-fan-for-curl.repo修改为以下内容:[CityFanforCurl]name=City Fan Repobaseurl=http://www.city-fan.org/ftp/contrib/yum-repo/rhel6