[ 
https://issues.apache.org/jira/browse/CASSANDRA-19575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17839022#comment-17839022
 ] 

Brandon Williams commented on CASSANDRA-19575:
----------------------------------------------

I think instead of trying to decompose the specified device name to a block 
device, it would be better to list all the block devices and compare against 
device names.

> StartupCheck error for read_ahead_kb
> ------------------------------------
>
>                 Key: CASSANDRA-19575
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-19575
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Local/Startup and Shutdown
>            Reporter: Morten Joenby
>            Priority: Normal
>             Fix For: 4.1.x, 5.0.x, 5.x
>
>
> We believe the StartupChecks.java has a minor bug here:
> [https://github.com/apache/cassandra/blob/cassandra-4.1/src/java/org/apache/cassandra/service/StartupChecks.java#L737]
> {code:java}
> String deviceName = blockDirComponents[2].replaceAll("[0-9]*$", "");{code}
> We are using a RAID setup with two disks, so removing the "[0-9]" makes the 
> check fail:
> cat /sys/block/md/queue/read_ahead_kb
> cat: /sys/block/md/queue/read_ahead_kb: No such file or directory
> It should be "md0" in our case, so removing the '0' won't work.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to