Rimozione Raid1 per errore

Discussioni sulle funzioni di RAID0/ RAID1/ Q-RAID1/RAID5/ dei NAS.
Rispondi
skynet74
Messaggi: 2
Iscritto il: 26/03/2013, 9:06

Rimozione Raid1 per errore

Messaggio da skynet74 »

Ciao a tutti, ho commesso un errore e spero di riuscire a tornare indietro.

Ho un Qnap TS-410 con 2 hdd da 3Tb, purtroppo per una mio errore ho rimosso il Raid1.
quindi mi ritrovo con 2 dischi non montati. (non ho ovviamente reinizializzato quindi i dati sono presenti)

C'e' qualcuno che potrebbe aiutarmi per ripristinare il raid1 mantenendo i dati

ma non sono sicuro, c'e' qualcuno che può gentilmente darmi un consiglio per operare al meglio?

PS: mi sto mangiando le mani!!!

Grazie mille a tutti

sul supporto ho trovato questo: http://qnapsupport.net/?page_id=1336
VII – User Remove the RAID Volume

# more /proc/mdstat

**Check if the RAID is really removed

# mdadm -E /dev/sda3

** Check if the MD superblock is really removed

# mdadm -CfR –assume-clean /dev/md0 -l 5 -n 3 /dev/sda3 /dev/sdb3 /dev/sdc3

**Create the RAID, assume it is 3 HDDs raid-5

# e2fsck -y /dev/md0

**check file system, Assume “yes” to all questions. If 64-bit, e2fsck_64

# mount /dev/md0 /share/MD0_DATA -t ext4

** mount the RAID back

# vi raidtab

** manually create the raid table

# reboot

** Need to add the removed network share(s) back after reboot
skynet74
Messaggi: 2
Iscritto il: 26/03/2013, 9:06

Re: Rimozione Raid1 per errore

Messaggio da skynet74 »

Questo è quello che c'è da fare per il corretto ripristino di un raid1 "smontato", se c'e' qualcuno che può dargli un'occhiata per conferma, grazie!

VII – User Remove the RAID Volume

fdisk -l

**List partition tables

# more /proc/mdstat

**Check if the RAID is really removed

# mdadm -E /dev/sda2

** Check if the MD superblock is really removed

# mdadm -CfR –assume-clean /dev/md0 -l 1 -n 2 /dev/sda2 /dev/sdb2

**Create the RAID, assume it is 2 HDDs raid-1

# e2fsck -y /dev/md0

**check file system, Assume “yes” to all questions. If 64-bit, e2fsck_64

# mount /dev/md0 /share/MD0_DATA -t ext3

** mount the RAID back

# vi raidtab

** manually create the raid table

raiddev /dev/md0
        raid-level      1
        nr-raid-disks   2
        nr-spare-disks  0
        chunk-size      4
        persistent-superblock   1
        device  /dev/sda3
        raid-disk       0
        device  /dev/sdb3
        raid-disk       1

# rm /etc/storage.conf
** reflash the web UI volume display

# reboot

** Need to add the removed network share(s) back after reboot
Rispondi