cancel
Showing results for 
Search instead for 
Did you mean: 
ZEno
Cadet
Cadet
  • 608 Views

Issue in storage-review lab grading

There is an issue in the grade script for the storage-review lab.

In the step which checks if the swap space is defined in /etc/fstab, it determines the UUID with "lsblk --fs --noheadings" command and takes the fourth argument returned:
UUID=$(lsblk --fs --noheadings /dev/vdb$PART | awk '{print $4}')

But the fourth argument is not always the UUID.
In case a label was assigned with the swaplabel command, the fourth argument will be this label and thus the grading will fail.

Example:

[root@serverb ~]# swaplabel -L swap1 /dev/vdb2
[root@serverb ~]# lsblk --fs --noheadings /dev/vdb2
vdb2 swap 1 swap1 183d3ce9-f21d-4348-b313-f8636debde52 [SWAP]

 

Labels (1)
1 Reply
Chetan_Tiwary_
Community Manager
Community Manager
  • 400 Views

@ZEno Please elaborate more about this issue like which course, version , chapter , section, lab, step is this about ?

0 Kudos
Join the discussion
You must log in to join this conversation.