LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   problem in ISCSi and RAID not working properly (https://www.linuxquestions.org/questions/linux-software-2/problem-in-iscsi-and-raid-not-working-properly-650341/)

vaibhavp 06-19-2008 10:28 AM

problem in ISCSi and RAID not working properly
 
Dear all,

i create the md0 raid array and added 7 devices
mdadm --create /dev/md0 --raid-devices=7 /dev/sdb /dev/sdc dev/sdd /dev/sde /dev/sdf /dev/sdg /dev/sdh --chunk=8 --level=0

and i mount that in /scratch


upto this workfine


but when i restart the service i.e service iscsi restart

my dev folder show the diffrent naming connvention

i.e it show disk
like sdi sdg ... and so on

how it works can you tell me and any solution for that it give always same name.



and also i want that after rebooting the system md0 must be persiest
when reboot system after creating array it goes in file system repair promt and mount file system readonly and md0 not mounted.

i create mdadm.conf file but it not work for me it give error that is superblock not found

is any mistake in creating array please tell me

thanks and regards
Vaibi

rayfordj 06-19-2008 10:40 AM

What OS?
You may want to consider using udev rules to make the iscsi devices persistently named. Or you may be able to call them by a unique attribute in /dev/.

for example:
Code:

/dev/disk/by-uuid/...
 -- or --
/dev/disk/by-id/...

instead of
Code:

/dev/sdb
the entries under /dev/disk/by-uuid/ and /dev/disk/by-id/ should be links to the correct device entry (/dev/sdb -- or whatever).

as for the fstab mount of md0, since it relies on networking (iscsi), you should ensure that the _netdev is used and you may want to consider changing the fs_passno field (6th field).

example:
Code:

/dev/md0    /scratch    ext3    _netdev  0 2
 -- or --
/dev/md0    /scratch    ext3    _netdev  0 0

Hope this helps.


All times are GMT -5. The time now is 03:11 AM.