Operation not permitted

profwalken

Patron
Joined
Nov 19, 2013
Messages
410
Hi,
I get that kind of messages in console:
Code:
Apr  3 10:24:56 SRV 1 2023-04-03T10:24:56.582653+02:00 SRV.local savecore 22625 - - /dev/ada0p3: Operation not permitted
Apr  3 10:24:56 SRV ada2 at ahcich9 bus 0 scbus5 target 0 lun 0
Apr  3 10:24:56 SRV ada2: <ST2000VN004-2E4164 SC60> ACS-2 ATA SATA 3.x device
Apr  3 10:24:56 SRV ada2: Serial Number Z52C02J8
Apr  3 10:24:56 SRV ada2: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)
Apr  3 10:24:56 SRV ada2: Command Queueing enabled
Apr  3 10:24:56 SRV ada2: 1907729MB (3907029168 512 byte sectors)
Apr  3 10:24:56 SRV 1 2023-04-03T10:24:56.763957+02:00 SRV.local savecore 22639 - - /dev/ada0p3: Operation not permitted
Apr  4 00:00:00 SRV syslog-ng[1202]: Configuration reload request received, reloading configuration;
Apr  4 00:00:00 SRV syslog-ng[1202]: Configuration reload finished;
Apr  5 00:00:00 SRV syslog-ng[1202]: Configuration reload request received, reloading configuration;
Apr  5 00:00:00 SRV syslog-ng[1202]: Configuration reload finished;
Apr  5 01:21:12 SRV ada2 at ahcich9 bus 0 scbus5 target 0 lun 0
Apr  5 01:21:12 SRV ada2: <ST2000VN004-2E4164 SC60> s/n Z52C02J8 detached
Apr  5 01:21:12 SRV (ada2:ahcich9:0:0:0): Periph destroyed
Apr  5 01:31:41 SRV 1 2023-04-05T01:31:41.665922+02:00 SRV.local savecore 46315 - - /dev/ada0p3: Operation not permitted
Apr  5 01:31:41 SRV ada2 at ahcich9 bus 0 scbus5 target 0 lun 0
Apr  5 01:31:41 SRV ada2: <ST2000VN004-2E4164 SC60> ACS-2 ATA SATA 3.x device
Apr  5 01:31:41 SRV ada2: Serial Number Z52C02J8
Apr  5 01:31:41 SRV ada2: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)
Apr  5 01:31:41 SRV ada2: Command Queueing enabled
Apr  5 01:31:41 SRV ada2: 1907729MB (3907029168 512 byte sectors)
Apr  5 01:31:41 SRV 1 2023-04-05T01:31:41.841501+02:00 SRV.local savecore 46329 - - /dev/ada0p3: Operation not permitted


What is ada0p3 ? is it the swap disk ? if so what to do to fix this ?

Thanks for any advices
 

profwalken

Patron
Joined
Nov 19, 2013
Messages
410
to complete the picture, this morning 6/4/23 pool is degraded
1680761158480.png

when i try to put ada2 on line manually I get messages /dev/ada0p3: operation not permitted
Code:
Apr  6 08:02:08 SRV 1 2023-04-06T08:02:08.192546+02:00 SRV.local savecore 64856 - - /dev/ada0p3: Operation not permitted
Apr  6 08:02:08 SRV 1 2023-04-06T08:02:08.578375+02:00 SRV.local savecore 64872 - - /dev/ada0p3: Operation not permitted
Apr  6 08:02:47 SRV 1 2023-04-06T08:02:47.717708+02:00 SRV.local savecore 64886 - - /dev/ada0p3: Operation not permitted
Apr  6 08:02:47 SRV 1 2023-04-06T08:02:47.858202+02:00 SRV.local savecore 64900 - - /dev/ada0p3: Operation not permitted
Apr  6 08:08:49 SRV 1 2023-04-06T08:08:49.245083+02:00 SRV.local savecore 64971 - - /dev/ada0p3: Operation not permitted
Apr  6 08:08:49 SRV 1 2023-04-06T08:08:49.393466+02:00 SRV.local savecore 64985 - - /dev/ada0p3: Operation not permitted
Apr  6 08:13:12 SRV 1 2023-04-06T08:13:12.141850+02:00 SRV.local savecore 65050 - - /dev/ada0p3: Operation not permitted
Apr  6 08:13:12 SRV 1 2023-04-06T08:13:12.312659+02:00 SRV.local savecore 65064 - - /dev/ada0p3: Operation not permitted
Apr  6 08:30:07 SRV 1 2023-04-06T08:30:07.767819+02:00 SRV.local savecore 65243 - - /dev/ada0p3: Operation not permitted
Apr  6 08:30:07 SRV 1 2023-04-06T08:30:07.910323+02:00 SRV.local savecore 65257 - - /dev/ada0p3: Operation not permitted


