Mounting a PowerFlex Volume on Linux’s SDC Boot

Reading Time: 2 minutes

Mounting a PowerFlex Volume on Linux’s SDC Boot shows how to properly configure the /etc/fstab file to mount a PowerFlex Volume during the system’s boot.

Our PowerFlex Cluster has the 4.5.2 version and runs on a virtual environment (nested). Our SDC is a Ubuntu-based Linux!

1- The first step is to identify the disk partition to be mounted. In this case, for instance, the disk partition is /dev/scinia1:

lsblk --path

Output example:

NAME                                  MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
/dev/loop0                              7:0    0 44.3M  1 loop /snap/snapd/23258
/dev/loop1                              7:1    0 49.8M  1 loop /snap/snapd/18357
/dev/loop2                              7:2    0 91.9M  1 loop /snap/lxd/29619
/dev/loop3                              7:3    0 91.8M  1 loop /snap/lxd/24061
/dev/loop4                              7:4    0 63.3M  1 loop /snap/core20/1828
/dev/loop5                              7:5    0 63.7M  1 loop /snap/core20/2434
/dev/sda                                8:0    0   16G  0 disk
├─/dev/sda1                             8:1    0    1M  0 part
├─/dev/sda2                             8:2    0  1.8G  0 part /boot
└─/dev/sda3                             8:3    0 14.2G  0 part
  └─/dev/mapper/ubuntu--vg-ubuntu--lv 253:0    0   10G  0 lvm  /
/dev/sr0                               11:0    1 1024M  0 rom
/dev/scinia                           252:0    0   64G  0 disk
└─/dev/scinia1                        252:1    0   64G  0 part
/dev/scinib                           252:16   0    8G  0 disk
/dev/scinic                           252:32   0    8G  0 disk

2- Next, we need to grab the disk-id absolute path:

ls -ld /dev/disk/by-id/*

As we can see in the following output, the absolute disk path for /dev/scinia1 is “/dev/disk/by-id/emc-vol-8c40194f563e090f-29039d3800000001-part1” (this is the information that we will need later):

lrwxrwxrwx 1 root root  9 Dec 20 14:44 /dev/disk/by-id/ata-VMware_Virtual_SATA_CDRW_Drive_00000000000000000001 -> ../../sr0
lrwxrwxrwx 1 root root 10 Dec 20 14:44 /dev/disk/by-id/dm-name-ubuntu--vg-ubuntu--lv -> ../../dm-0
lrwxrwxrwx 1 root root 10 Dec 20 14:44 /dev/disk/by-id/dm-uuid-LVM-Sp2h5MStgFIAzTpa0H7f433s1hpXDDYrgM1fUXunm5UxO96Vc0DOIiwlcJ1eH3h6 -> ../../dm-0
lrwxrwxrwx 1 root root 12 Dec 20 14:46 /dev/disk/by-id/emc-vol-8c40194f563e090f-2900b70600000004 -> ../../scinic
lrwxrwxrwx 1 root root 12 Dec 20 14:46 /dev/disk/by-id/emc-vol-8c40194f563e090f-2900b70700000006 -> ../../scinib
lrwxrwxrwx 1 root root 12 Dec 20 14:46 /dev/disk/by-id/emc-vol-8c40194f563e090f-29039d3800000001 -> ../../scinia
lrwxrwxrwx 1 root root 13 Dec 20 14:46 /dev/disk/by-id/emc-vol-8c40194f563e090f-29039d3800000001-part1 -> ../../scinia1
lrwxrwxrwx 1 root root 10 Dec 20 14:44 /dev/disk/by-id/lvm-pv-uuid-avF020-i9IU-vIJZ-S3bC-QvSE-FAM5-auO3w5 -> ../../sda3

3- Edit the configuration file /etc/fstab (you can use your preferred text editor) and add the following entry:

/dev/disk/by-id/emc-vol-8c40194f563e090f-29039d3800000001-part1 /mnt/linux-vol-01 ext4 _netdev,x-systemd.requires=scini.service 0 0

Where:

/dev/disk/by-id/emc-vol-8c40194f563e090f-29039d3800000001-part1 –> Disk partition
/mnt/linux-vol-01 –> Mount point
ext4 –> Filesystem
_netdev,x-systemd.requires=scini.service –> The SDC access the volume through network. So, network and SDC service must be available first (both options help with it)

4- Reboot and test!

df -Th

Output example:

root@pfmp-sdc-01:~# df -Th
Filesystem                        Type   Size  Used Avail Use% Mounted on
tmpfs                             tmpfs   96M  1.2M   95M   2% /run
/dev/mapper/ubuntu--vg-ubuntu--lv ext4   9.8G  5.7G  3.6G  62% /
tmpfs                             tmpfs  479M     0  479M   0% /dev/shm
tmpfs                             tmpfs  5.0M     0  5.0M   0% /run/lock
/dev/sda2                         ext4   1.7G  191M  1.4G  12% /boot
/dev/scinia1                      ext4    63G   24K   60G   1% /mnt/linux-vol-01
tmpfs                             tmpfs   96M  4.0K   96M   1% /run/user/0

That’s it 🙂