Activating S390x Devices on Ubuntu Server

ubuntu.com/download/server/linuxone or https://www.ubuntu.com/download/server/s390x).
2. Once you have installed the operating system, open your terminal and navigate to /etc/cloud/config.d/.
3. Create a new file called “early-commands” (without quotes) by running: `sudo nano early-commands`
4. Add the following lines of code inside this newly created file:

# This script activates S390x devices by creating a temporary file and using the chzdev command to enable specific devices.

# Create a temporary file to indicate the start of device activation
touch /tmp/lets_activate_the_s390x_devices

# Enable the first S390x device with the chzdev command
chzdev zfcp -e e000

# Enable the second S390x device with the chzdev command
chzdev zfcp -e e100

# Enable all online zfcp-lun devices with the chzdev command
chzdev zfcp-lun -e --online

# Create a temporary file to indicate the completion of device activation
touch /tmp/s390x_devices_activation_done

5. Save and close the file by pressing Ctrl + X, Y, Enter.
6. Restart your server to apply these changes: `sudo reboot`
7. Connect to your HMC (Hardware Management Console) and proceed with the Load From Removable Media or Server task under ‘Recovery’ ‘Load from Removable Media or Server’.
8. Fill out the following fields in this task:
FTP Source Host computer: installserver.local
User ID: ftpuser
Password: ********
9. Once your installation is complete, make sure a HTTP server is running with /srv/www as web-server root (in this particular example).
10. Your S390x devices should now be activated and ready to use!
To check if the activation was successful, you can run `ls -l /tmp/lets_activate_the_s390x_devices` and `lszdev | grep yes`. The output of these commands will show that the early-commands script has been executed successfully and your S390x devices have been activated.
If you wait long enough, you’ll see a remote session get closed at the console as well.
In this tutorial, we’re going to activate S390x devices on Ubuntu Server for IBM zSystems and LinuxONE. This is an essential step in setting up your server environment because it allows you to access storage resources that are connected via FICON channels or ESCON paths. By following the steps outlined below, you’ll be able to activate S390x devices on Ubuntu Server for IBM zSystems and LinuxONE with ease.

First, ensure that you have downloaded and installed the latest version of Ubuntu Server for IBM zSystems and LinuxONE from their website (https://www.ubuntu.com/download/server/linuxone or https://www.ubuntu.com/download/server/s390x).

Once you have installed the operating system, open your terminal and navigate to /etc/cloud/config.d/. This is where we’re going to add our custom script that will activate S390x devices on Ubuntu Server for IBM zSystems and LinuxONE.

Create a new file called “early-commands” (without quotes) by running: `sudo nano early-commands`

Add the following lines of code inside this newly created file:


# This script activates S390x devices on Ubuntu Server for IBM zSystems and LinuxONE.

# Create a new file called "early-commands" (without quotes) by running: `sudo nano early-commands`

# Add the following lines of code inside this newly created file:

# This code activates S390x devices by creating a temporary file and using the chzdev command to enable the specified devices.

# Create a temporary file to indicate the start of device activation
touch /tmp/lets_activate_the_s390x_devices

# Enable the first S390x device with the ID "e000"
chzdev zfcp -e e000

# Enable the second S390x device with the ID "e100"
chzdev zfcp -e e100

# Enable all online zfcp-lun devices
chzdev zfcp-lun -e --online

# Create a temporary file to indicate the completion of device activation
touch /tmp/s390x_devices_activation_done

Save and close the file by pressing Ctrl + X, Y, Enter.

Restart your server to apply these changes: `sudo reboot`

Connect to your HMC (Hardware Management Console) and proceed with the Load From Removable Media or Server task under ‘Recovery’ ‘Load from Removable Media or Server’.

Fill out the following fields in this task:
FTP Source Host computer: installserver.local
User ID: ftpuser
Password: ********

Once your installation is complete, make sure a HTTP server is running with /srv/www as web-server root (in this particular example).

Your S390x devices should now be activated and ready to use!

To check if the activation was successful, you can run `ls -l /tmp/lets_activate_the_s390x_devices` and `lszdev | grep yes`. The output of these commands will show that the early-commands script has been executed successfully and your S390x devices have been activated.

If you wait long enough, you’ll see a remote session get closed at the console as well.

SICORPS