Bug 1043833

Summary: Better installer support for SSD drivers
Product: [openSUSE] openSUSE Distribution Reporter: Daniel Pecka <nettezzaumanaa>
Component: InstallationAssignee: E-mail List <yast2-maintainers>
Status: RESOLVED FEATURE QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: aschnell, astieger, mfilka, sbrabec
Version: Leap 42.3   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Daniel Pecka 2017-06-12 11:43:27 UTC
Servus people,

I'd like to request that installer goes a bit forward to users while detecting ssd drive. If you use (for example) a LUKS encrypted device, users have to manually modify an etc/crypttab adding there a discard option otherwise the fstrim won't work completely - and please note, that there's by default systemd fstrim.{service,timer} that is supposed to be automatically enabled when SSD is detected .. Similar problem is with lvm which requires a manual change to lvm.conf switching from default 0 to 1 an issue_discards= option ..

summary (maybe not incomplete, I didn't cast all cases):

1) add please to installer support for LUKS encrypted drives/partitions that the crypttab contains discard option (and initrd is properly updated)

2) add please to installer support for switching automatically issue_discards= options in case of SSD+lvm is detected ...

remarks:

1) fstrim security related issue is described here http://asalor.blogspot.cz/2011/08/trim-dm-crypt-problems.html and after reading that article I consider it as completely minor significance

2) suggestion regarding fstrim timer is discused in bugreport #1043602

3) JFYI my drive layout is this:

# lsblk 
NAME                                                      MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda                                                         8:0    0 238.5G  0 disk  
├─sda2                                                      8:2    0   299M  0 part  /boot
├─sda3                                                      8:3    0 237.7G  0 part  
│ └─cr_ata-SanDisk_X400_M.2_2280_256GB_170141800292-part3 254:0    0 237.7G  0 crypt 
│   ├─rpool-swap                                          254:1    0     8G  0 lvm   [SWAP]
│   ├─rpool-root                                          254:2    0    30G  0 lvm   /
│   └─rpool-home                                          254:3    0 199.7G  0 lvm   /home
└─sda1                                                      8:1    0   500M  0 part


regards, daniel
Comment 1 Michal Filka 2017-06-14 05:57:53 UTC
This is a feature request.

I've created a fate entry for that: https://features.opensuse.org/323530