9–iSCSI Configuration
Open-iSCSI and Boot from SAN Considerations
155
AH0054601-00 B
6.
Create a backup of the original
grub.cfg
file, which is in the following
locations:
For legacy boot:
/boot/grub2/grub.cfg
For UEFI boot:
/boot/efi/EFI/redhat/grub.cfg
or
/boot/grub2/grub.cfg
7.
Create a new
grub.cfg
by issuing the following command:
grub2-mkconfig -o <name of new grub.cfg>
8.
Compare the old
grub.cfg
file with the new
grub.cfg
file to verify that
your changes have been made.
9.
Replace the original
grub.cfg
file with the new
grub.cfg
file.
10.
Create a new initramfs image by issuing the following command:
dracut –-force
11.
For the RHEL 7.x OS distro
only
, complete the following steps:
a.
Restore the following iscsid configuration file:
vi /usr/lib/systemd/system/iscsid.service
Locate the following lines:
#ExecStart=/usr/sbin/iscsid
#ExecStop=/sbin/iscsiadm -k 0 2
Edit (uncomment out) the preceding lines as shown in the following:
ExecStart=/usr/sbin/iscsid
ExecStop=/sbin/iscsiadm -k 0 2
b.
Restore the following iscsiuio configuration file:
vi /usr/lib/systemd/system/iscsiuio.service
Locate the following lines:
#Requires=iscsid.service
#BindTo=iscsid.service
Edit (uncomment out) the preceding lines as shown in the following:
Requires=iscsid.service
NOTE
describe how to replace the correct
grub.cfg
file.