Oracle Database in Pacemaker Corosync Cluster
Oracle Database in Pacemaker Corosync Cluster Configuring an lvm volume with an ext4 file system Create an LVM physical volume pvcreate /dev/sdb1pvcreate /dev/sdc1 Create the volume group vgcreate data_vg /dev/sdb1vgcreate arch_vg /dev/sdc1 Create a logical volume lvcreate -l 100%FREE -n data_lv data_vglvcreate -l 100%FREE -n arch_lv arch_vg Create an ext4 file system mkfs.ext4 /dev/data_vg/data_lvmkfs.ext4 /dev/arch_vg/arch_lv Exclusive activation of a volume group in a cluster ...
Ansible configuration file
Ansible configuration file Ansible 按照如下位置和顺序来查找 ansible.cfg 文件: ANSIBLE_CONFIG 环境变量所指定的文件 当前目录下的 ansible.cfg 文件 Home 目录下的的.ansible.cfg 文件 /etc/ansible/ansible.cfg 文件 [defaults]inventory = ./inventoryremote_user = normaluserask_pass = false[privilege_escalation]become = truebecome_method = sudobecome_user = rootbecome_ask_pass = false ask_pass = false 需要配置 ssh 免密登录; become_ask_pass = false 需要在 sudoers 配置免密提权。
Configuring iSCSI Share on Linux
Configuring iSCSI Share on Linux iSCSI Directory Introduction /backstores/block is the location where local shared devices are stored. /iscsi/<target>/tpg1/luns stores the shared resource devices that have been added to the target. /iscsi/<target>/tpg1/acls is used to store the names of the clients that have access to the shared storage resources. /iscsi/<target>/tpg1/portals is used to specify the listening IP address and port that the client can access. iSCSI Target I...
PXE for BIOS
PXE for BIOS 为使用 BIOS 的 AMD64 和 Intel 64 客户端配置 PXE 服务器 安装 tftp 软件包。请作为 root 运行以下命令完成此步骤: [root@rhel-7 ~]# yum install tftp-server 在 /etc/xinet.d/tftp 配置文件中,将 disabled 参数从 yes 改为 no。 [root@rhel-7 ~]# vim /etc/xinetd.d/tftp# default: off# description: The tftp server serves files using the trivial file transfer \# protocol. The tftp protocol is often used to boot diskless \# workstations, download configuration files to network-aware printers, \# and to start the install...
Kickstart
Kickstart 通过编辑引导装载程序配置启动 Kickstart 安装 打开 PXE 服务器中的引导装载程序配置文件,并在合适的行中添加 inst.ks= 引导选项。该文件的名称及句法取决于您系统的架构和硬件: 在使用 BIOS 的 AMD64 和 Intel 64 系统中,该文件名称可以是 default,也可以是根据您的系统 IP 地址命名。因此,请在安装条目的 append 行中添加 inst.ks= 选项。该配置文件中 append 行示例类似如下: append initrd=initrd.img inst.ks=http://192.168.184.129/mnt/archive/RHEL-7/7.x/Server/x86_64/kickstarts/ks.cfg 在使用 GRUB2 引导装载程序(使用 UEFI 的 AMD64 和 Intel 64 系统,以及 IBM Power Systems Server)中,该文件名可能是 grub.cfg。在这个文件安装条目的 kernel 行添加 inst.ks= 选项。该配置文件 kernel 行示例如下:...
PXE for UEFI
PXE for UEFI 为使用 UEFI 的 AMD64 和 Intel 64 客户端配置 PXE 服务器 安装 tftp 软件包。请作为 root 运行以下命令完成此步骤: ~]# yum install tftp-server 在 /etc/xinet.d/tftp 配置文件中,将 disabled 参数从 yes 改为 no。 ~]# vim /etc/xinetd.d/tftp# default: off# description: The tftp server serves files using the trivial file transfer \# protocol. The tftp protocol is often used to boot diskless \# workstations, download configuration files to network-aware printers, \# and to start the installation process for some ope...
How to Shrink LVM XFS root partition
How to Shrink LVM XFS root partition RedHat 7.8 Reboot the system in Rescue Mode by booting Installation Media Select Rescue a Oracle Linux system. Select option 3 - Skip to shell. Preparing a backup by xfs_dump ~]# lvs --segments -o +devices LV VG Attr #Str Type SSize Devices data_lv data_vg -wi------- 1 linear 10.00g /dev/sdb1(0) log_lv log_vg -wi------- 1 linear 4.99g /dev/sdc1(0) home rhel -wi-a----- 1 linear 26.99g /dev/sda2(512) root ...
Adding a Storage Device or Path
Adding a Storage Device or Path Add New Disk for i in /sys/class/scsi_host/*; do echo "- - -" > ${i}/scan; done Expand Disk for i in /sys/class/scsi_device/*; do echo 1 > ${i}/device/rescan; done EMC PowerPath 确保存储端已配置好 LUN 并映射给 Linux 主机,扫描 SCSI 总线。 Add New Disk 执行 powermt config 配置新认到的磁盘,生成虚拟设备。 执行 powermt display 检查新识别到的 LUN 及设备路径。 执行 powermt save 保存。 Hitachi HDLM 确保存储端已配置好 LUN 并映射给 Linux 主机,扫描 SCSI 总线。 Add New Disk 执行 dlmcfgmgr -r 配置新认到的磁盘,生成虚拟设备。 执行 dlnkmgr view -lu 检查新识别到...
About HugePages
About HugePages 简介 HugePages 是 Linux 内核的一个特性,它允许更大的页面管理内存,以替代 4KB 的页面大小。 操作系统把逻辑地址映射成物理地址时,需要把映射关系也存储到一块内存中,这部分内容就是页表(PageTables)。计算机内存是通过表映射(页表)的方式进行内存寻址。CPU 拥有内置的内存管理单元,包含这些页面的列表,每个页面通过页表条目引用。当内存越来越大的时候, CPU 需要管理这些内存页的成本也就越高,这样会对操作系统的性能产生影响。 在 64 位机器上,目前系统默认内存以 4KB 为一个页,作为内存寻址的最小单元,随着内存和进程数的不断增大,页表的大小将会不断增大。内存是以块即页的方式进行管理的,当前大部分系统默认的页大小为 4096 bytes 即 4K 。 1MB 内存等于 256 页; 1GB 内存等于 256000 页。 ~]# getconf PAGESIZE4096 在 Linux 操作系统中,即使是同一块共享内存,每个进程中的逻辑地址也是不相同的,因此不同进程中的映射表项也不相同。在 64 位的机器上,每个 4k...
Changing and Resetting the Root Password
Changing and Resetting the Root Password RHEL 7 Setting up the root password is a mandatory part of the Red Hat Enterprise Linux 7 installation. If you forget or lose the root password it is possible to reset it, however users who are members of the wheel group can change the root password as follows: ~]$ sudo passwd root Note that in GRUB 2, resetting the password is no longer performed in single-user mode as it was in GRUB included in Red Hat Enterprise Linux 6. The root password is now ...














