Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Google Cloud Platform icon
Labs

Troubleshooting File System Issues

**Warning**: This lab represents a significantly broken environment and goes well beyond simple troubleshooting. In this lab, you must resolve any issues preventing the content mounted at `/storage` from being accessed. *This course is not approved or sponsored by Red Hat.*

Google Cloud Platform icon
Lab platform
Lab Info
Level
Advanced
Last updated
Sep 13, 2025
Duration
4h 0m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Verify the iSCSI target configuration and status.

    On Server1 (10.0.1.10)

    Verify the target service is running:

    systemctl status target
    

    Start and enable the target service:

    systemctl start target && systemctl enable target
    

    Verify the process is listening on port 3260:

    ss -ltnp | grep 3260
    

    Check if the firewall is permitting traffic over 3260/tcp:

    firewall-cmd --list-all
    

    Permit incoming traffic over port 3260/tcp:

    firewall-cmd --permanent --add-port=3260/tcp
    

    Reload the firewall:

    firewall-cmd --reload
    

    View the iSCSI target configuration:

    targetcli
    
    /> ls
    
  2. Challenge

    Verify the iSCSI initiator configuration and status.

    On Server2 (10.0.1.11)

    View any existing node entires:

    iscsiadm -m node
    

    Verify the initiator name matches the ACL from the target:

    cat /etc/iscsi/initiatorname.iscsi
    

    Change the name to match the target:

    InitiatorName=iqn.1994-05.com.redhat:c1cd6e78d22
    

    Verify security settings match those of target:

    less /etc/iscsi/iscsid.conf
    
    #node.session.auth.authmethod = CHAP
    ...
    #node.session.auth.username = username
    #node.session.auth.password = password
    

    Restart the iscsid service to pick up the change:

    systemctl restart iscsid
    

    Discover iSCSI targets from 10.0.1.10:

    iscsiadm -m discovery -t sendtargets -p 10.0.1.10
    

    Log in to target:

    iscsiadm -m node -T iqn.2003-01.org.linux-iscsi.ip-10-0-1-10.x8664:sn.a3776832068c -l
    

    Enable the iscsid service to permit connection upon reboot:

    systemctl enable iscsid
    
  3. Challenge

    Resolve disk encryption.

    Review the contents of /etc/crypttab and /etc/fstab:

    cat /etc/crypttab
    
    cat /etc/fstab
    

    Attempt to manually open the volume using the key referenced in /etc/crypttab:

    cryptsetup luksOpen /dev/mapper/vg_1-lv_1 luks-vg_1-lv_1 --key-file /root/passphrase.key
    

    View the volume key slots:

    cryptsetup luksDump /dev/mapper/vg_1-lv_1
    

    Restore the LUKS header:

    cryptsetup luksHeaderRestore /dev/mapper/vg_1-lv_1 --header-backup-file /root/vg_1-lv_1.header
    

    Open the volume manually:

    cryptsetup luksOpen /dev/mapper/vg_1-lv_1 luks-vg_1-lv_1 --key-file /root/passphrase.key
    

    View the entries in /dev/mapper:

    ll /dev/mapper
    

    Attempt to mount /storage:

    mount /storage
    

    View the file system label:

    blkid
    

    The volume appears to be a swap format, however the entry in /etc/fstab suggests it's an XFS file system. Repair the file system:

    xfs_repair /dev/mapper/luks-vg_1-lv_1
    

    Mount /storage:

    mount /storage
    

    View the contents of /storage:

    ll /storage
    
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight