Kirjoittaja Aihe: Softa RAID5 asennus keskeytyi ja nyt pitäisi aloittaa alusta, ei onnistu..  (Luettu 1381 kertaa)

rassi

  • Käyttäjä
  • Viestejä: 49
    • Profiili
Eilen tuli sopivassa välissä sähkökatkos ja RAID5 pakan rakentaminen jäi kesken, jos
tuota olisi voinut vielä jatkaa tuosta katkos kohdasta, niin sen voi unohtaa, sen verran tullut temppuiltua eri komennoilla.

Alusta pitäisi siis aloittaa. linux.fi / LVM + RAID ohjeella tehnyt.

 Ongelma on tämä.

Koodia: [Valitse]
:~$ sudo mdadm --verbose --create /dev/md0 --level 5 --raid-devices=4 /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1
mdadm: layout defaults to left-symmetric
mdadm: chunk size defaults to 64K
mdadm: Cannot open /dev/sdc1: Device or resource busy
mdadm: create aborted

Tuota sdc1 levyä ei ole mountattu

Koodia: [Valitse]
$ mount
/dev/sda1 on / type ext3 (rw)
proc on /proc type proc (rw)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
none on /var/lib/ureadahead/debugfs type debugfs (rw,relatime)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/juha/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=juha)


fdisk -l näyttää seuraavaa

Koodia: [Valitse]
Disk /dev/sdc: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1      182401  1465136001   fd  Linux raid autodetect

Disk /dev/sdd: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc98f4609

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1      182401  1465136001   fd  Linux raid autodetect

Disk /dev/sde: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sde1               1      182401  1465136001   fd  Linux raid autodetect

Disk /dev/sdb: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc6cfb69d

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      182401  1465136001   fd  Linux raid autodetect


dmesg:

Koodia: [Valitse]
$ dmesg | grep sdc
[    1.399263] sd 1:0:0:0: [sdc] 2930277168 512-byte logical blocks: (1.50 TB/1.36 TiB)
[    1.399437] sd 1:0:0:0: [sdc] Write Protect is off
[    1.399446] sd 1:0:0:0: [sdc] Mode Sense: 00 3a 00 00
[    1.399544] sd 1:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.400991]  sdc:
[    1.410194] sd 1:0:0:0: [sdc] Attached SCSI disk
[  107.397909]  sdc: sdc1
[  107.484371] md: bind<sdc1>

Kesken jääneen poisto sanoo SDC levyllä näin, muille levyille tuo taisi mennä heti läpi

Koodia: [Valitse]
$ sudo mdadm --zero-superblock /dev/sdc1
mdadm: Couldn't open /dev/sdc1 for write - not zeroing

Olen apt-get removela ottanut mdadm ja lvm2 pois ja laittanut mdadm:n pois.


rassi

  • Käyttäjä
  • Viestejä: 49
    • Profiili
Konetta on buutattu, partitioita poistettu ja luotu uudelleen.

Tälläinen vielä

Koodia: [Valitse]
$ cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : inactive sdc1[1](S)
      1465135936 blocks

unused devices: <none>


jaahas, jokohan se nyt lähti

Koodia: [Valitse]
$ sudo mdadm -S /dev/md0
mdadm: stopped /dev/md0

--stop vivulla tuli aikasemmin yritettyä, mutta nyt ehkä tärppäsi.


Koodia: [Valitse]
$ sudo mdadm --verbose --create /dev/md0 --level 5 --raid-devices=4 /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1
mdadm: layout defaults to left-symmetric
mdadm: chunk size defaults to 64K
mdadm: /dev/sdc1 appears to be part of a raid array:
    level=raid5 devices=4 ctime=Wed Aug 11 21:00:42 2010
mdadm: size set to 1465135936K
Continue creating array?

Ilmeisestikkin

Koodia: [Valitse]
$ sudo mdadm -D /dev/md0
/dev/md0:
        Version : 00.90
  Creation Time : Thu Aug 12 14:01:24 2010
     Raid Level : raid5
     Array Size : 4395407808 (4191.79 GiB 4500.90 GB)
  Used Dev Size : 1465135936 (1397.26 GiB 1500.30 GB)
   Raid Devices : 4
  Total Devices : 4
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Thu Aug 12 14:01:46 2010
          State : clean, degraded, recovering
 Active Devices : 3
Working Devices : 4
 Failed Devices : 0
  Spare Devices : 1

         Layout : left-symmetric
     Chunk Size : 64K

 Rebuild Status : 0% complete

           UUID : 13797985:902c00dd:cced5de7:ca715931 (local to host NAS)
         Events : 0.4

    Number   Major   Minor   RaidDevice State
       0       8       17        0      active sync   /dev/sdb1
       1       8       33        1      active sync   /dev/sdc1
       2       8       49        2      active sync   /dev/sdd1
       4       8       65        3      spare rebuilding   /dev/sde1


Näkeekö joku noissa jotain outoa, että meneeköhän tuo rakennus nyt oikein? :)


« Viimeksi muokattu: 12.08.10 - klo:14.02 kirjoittanut rassi »