sesutil "swapped" flag reddit / freebsd ---------------------------------------------------------------------- heathenskwerl · 2022-11-20 14:37 Ever since someone on this sub turned my on to sesutil, I've been using it a lot for drive management. However one thing I've noticed is that almost (but not all) of my bays typically show "swapped" in the output, like this: # sesutil -u /dev/ses3 show ses3: ; ID: 500304800040b13f Desc Dev Model Ident Size/Status Slot 01 da46 ATA ST16000NM001G-2K ZL2F0AJP 16T, Swapped Slot 02 da52 ATA ST16000NM001G-2K ZL2N2FNN 16T, Swapped Slot 03 da32 ATA ST16000NM001G-2K ZL21D9F6 16T, Swapped Slot 04 da47 ATA ST16000NM001G-2K ZL2CBV0L 16T Slot 05 da53 ATA ST16000NM001G-2K ZL2KRXBE 16T, Swapped Slot 06 da57 ATA ST16000NM001G-2K ZL25F0YZ 16T, Swapped Slot 07 da27 ATA ST16000NM001G-2K ZL2KYDDF 16T Slot 08 da49 ATA ST16000NM001G-2K ZL2DJQ8N 16T, Swapped Slot 09 da38 ATA ST16000NM001G-2K ZL2MZ89T 16T, Swapped Slot 10 da29 ATA ST16000NM001G-2K ZL2LT5QA 16T Slot 11 da50 ATA ST16000NM001G-2K ZL28YMAX 16T, Swapped Slot 12 da48 ATA ST16000NM001G-2K ZL20D0YX 16T, Swapped Slot 13 da41 ATA ST16000NM001G-2K ZL2NV13Y 16T, Swapped Slot 14 da31 ATA ST16000NM001G-2K ZL2FN0W9 16T, Swapped Slot 15 da43 ATA ST16000NM001G-2K ZL2N36EF 16T, Swapped Slot 16 da51 ATA ST16000NM001G-2K ZL2FN0YC 16T, Swapped Slot 17 da33 ATA ST16000NM001G-2K ZL2JT61Q 16T Slot 18 da37 ATA ST16000NM001G-2K ZL2N2FRF 16T, Swapped Slot 19 da44 ATA WDC WD160EDGZ-11 2BJA7YPN 16T, Swapped Slot 20 da36 ATA ST16000NM001G-2K ZL22RF8X 16T, Swapped Slot 21 da42 ATA ST16000NM001G-2K ZL2N36DV 16T, Swapped Slot 22 da45 ATA WDC WD160EDGZ-11 2BJ2TDEN 16T, Swapped Slot 23 da55 ATA ST16000NM000G-2K ZL29ER4F 16T, Swapped Slot 24 da56 ATA ST16000NM000G-2K ZL24YTVJ 16T, Swapped Temperatures: Temperature: 47 C Voltages: 5V: 5.01 V, 12V: 11.92 V Rebooting doesn't seem to clear this issue, and sesutil doesn't seem to have any way to clear the "swapped" flag. It doesn't seem to cause any issues but it's low-key driving me crazy. Where is it coming from? The sesutil man page isn't any help. ---------------------------------------------------------------------- Einaiden · 2023-02-03 23:24 I do not suppose you ever figured this out have you? ---------------------------------------------------------------------- clem16 · 2023-03-03 06:56 I too would like to know what this flag means and how to clear it if possible. Anyone figure it out yet? ---------------------------------------------------------------------- heathenskwerl · 2023-03-03 23:55 No. Still a complete mystery. At this point every bay I have (all 36 of them) is marked 'swapped'. ---------------------------------------------------------------------- Einaiden · 2023-03-06 21:15 i've made *some* progress with the `setencstat` and `getencstat` commands and i can clear the flags on the enclosures, but have not yet figured out the proper incantations to clear the drive flags. ---------------------------------------------------------------------- gagoff · 2023-06-15 14:54 I managed to do it. Typing on mobile. First I ran sesutil show to find the proper address for the disk slot. Then : sg_ses /dev/ses1 - - dev-slot-num=09 -ee | grep swap I got three lines but two were hotswaps and disregarded. The important one was "swap [*] [0:4:1]" sg_ses /dev/ses1 - - dev-slot-num=09 --set=0:4:1=0x1 Might have been 0x0, makes more sense... ---------------------------------------------------------------------- gagoff · 2023-06-15 15:01 See my comment below :)