UNIX BLOG

Blog for NIX system based administrators

mdadm sending ioctl 1261 to a partition!

mdadm sending ioctl 1261 to a partition!  and probably failing of one HDD drive

If you get this message in linux mdadm config.

Then you need to check mdadm settings with the following command:

cat /proc/mdstat

If you got cat

 

/proc/mdstat

	Personalities : [raid1]

	md2 : active raid1 sda3[0]

	      935745400 blocks super 1.2 [2/1] [U_]

	

	md1 : active raid1 sda2[0]

	      39061432 blocks super 1.2 [2/1] [U_]

	

	md0 : active (auto-read-only) raid1 sda1[0]

	      1950708 blocks super 1.2 [2/1] [U_]

	

	unused devices: <none>

probably you need to check you HDD devices, One of it is fail.


How to diagnose.

check hdparm -C /dev/sda and hdparm -C /dev/sdb

If one of the drive is inactive, restart the system.

If after restarteing /dev/sdb will be up and runing just run

 mdadm –manage /dev/md0 –add /dev/sdb

<p>
	cat /proc/mdstat&nbsp; :
</p>
<p>
	Personalities : [raid1]<br />
	md2 : active raid1 sda3[0]<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 935745400 blocks super 1.2 [2/1] [U_]
</p>
<p>
	md1 : active raid1 sdb2[1] sda2[0]<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 39061432 blocks super 1.2 [2/1] [U_]<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [>....................]&nbsp; recovery =&nbsp; 4.5% (1781824/39061432) finish=79.6min speed=7804K/sec
</p>
<p>
	md0 : active raid1 sdb1[1] sda1[0]<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1950708 blocks super 1.2 [2/2] [UU]
</p>

unused devices: <none>

 

You need to check the kernel and controller, or maybe one of the disk fails after some time of working.

 

 

Tags: , ,


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>