I would ordinarily use mdadm to do this (https://www.intel.com/content/dam/www/public/us/en/documents/white-papers/rst-linux-paper.pdf ), but it seems to require /dev/mem
$ sudo cat /proc/mdstat
Personalities : [raid0] [raid1] [raid10]
unused devices: <none>
$ sudo mdadm --detail-platform
mdadm: imsm capabilities not found for controller
https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/tree/probe_roms.c#n104
which isn’t available on Clear. However, if I compile and use a modified kernel with CONFIG_DEVMEM=y, it works without any problems
$ sudo cat /proc/mdstat
Personalities : [raid0] [raid1] [raid10]
md124 : active (auto-read-only) raid1 sde[1] sdf[0]
$ sudo mdadm --detail-platform
Platform : Intel(R) Rapid Storage Technology
Is there a safer way?
Thanks!
ahkok
September 24, 2019, 4:12am
2
[edit my memory refreshed]
/dev/mem
is very dangerous and only should be used for debugging purposes. It grants processes access to all sorts of restricted memory and makes any sort of exploit exponentially easier.
As a workaround dmraid (Index of /~heinzm/sw/dmraid/src ) doesn’t use /dev/mem
and is able to assemble the RST volume I have into a mountable state on the current native kernel. Not sure if this will come with its own security problems due to its outdatedness or work with less simple stuff like VROC though. I’ll try to contact the MD RAID people and make a case for not relying on /dev/mem
.
For anyone searching there is an open package request for dmraid on GitHub:
opened 03:40AM - 25 Dec 18 UTC
enhancement
package-request
**Describe the bug**
I'm using Intel Rapid Storage Technology as raid0, buy
dm… raid: command not found
**Environment (please complete the following information):**
- Clear Linux OS version: [`cat /usr/lib/os-release`]
NAME="Clear Linux OS"
VERSION=1
ID=clear-linux-os
ID_LIKE=clear-linux-os
VERSION_ID=26850
PRETTY_NAME="Clear Linux OS"
ANSI_COLOR="1;35"
HOME_URL="https://clearlinux.org"
SUPPORT_URL="https://clearlinux.org"
BUG_REPORT_URL="mailto:dev@lists.clearlinux.org"
PRIVACY_POLICY_URL="http://www.intel.com/privacy"
- Bundles: [e.g. `sudo swupd bundle-list`]
bootloader
c-basic
cloud-api
computer-vision-basic
computer-vision-models
desktop
desktop-apps
desktop-assets
desktop-autostart
desktop-gnomelibs
desktop-locales
ethtool
git
go-basic
iproute2
java-basic
kernel-native
kvm-host
libX11client
machine-learning-basic
machine-learning-mycroft
machine-learning-tensorflow
network-basic
openssh-server
openssl
os-core
os-core-update
p11-kit
perl-basic
python-data-science
python-extras
python2-basic
python3-basic
storage-utils
sudo
sysadmin-basic
tzdata
vim
virt-manager
virt-manager-gui
vnc-server
which
wpa_supplicant
x11-server
xemacs
**Additional context**
mdadm --examine --scan
ARRAY metadata=imsm UUID=f0128bba:509a1d2f:8d333389:65f0afc9
ARRAY /dev/md/Volume1 container=f0128bba:509a1d2f:8d333389:65f0afc9 member=0 UUID=e3b5d635:7bab8839:f18bb9bd:c994c434
1 Like