Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure we recognize (and avoid) raid devices #1

Open
nettings opened this issue Apr 3, 2021 · 0 comments
Open

Ensure we recognize (and avoid) raid devices #1

nettings opened this issue Apr 3, 2021 · 0 comments

Comments

@nettings
Copy link
Owner

nettings commented Apr 3, 2021

I'm pretty sure the current heuristics would miss that the two first disks in this example (my dev box) are part of a raid, because the sdX1 partition has no mountpoint. Instead there is an additional raid device below, which doesn't share a common prefix with the disk device and thus wouldn't be noticed. So RAID users beware for now.

roman:/local # lsblk 
NAME        MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda           8:0    0   7.3T  0 disk  
└─sda1        8:1    0   7.3T  0 part  
  └─md127     9:127  0   7.3T  0 raid1 /local
sdb           8:16   0   7.3T  0 disk  
└─sdb1        8:17   0   7.3T  0 part  
  └─md127     9:127  0   7.3T  0 raid1 /local
sdk           8:160  1 119.1G  0 disk  
├─sdk1        8:161  1   256M  0 part  
├─sdk2        8:162  1   3.7G  0 part  
└─sdk3        8:163  1     1G  0 part  
sr0          11:0    1 387.6M  0 rom   
sr1          11:1    1  1024M  0 rom   
nvme0n1     259:0    0 953.9G  0 disk  
├─nvme0n1p1 259:1    0   500M  0 part  /boot/efi
├─nvme0n1p2 259:2    0   128G  0 part  [SWAP]
└─nvme0n1p3 259:3    0 825.4G  0 part  /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant