Method used to install library files on Red Hat

0

Method used to install library files on Red Hat:
By default, not all library files are installed on Red Hat. Therefore, you need to use the yum software to install all library files.
The procedure for installing library files is as follows:
1. Insert the operating system installation CD-ROM into the server's CD-ROM drive.
Mount the CD-ROM. In this example, the CD-ROM is mounted to /source/mnt.
2. Edit the yum configuration file on the server.
The yum configuration file is saved under /etc/yum.repo.d/, including the following content:
[rhel-source]
name=Red Hat Enterprise Linux $releasever - $basearch - Source
baseurl=file:///source/mnt
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Change the baseur value and the gpgkey value based on the actual situation. Keep the defaults for other settings.
3. Check whether the yum configuration file is correctly configured.
Run the yum list available command. If information about the required installation package is displayed, the content of the yum configuration file is correct.
4. Install a library file.
For example, to install the ld-linux.so.2 library file, run the yum install ld-linux.so.2 command and proceed as prompted.

Other related questions:
Automatically mounting a file system using by-id in Red Hat
You can automatically mount a file system using by-id in Red Hat as follows: 1. Run the fdisk command to create partition sdb1. An ID is generated in the /dev/disk/by-id directory. If a file system exists, go to step 3 to modify configuration. 2. Create a file system. Run the mkfs -t ext3 /dev/sdb1 command to format sdb1 as ext3 file system. 3. Modify the /etc/fstab file and add the by-id of sdb1 to the file. 4. Restart the system. You can see that sdb1 has been automatically mounted.

Method used to configure the iSCSI initiator in Red Hat 5
You can configure the iSCSI initiator in Red Hat 5 as follows: Perform basic iSCSI configurations as follows: 1. Run the /etc/init.d/iscsi start command to start the iSCSI service. 2. Modify the configuration file /etc/iscsi/iscsid.conf. Specifically, set node.startup to automatic to enable automatic logins to the target. 3. Run the iscsiadm -m discovery -t st -p [targetip] command to discover the target. 4. Add ports detected on the storage array to corresponding hosts and map these ports to LUNs. 5. Run the iscsiadm -m node -p [targetip] -l command to register the target. 6. Run the chkconfig iscsi on command to automatically start the iSCSI service upon system startup. 7. Run the fdisk -l command to scan for the LUNs mapped to the host. Note: (1) You can perform an operation opposite to step 5 by running the iscsiadm -m node -p [targetip] -u command to deregister the target from the system. (2) Step 2 and step 6 aim to automatically restart the iSCSI service upon system startup. You can run the fdisk -l to automatically detect LUNs mapped to the host (including command devices). Configure CHAP as follows: 1. Run the following three commands in sequence to add the CHAP authentication to a target: iscsiadm -m node -o update -p [targetip] -n node.session.auth.authmethod -v CHAP iscsiadm -m node -o update -p [targetip] -n node.session.auth.username -v [chap user name] iscsiadm -m node -o update -p [targetip] -n node.session.auth.password -v [Chap auth passwd] 2. Configure the same user name and password for the target on the storage side by referring to the array operation guide. 3. Run the /etc/init.d/iscsi restart command to restart the iSCSI service. 4. If CHAP authentication for multiple targets is required, repeat the preceding steps.

Method used to configure the iSCSI initiator in Red Hat 4
The method used to configure the iSCSI initiator in Red Hat 4 is as follows: Perform basic iSCSI configurations as follows: 1. Run the vi /etc/iscsi.conf command to open the iSCSI configuration file. 2. In iscsi.conf file, search for DiscoveryAddress=xx.xx.xx.xx and delete the comment character (#) before the line. Add all addresses of the targets that connect to a host at the end of the line in the format of DiscoveryAddress=xx.xx.xx.xx, such as DiscoveryAddress=10.10.10.10. 3. Leave no indention at the beginning of DiscoveryAddress=xx.xx.xx.xx. Otherwise, when you run the fdisk -l command to scan for LUNs, the thread is suspended. If you restart the iSCSI service, the thread is still suspended. 4. Run the /etc/init.d/iscsi start to start the iSCSI service. Run the fdisk -l command to scan for the LUNs mapped to the host. 5. If you want to set the iSCSI service to be automatically started at boot time, run the chkconfig iscsi on command. Configure CHAP authentication as follows: 1. Run the vi /etc/iscsi.conf command to open the iSCSI configuration file. 2. Under the corresponding items of the target addresses that require CHAP authentication, configure the user name and password of targets for authentication as follows: OutgoingUsername=xxx OutgoingPassword=xxx. 3. The added user name and password must be the same as those added to the corresponding port of the disk array. Otherwise, the iSCSI connection is not set up successfully. 4. Run the /etc/init.d/iscsi restart command to restart the iSCSI service. Run the fdisk -l command and you can see mapped LUNs.

Installing OS on a server
Use the Huawei Server Compatibility Checker (http://support.huawei.com/onlinetoolsweb/ftca/en) to check the OS supported by the server. For details about the OS installation methods (using ServiceCD, DVD-ROM drive, image, and PXE), see OS Installation Guide. For details about the OS installation cases (including centOS, Citrix, Debian, Fedora, FreeBSD, Kylin, Oracle Linux, RedFlag, RedHat, Rocky, Solaris, SUSE, Ubuntu, VMware ESXi, and Windows), see http://support.huawei.com/huaweiconnect/enterprise/thread-286397.html.

HUAWEI SAN Storage Host Connectivity Guide for Red Hat
You can obtain HUAWEI SAN Storage Host Connectivity Guide for Red Hat from .

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top