devices in /proc/mdstat ? (Ubuntu 5.04)
Kristian Vilmann
kvi at sslug.dk
Mon Jan 2 20:49:15 UTC 2006
Greetings!
I have a server with four scsi-disks in it.
It's configured with lvm on top of softwareraid (RAID 1)
Now I recieve a lot of errors from /dev/sdb i the logs, and I would like
to disable it until I get a new disk.
But how do I locate /dev/sdb from this:
$ cat /proc/mdstat
Personalities : [raid1]
md2 : active raid1 dm-12[1] dm-11[0]
69167744 blocks [2/2] [UU]
md0 : active raid1 dm-7[1] dm-6[0]
71127680 blocks [2/2] [UU]
md1 : active raid1 sdd1[0] sda1[1]
979840 blocks [2/2] [UU]
unused devices: <none>
$
md1 is from an older debian-installation, but md0 and md2 was created
when ubuntu was installed.
I can find the major/minor numbers:
$ cat /sys/block/dm-12/dev
253:12
$
Now, looking in /dev/mapper/ I find some different major/minor numbers:
$ ls -l /dev/mapper/
total 0
crw-rw---- 1 root root 10, 63 2005-11-24 00:28 control
brw------- 1 root root 253, 1 2005-11-24 00:28 vg_data-lv_home
brw------- 1 root root 253, 0 2005-11-24 00:28 vg_data-lv_var
brw------- 1 root root 253, 2 2005-11-24 00:28 vg_data-lv_www
brw------- 1 root root 253, 5 2005-11-24 00:28 vg_sys-lv_backup
brw------- 1 root root 253, 4 2005-11-24 00:28 vg_sys-lv_usr
brw------- 1 root root 253, 3 2005-11-24 00:28 vg_sys-lv_var
$
And then I'm stuck.
Where should I look to find out which RAID 1-device uses /dev/sdb ?
What documentation should I read?
Pointers will appreciated.
/kristian
--
Kristian Vilmann
Spread the word: http://linuxforum.dk/
More information about the ubuntu-users
mailing list