Link to home
Get AccessLog in
Avatar of 91Change
91Change

asked on

raid1 ---questions

i have two disk drives /dev/hda and /dev/hdc and using linux .
i ran the below command .
mdadm  --create --verbose /dev/md0 --level=0 --raid-devices=2  /dev/hda /dev/hdc

i want to make the whole above process autmated . Is there any way to know /dev/md0 is already in use . Or choose the next available raid device ?



Avatar of MushyPea
MushyPea

What exactly do you want to automate?

/proc/mdstat contains a list of all currently known md* devices; you can work out the next available one from there.
ASKER CERTIFIED SOLUTION
Avatar of agriesser
agriesser
Flag of Austria image

Link to home
membership
This content is only available to members.
To access this content, you must be a member of Experts Exchange.
Get Access