LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   block device file delet after reboot from /dev (https://www.linuxquestions.org/questions/linux-software-2/block-device-file-delet-after-reboot-from-dev-628209/)

viral_Ahire 03-15-2008 06:24 AM

block device file delet after reboot from /dev
 
Dear Friends,

I have Configured RAID 5 in my Linux system(RHEL5).Now the Problem is ,i have created /dev/md5 through mdadm command.but after reboot linux it is not appearing in /dev directory.So i made one block device file with "mknod" commant and it was created successful but after reboot also it removes from /dev.

I can see my RAID status through "cat /proc/mdstat" command ,and it is showing active,but i can not run mdadm -D /dev/md5 ,due to md5 (block device) five does not exist in /dev.


Please Help me to resolve this problem.



Regards,

VIRAL AHIRE

bigrigdriver 03-15-2008 08:38 AM

http://www.redhat.com/docs/manuals/l...ware-raid.html

b0uncer 03-15-2008 08:43 AM

General: typically if there are some things that are "reset" when rebooted (alias in your shell, for example) then boot scripts are used to make them re-appear after you boot -- effectively making it look like those things were permanent. Sort of like if you want to run "ls --color" when typing "ls", you would make an alias for it, and to have it work forever after that you'd add it to a file that is read by your shell when you invoke it which creates the alias. It looks as if the alias is permanent, but it really isn't -- it's just re-made when the appropriate file is read. Boot scripts (init scripts) take care of things that happen when the system boots, so things you would want to happen every time you boot you can turn into an init script, or append to one. That's how it basically works today..most things are set up for you when you install the operating system (like udev automatically creating the device files for your devices), but some things are not, and as the system admin you need to do them yourself.


All times are GMT -5. The time now is 11:42 PM.