Disk Pack Configuration

Prev Next

NOTE: For FMADIO-5403 100G Portable capture system

The 100G Portable system is designed for use with multiple disk packs. This enables the system to cycle data storage easily and efficiently between capture cycles.

For Datacenter like systems FMADIO devices have a disk storage mapping that rarely changes, this configuration is

/opt/fmadio/etc/disk.lua

Once its been set at the factory it rarely gets changed.

For FMADIO Portable capture devices, the disk inserted typically change frequently and dynamically. The following steps explain the process

Autodetect Disk Packs

Step 1) Configure boot.lua

The file in

/opt/fmadio/etc/boot.lua

Is a general purpose LUA script that runs early in the boot process. For multiple disk pack configuration we use this script to

a) detect which disk pack is installed in the system to

b) link the appropriate disk_X.lua to disk.lua

c) allow the boot process to continue

The reference boot.lua for auto diskpack mounting is located in

/opt/fmadio/etc_ro/boot.lua.diskpack

Start by copying this to the active boot.lua per below command

sudo cp /opt/fmadio/etc_ro/boot.lua.diskpack /opt/fmadio/etc/boot.lua

Step 2) Name all the disk packs

The script works by searching for a disk serial number installed in the system, in the following disk configuration files

/opt/fmadio/etc/disk_0.lua
/opt/fmadio/etc/disk_1.lua
/opt/fmadio/etc/disk_2.lua
/opt/fmadio/etc/disk_3.lua
/opt/fmadio/etc/disk_4.lua
.
.

Working sequentially thru all the disk_*.lua files on the system, searching each file for a disk serial number currently present in the system.

Once it finds a disk serial number the system will symbolically link  the disk_X.lua  â†’ disk.lua  

This means renaming the current disk.lua to disk_0.lua for example

sudo mv /opt/fmadio/etc/disk.lua /opt/fmadio/etc/disk_0.lua

For each diskpack create the a new disk_X.lua file

Step 3) Reboot

Once the above has been completed, reboot the system

Step 4) Confirm disk mapping

Once the system has finished booting, confirm the system found the correct disk_N.lua file

Run the fullowing

ls -al /opt/fmadio/etc/disk*

Expecting a symlink to a spcific disk_N.lua file as shown below

fmadio@fmadio100p3-539:/opt/fmadio/etc$ ls -al disk*
lrwxrwxrwx    1 root     root            26 Aug 10 16:33 disk.lua -> /opt/fmadio/etc/disk_3.lua
-rw-r--r--    1 fmadio   staff         1326 Sep  1  2023 disk_0.lua
-rw-r--r--    1 fmadio   staff         1326 Sep  1  2023 disk_1.lua
-rw-r--r--    1 fmadio   staff         1245 Sep  1  2023 disk_2.lua
-rw-r--r--    1 fmadio   staff         1487 Mar  2 01:10 disk_3.lua
fmadio@fmadio100p3-539:/opt/fmadio/etc$

Finally running

fmadiocli show disk status

To fully confirm all disks are present.