[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: raid/mdadm help -- Part duex



On Mon, 23 Jun 2014 18:22:02 +0200
François Patte <francois.patte@mi.parisdescartes.fr> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Le 23/06/2014 17:22, Rodney D. Myers a écrit :
> 
> which should be still similar in Debian 7. If you are new to RAID,
> 
> 
> So what HTH you says is the good way: create one partitions on each of
> your storages devices (say sdX1 and sdY1) then use the given command:
> 
> # mdadm --create /dev/md0 --level=1 --raid-devices=2 \
> 						/dev/sdX1 /dev/sdY1
> 
> Then format the created raid array
> 
> # mkfs.ext4 /dev/md0
> 
> Create a mount point for your raid:
> 
> # mkdir /storage-raid
> 
> Try the result
> 
> # mount /dev/md0 /storage-raid
> 
> If everything ok, finish your install
> 
> 1-
> 
> # blkid /dev/md0
> 
> /dev/md0: UUID="41Js9Q-0WaZ-JGYR-r88a-FiqA-XS5F-0XWNOy" (of course the
> uuid will be different for you)
> 
> 2- add this in /etc/fstab:
> 
> UUID=41Js9Q-0WaZ-JGYR-r88a-FiqA-XS5F-0XWNOy /storage-raid ext4 rw 0 0
> 
> 3-
> 
> # mdadm --detail --scan >> /etc/mdadm/mdadm.conf
> 
> 
> reboot and see if everything works fine...
 
Seems that the USB port was very flaky. Grabbed an eSata card, and
things worked over night. I've donw everything except reboot, and it
appears to be functioning

 mdadm --detail /dev/md0 
/dev/md0:
        Version : 1.2
  Creation Time : Thu Jul  3 21:07:10 2014
     Raid Level : raid5
     Array Size : 1953260544 (1862.77 GiB 2000.14 GB)
  Used Dev Size : 976630272 (931.39 GiB 1000.07 GB)
   Raid Devices : 3
  Total Devices : 3
    Persistence : Superblock is persistent

  Intent Bitmap : Internal

    Update Time : Fri Jul  4 06:11:41 2014
          State : active, degraded 
 Active Devices : 2
Working Devices : 3
 Failed Devices : 0
  Spare Devices : 1

         Layout : left-symmetric
     Chunk Size : 512K

           Name : riverside:0  (local to host riverside)
           UUID : 0043348a:26fadb1e:d05de28e:40dc70b7
         Events : 25610

    Number   Major   Minor   RaidDevice State
       0       8       17        0      active sync   /dev/sdb1
       1       8       33        1      active sync   /dev/sdc1
       4       0        0        4      removed

       3       8       49        -      spare   /dev/sdd1

I hope that this is what this means :-)

-- 
Rodney D. Myers <rdmyers.42@gmail.com>

They that can give up essential liberty to obtain a
little temporary safety deserve neither liberty nor safety.
        Ben Franklin - 1759

Attachment: signature.asc
Description: PGP signature


Reply to: