ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "Костырев Александр Алексеевич" <a.kostyrev@serverc.ru>
To: <sysadmins@lists.altlinux.org>
Subject: [Sysadmins] восстановление linear raid
Date: Tue, 26 Jun 2012 17:52:27 +1100
Message-ID: <213B51F00051AE48A9F0E112880177178F7A56@Delta.sc.local> (raw)

Добрый день!
пытась побороть восстановление инфы с двух дисков, собранных в linear через mdadm
я понимаю, что этот режим не предоставляет какого-либо redundancy, и в случае смерти одного из дисков, инфа, что была на нем, утрачена.

пока пытаюсь проделать операцию по восстанвлению на виртаулке.

Добавил два 50M диска в виртуалочку.

разметил
Device Boot      Start     End      Blocks  Id  System
/dev/vdb1        2048      102399   50176   fd  Linux raid autodetect
Device Boot      Start     End      Blocks  Id  System
/dev/vdc1        2048      102399   50176   fd  Linux raid autodetect

создал массив
mdadm --create --verbose /dev/md0 --level linear --raid-disks 2 /dev/vdb1 /dev/vdc1
mdadm --detail --scan >> /etc/mdadm/mdadm.conf

файловую систему
mkfs.xfs /dev/md0 
mount /dev/md0 /mnt/linear/

заполнил данными
mkdir /mnt/linear/etc
mkdir /mnt/linear/etc2
mkdir /mnt/linear/etc3
cp -r /etc/* /mnt/linear/etc/
cp -r /etc/* /mnt/linear/etc2/
cp -r /etc/* /mnt/linear/etc3/

df -h /dev/md0
Filesystem            Size  Used Avail Use% Mounted on
/dev/md0               92M   69M   23M  76% /mnt/linear

затем я удаляю из вирталки (KVM) один из дисков.

umount /mnt/linear
mdadm --stop /dev/md0

и добавляю новый диск в 50 метров.

размечаю также
sfdisk -d /dev/vdb | sfdisk /dev/vdc

и вот тут затык. как быть дальше непонятно

мож кто заморачивался и подскажет?
спасибо!


--
С уважением,
Костырев Александр


                 reply	other threads:[~2012-06-26  6:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=213B51F00051AE48A9F0E112880177178F7A56@Delta.sc.local \
    --to=a.kostyrev@serverc.ru \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

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


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