🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.os.linux.debian
Article #29934

Macierz i dyski spare

#29934
From: .:Artur:.
Date: Mon, 14 Aug 2006 20:10
69 lines
2935 bytes
Witam
Jest sobie macierz:
cat /proc/mdstat
md0 : active raid1 scsi/host0/bus0/target0/lun0/part1[0]
      2931712 blocks [1/1] [U]

unused devices: <none>
--------------------
mdadm --detail --scan /dev/md0
/dev/md0:
        Version : 00.90.00
  Creation Time : Wed Jun 21 00:34:26 2006
     Raid Level : raid1
     Array Size : 2931712 (2.80 GiB 3.00 GB)
    Device Size : 2931712 (2.80 GiB 3.00 GB)
   Raid Devices : 1
  Total Devices : 1
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Mon Aug 14 18:43:09 2006
          State : active
 Active Devices : 1
Working Devices : 1
 Failed Devices : 0
  Spare Devices : 0

           UUID : a3a90cae:eb8f286b:4b7b0f70:386bd87f
         Events : 0.238

    Number   Major   Minor   RaidDevice State
       0       8        1        0      active sync   /dev/sda1
-----------------------------
Jak widac raid jest zbudowany z jednego dysku. Dodajemy kolejny dysk:
mdadm /dev/md0 --add /dev/sdb1
bo ten chcemy dodac i :
-------------------------------
mdadm --detail --scan /dev/md0
/dev/md0:
        Version : 00.90.00
  Creation Time : Wed Jun 21 00:34:26 2006
     Raid Level : raid1
     Array Size : 2931712 (2.80 GiB 3.00 GB)
    Device Size : 2931712 (2.80 GiB 3.00 GB)
   Raid Devices : 1
  Total Devices : 2
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Tue Aug 15 00:11:07 2006
          State : active
 Active Devices : 1
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 1

           UUID : a3a90cae:eb8f286b:4b7b0f70:386bd87f
         Events : 0.239

    Number   Major   Minor   RaidDevice State
       0       8        1        0      active sync   /dev/sda1

       1       8       17        1      spare   /dev/sdb1
------------------
Wszystko jest cacy tylko tyle ze dodawany dysk jest dyskiem SPARE czyli
zapasowym a ja chce aby byl on w mirrorze z /dev/sda1.
Co robie zle. Bo pomysly to mi sie skonczyly
--
Artur
Technical Details
Message-ID: <ebqlh7$evj$1@nemesis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: ".:Artur:." <homus@no.spam.post.pl>
Newsgroups: pl.comp.os.linux.debian
Subject: Macierz i dyski spare
Date: Mon, 14 Aug 2006 22:10:45 +0200
Organization: tp.internet - http://www.tpi.pl/
Lines: 71
Message-ID: <ebqlh7$evj$1@nemesis.news.tpi.pl>
NNTP-Posting-Host: 80.48.179.123
X-Trace: nemesis.news.tpi.pl 1155586407 15347 80.48.179.123 (14 Aug 2006 20:13:27 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Mon, 14 Aug 2006 20:13:27 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1807
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit