Connecting an Ubuntu 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 a CentOS bare metal server? Learn how to connect a CentOS bare metal server to Network Storage
There are six steps to connect an Ubuntu bare metal server to Network Storage:
Step 1: Update the system and software
- Check for updates.
- Install network tools.
- Install NFS tools.
- Install iSCSI tools.
Step 2: Set up /etc/hosts for Network Storage
Example /etc/hosts for NFS only:
Example /etc/hosts for NFS and iSCSI:
Step 3: Update the /etc/netplan configuration
Example:
Step 4: Verify network connectivity by pinging 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:
- Check for available space.
Example:
- Ensure the NFS mounts are writable.
- If you choose, you can unmount the NFS mount.
- Add NFS mount(s) to /etc/fstab to test functionality.
Example:
- Check FSTAB NFS entries using the mountpoint.
Example:
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.)
- Restart iscsi.
Example:
- Run discovery using iscsiadm.
Example:
- Log in to each target name using the above returned targets from iscsiadm.
Example:
- If the following message appears after logging in to each target name, log out of each portal and log in again.
Example:
- Show all sessions.
Example:
- Display information about the nodes.
- Fix /etc/multipath.conf.
Example:
- Rescan iscsiadm.
Example:
- Run iscsiadm discovery for all ST devices for each portal.
Example:
- Run iscsi-ls on each portal.
Example:
- Verify the partitions.
- Check the multipaths.
- Check wwids.
Example:
- Multipath the wwid.
Example:
- Reset and list.
- List the devices.
- Put an ext4 filesystem on dm-1.
Example:
- Create a mountpoint.
- Add the mountpoint to fstab.
- Mount the iSCSI volume.