Connecting a CentOS bare metal server to Lumen Network Storage
After you have configured a node on a Lumen® Network Storage service, you can connect it to a bare metal server. Below are the steps and terminal commands necessary to mount the node to the server.
Using an Ubuntu bare metal server? Learn how to connect an Ubuntu bare metal server to Network Storage
There are seven steps to connect a CentOS bare metal server to Network Storage:
Step 1. Update the system and software
- Check for updates.
- Install NFS tools.
- Install iSCSI tools.
- Install traceroute.
Step 2: Set up /etc/hosts for Network Storage
Example /etc/hosts for NFS only:
Example /etc/hosts for NFS and iSCSI:
Step 3: Create the /etc/sysconfig/network-scripts/ifcfg-bond0.<VLAN#> configuration
Example of bond for vlan4 for IP 10.10.10.21:
Important: Leave ONBOOT=no until you are sure the configuration operates properly. Change the value to ONBOOT=yes after proper functionality is confirmed.
Step 4: Verify network connectivity by pinging the local, NFS, and iSCSI IP addresses
Example:
Step 5: Set up NFS
- Show the available mounts.
Example:
- Create mount points for each volume.
- Mount a NFS volume.
Example:
- Ensure the NFS mounts are writable.
- If you choose, you can unmount the NFS mount.
Example of current mounts in the FSTAB NFS entries:
Step 6: Set up iSCSI
- Show your wwids.
Important: wwids will be empty immediately after setup.
- Check or fix multiplat.cond.
Example:
- Set up iSCSI service.
- Locate your client machine's IQN located at /etc/iscsi/initiatorname.iscsi. You will need this to add an iSCSI volume in the Network Storage portal. This value will be used in the Mapped Client IQN field when you create a volume.
Example:
- Create a volume before proceeding to the next steps.
- Discover the target. This lists the volumes you created.
Example:
- Discover any blocked devices.
Example:
- Use iscsiadmin to list all target information. (When running this command, you may experience timeouts. If this occurs, run the command again.)
Example:
- Verify the disks are visible.
Example:
- Register with NetApp.
Example:
- Restart, enable, and start multipath.
- Recheck multipath.
- Set the multipath.
- Put an ext4 filesystem on /dev.dm-0.
- Create a mountpoint.
- Add the mountpoint to fstab.
- Mount the iSCSI volume.