Saratov Linux User Group
 help / color / mirror / Atom feed
* [Sarlug] mdadm raid1
@ 2010-02-10 16:57 Denis S Mikhlevich
  0 siblings, 0 replies; only message in thread
From: Denis S Mikhlevich @ 2010-02-10 16:57 UTC (permalink / raw)
  To: Saratov Linux User Group Maillist

Приветсвую сообщество.
Сделал raid1 массив из двух одиннаковых винтов. Система Debian lenny. 
md0 - /boot, md1 - swap, md2 - /.

# cat /proc/mdstat
Personalities : [raid1]
md2 : active raid1 sda3[0] sdb3[1]
       142472384 blocks [2/2] [UU]

md1 : active (auto-read-only) raid1 sda2[0] sdb2[1]
       3903680 blocks [2/2] [UU]

md0 : active raid1 sda1[0] sdb1[1]
       144448 blocks [2/2] [UU]

unused devices: <none>

Не нравится вывод

# fdisk -l

Disk /dev/sda: 150.0 GB, 150039945216 bytes
255 heads, 63 sectors/track, 18241 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0001ec69

    Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          18      144553+  fd  Linux raid 
autodetect
/dev/sda2              19         504     3903795   fd  Linux raid 
autodetect
/dev/sda3             505       18241   142472452+  fd  Linux raid 
autodetect

Disk /dev/sdb: 150.0 GB, 150039945216 bytes
255 heads, 63 sectors/track, 18241 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0002cb11

    Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1          18      144553+  fd  Linux raid 
autodetect
/dev/sdb2              19         504     3903795   fd  Linux raid 
autodetect
/dev/sdb3             505       18241   142472452+  fd  Linux raid 
autodetect

Disk /dev/md0: 147 MB, 147914752 bytes
2 heads, 4 sectors/track, 36112 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x00000000

Disk /dev/md0 doesn't contain a valid partition table

Unable to seek on /dev/md1

а также такое

# mdadm -Q /dev/sda3
/dev/sda3: is not an md array
/dev/sda3: device 0 in 2 device active raid1 /dev/md2.  Use mdadm 
--examine for more detail.

а этот вроде нормальный вывод.
# mdadm -Q /dev/md2
/dev/md2: 135.87GiB raid1 2 devices, 0 spares. Use mdadm --detail for 
more detail.

а также когда систему выключаешь пишет там три строки, одна из них
Stopping /dev/md0 (Resource busy) красным цветом.

А вообще на внешний вид все работает. в Grub'e 2 строки с (hd1,0) и 
root=/dev/md2 и (hd0,0) root=/dev/md2 с обоих норм грузится. Во время 
старта ошибок нет.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-02-10 16:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-10 16:57 [Sarlug] mdadm raid1 Denis S Mikhlevich

Saratov Linux User Group

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sarlug/0 sarlug/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sarlug sarlug/ http://lore.altlinux.org/sarlug \
		sarlug@lists.lug.ru sarlug@lug.ru
	public-inbox-index sarlug

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sarlug


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git