Sample Header Ad - 728x90

How To Read Variable Value Using mdb?

2 votes
1 answer
757 views
Let's say I set a parameter with the following command, how could I read it back later on? mdb -kwe "spa_load_verify_metadata/W 0" I am trying to read the man page , but I'm only in this OS temporarily and don't understand what it's talking about. The search modifiers are: l Search for the specified 2-byte value. L Search for the specified 4-byte value. M Search for the specified 8-byte value. I would normally expect that value to be in /sys/modules/zfs/parameters/spa_load_verify_metadata where I could just cat the value, but /sys doesn't even exist. I tried finding the variable using find, but it wasn't in the filesystem. I don't understand the concept of where these values are... I'm actually just trying to read the values of other parameters that I know to exist .
Asked by Louis Waweru (195 rep)
Feb 29, 2020, 01:35 AM
Last activity: Mar 1, 2020, 01:07 AM