Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

This is a simple guide to setup a MicroMEC lab for test purposes using inexpensive components.

...

  1. Discover the iscsi target

    $ sudo iscsiadm --mode discovery --op update --type sendtargets --portal bootserv 
    192.168.4.1:3260,1 iqn.org.micromec:rpi3-1-opensuse-rootfs
    192.168.4.1:3260,1 iqn.org.micromec:rpi4-1-opensuse-rootfs
    192.168.4.1:3260,1 iqn.org.micromec:rpi4-1-raspbian-rootfs

  2. Login to the iscsi target

    $ sudo iscsiadm -m node --targetname iqn.org.micromec:rpi4-1-raspbian-rootfs -p bootserv -l 
    Logging in to [iface: default, target: iqn.org.micromec:rpi4-1-raspbian-rootfs, portal: 192.168.4.1,3260]
    Login to [iface: default, target: iqn.org.micromec:rpi4-1-raspbian-rootfs, portal: 192.168.4.1,3260] successful.

  3. Check the available partitions

    $ cat /proc/partitions 
    major minor #blocks name ..... 8 16 4096000 sdc

  4. Determine the UUID

    $ sudo blkid /dev/sdc /dev/sdc: UUID="8236bee6-9c37-4b04-8092-2630fd2b0596" BLOCK_SIZE="4096" TYPE="ext4"