and console display something I don't know if it's normal like:
1680762589695.png

the disk name is only " g?" instead of complete path , so may it be because of that, the on line command fails?
is there a command I can try manually to set the disk online?
 
Last edited:

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
Looks to me like the disk has died, for whatever reason - potentially.
I would look to replace the disk and then you can diagnose the issue with the disk carefully, offline
 

profwalken

Patron
Joined
Nov 19, 2013
Messages
410
Thanks Nugent,
yes it could let think about the disk, but they are new and working when used out of Truenas. other behavior , it generally come back to the pool alone and can stay on line for days

Do you have experience about gui windows displaying only "g?" instead of complete gptid, is this normal behavior?
 

profwalken

Patron
Joined
Nov 19, 2013
Messages
410
Well , tonight ada2 came back to live alone, but it seems always having messages operation not permitted.

Apr 8 00:00:00 SRV syslog-ng[1202]: Configuration reload request received, reloading configuration;
Apr 8 00:00:00 SRV syslog-ng[1202]: Configuration reload finished;
Apr 8 00:00:00 SRV ada2 at ahcich9 bus 0 scbus5 target 0 lun 0
Apr 8 00:00:00 SRV ada2: <ST2000VN004-2E4164 SC60> ACS-2 ATA SATA 3.x device
Apr 8 00:00:00 SRV ada2: Serial Number Z52C02J8
Apr 8 00:00:00 SRV ada2: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)
Apr 8 00:00:00 SRV ada2: Command Queueing enabled
Apr 8 00:00:00 SRV ada2: 1907729MB (3907029168 512 byte sectors)
Apr 8 00:33:21 SRV 1 2023-04-08T00:33:21.975432+02:00 SRV.local savecore 23224 - - /dev/ada0p3: Operation not permitted
Check to stop refresh

1680907062072.png
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
which hardware is this on?
 

profwalken

Patron
Joined
Nov 19, 2013
Messages
410
Well, it's a small NAS, done with an AMD A4-5300 Motherboard, 16 Gb Ram (not ECC) , 2 data hdd seagate ironwolf 2Tb, 1 boot SSD 120 Gb.
Version TNC 13.0-U4.
SSD is connected to internal MB sata port
the 2 HDDs are connected to a realtek board controler added on a pcie port.
 

awasb

Patron
Joined
Jan 11, 2021
Messages
415
Ditch the controller. Try a „real“ HBA.
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
so @profwalken it isn't one of the NAS's in your signature

Question - how the hell do you expect us to help diagnose your issue when you give us flat out wrong information (even if I suspect it wasn't deliberate)?
as @aswab says - get a proper HBA, flashed to the correct hardware and file that chinesium PCIe SATA card in a box labelled "Landfill"
Please read some of the articles in my signature
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
an AMD A4-5300 Motherboard
Isn't the A4-5300 a CPU, rather than a motherboard? I agree with the advice to ditch the controller, both because Realtek are known for making crap, and SATA controller cards are almost universally crap--but why are you using it in the first place? Surely there are SATA ports on the motherboard? You only need three of them, including your boot device.
 

awasb

Patron
Joined
Jan 11, 2021
Messages
415
Yup. For 2 data drives even better, since it saves money and energy.
 

profwalken

Patron
Joined
Nov 19, 2013
Messages
410
Thanks for all your answers, yes sorry for any misleading for server hardware components, it was a very small machine just to share some files.
Yes Danb35 , this is the CPU model.

well like you said my best goal is to replace the controller with a well supported one and see if all this weird things vanish definitivly.

Thanks and have a sweet easter
 
Top