Skip to contentSkip to conversation

Is there a "nossd" option ?

DISCUSSION Swâmi Petaramesh 3 participants 5 messages Jun 21, 2015 Btrfs file system

lore
Share & tools
lore
#0 lore raw

Hi,

Running a 3.19 Ubuntu kernel,

I'm currently budling a RAID-1 BTRFS set for which every underlying device is a LUKS-encrypted device itself built out of a bcache device comprised of a mechanical HD partition + an SSD cache partition.

Looks like it's working.

BUT I see that BTRFS decides by itself to mount with the "ssd" option as bcache makes it think the device is not "rotational".

However I feel that a mechanical HD plus SSD bcache should probably not be "SSD-optimized" as the underlying storage is indeed mechanical and bcache already manages the SSD part optimization by itself - and I'm afraid the "SSD optimization" could actually cause the mechanical storage to end up being much more fragmented than it should...

So the question is : Is there a mount option such as "nossd" that I could use to inhibit the automatic SSD "choice" that BTRFS makes ?

TIA, kind regards.

Signature · 4 lines
Swâmi Petaramesh <[email protected]> http://petaramesh.org PGP 9076E32E

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
#1 lore raw
Quoted 13 lines · On Sun, 21 Jun 2015 19:13:10 +0200 Swâmi Petaramesh <[email protected]>…

Hi,

Running a 3.19 Ubuntu kernel,

I'm currently budling a RAID-1 BTRFS set for which every underlying device is a LUKS-encrypted device itself built out of a bcache device comprised of a mechanical HD partition + an SSD cache partition.

Looks like it's working.

BUT I see that BTRFS decides by itself to mount with the "ssd" option as bcache makes it think the device is not "rotational".

Quoted 8 lines

However I feel that a mechanical HD plus SSD bcache should probably not be "SSD-optimized" as the underlying storage is indeed mechanical and bcache already manages the SSD part optimization by itself - and I'm afraid the "SSD optimization" could actually cause the mechanical storage to end up being much more fragmented than it should...

So the question is : Is there a mount option such as "nossd" that I could use to inhibit the automatic SSD "choice" that BTRFS makes ?

Yes the "nossd" option (written literally like that) does in fact exist. It would have taken you less time to try if it works, than to write this long-winded message. :)

Signature · 2 lines
With respect,
Roman
#2 lore raw
Quoted 4 lines · Le dimanche 21 juin 2015 22:31:21 Roman Mamedov a écrit :

Yes the "nossd" option (written literally like that) does in fact exist. It would have taken you less time to try if it works, than to write this long-winded message. :)

Possibly. Unless trying a non-existing mount option causes the mount to fail, thus causing the system boot to fail, thus needing me to boot from a live rescue CD... that would take much longer than writing an half-page email ;-)

Best regards.

Signature · 4 lines
Swâmi Petaramesh <[email protected]> http://petaramesh.org PGP 9076E32E

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
#3 lore raw
Quoted 14 lines · Swâmi Petaramesh
Quoted 4 lines · Le dimanche 21 juin 2015 22:31:21 Roman Mamedov a écrit :

Yes the "nossd" option (written literally like that) does in fact exist. It would have taken you less time to try if it works, than to write this long-winded message. :)

Possibly. Unless trying a non-existing mount option causes the mount to fail, thus causing the system boot to fail, thus needing me to boot from a live rescue CD... that would take much longer than writing an half-page email ;-)

Man pages work well too :)

http://manpages.ubuntu.com/manpages/utopic/man8/mount.8.html

Eric���{.n�+�������+%�����ݶ��w��{.n�+����{���k~��

#4 lore raw
In reply to Swâmi Petaramesh
Quoted 10 lines · On Sun, 21 Jun 2015 20:11:25 +0200 Swâmi Petaramesh <[email protected]>…
Quoted 4 lines · Le dimanche 21 juin 2015 22:31:21 Roman Mamedov a écrit :

Yes the "nossd" option (written literally like that) does in fact exist. It would have taken you less time to try if it works, than to write this long-winded message. :)

Possibly. Unless trying a non-existing mount option causes the mount to fail, thus causing the system boot to fail, thus needing me to boot from a live rescue CD... that would take much longer than writing an half-page email ;-)

mount / -o nossd,remount

works too:

[3917300.257773] BTRFS info (device dm-0): not using ssd allocation scheme

As a side note, I used this option a lot in the past to make remote block devices such as NBD or AoE not detect as SSDs.

Signature · 2 lines
With respect,
Roman