Posts

Showing posts from August, 2019

Linux mdraid device names not kept after reboot

We all know that to have the array device names persist you have to do:  mdadm --detail --scan >>/etc/mdadm/mdadm.conf However this is not enough, this has to be also updated in initram, so the easiest way to do it, is by running: dpkg-reconfigure mdadm This will automatically update the initram. (I do not mention here, that after piping the array list to /etc/mdadm/mdadm.conf, it is very practical to manually check if everything is correct, to avoid duplicate arrays or old not-any-more existing arrays.)

TGT adding iSCSI targets with spaces in their name

Using iSCSI is very usefull even in home environments. In Linux on the server side you can use TGT for this purpose, usually you can manage it weasily with Webmin , but I did not found the correct way to add a file name with spaces to the /etc/tgt/targets.conf. So finally I maked a symlink to the file and added the link to the config file and it workied. ln -s /media/disk/file\ with\ spaces\ in\ name.img /home/user/iscsitarget And put the /home/user/iscsitarget in yout TGT config file.