Diagnostika disku (FS apod.)

pm-conf at kostax.cz pm-conf at kostax.cz
Tue Apr 25 10:54:12 CEST 2017


Zdravim konferenci,

mam problem s diagnostikou disku, nikdy jsem toto nemusel resit a trochu 
plavu. Kratky pribeh - u zakaznika nainstalovan FreeNAS na zalohy a v 
nem 3 disky (2x 2TB a 1x 3TB). Odesla USB flash, tak se nainstaloval 
novy FreeNAS. Nemuzu ale pripojit stare disky.
FreeNAS je postaven na FreeBSD, mam tedy k dispozici asi vse potrebne, 
ale s disky nic nedokazu. Problem je v tom, ze nikdo nevi, jak disky 
byly puvodne zapojene, jistota je jedina, byl pouzity nejaky sw raid, 
nic hardwaroveho. Z monitoringu vidim, ze byl monitorovan disk o 
kapacite 3.52GB. Takze si myslim, ze disky byly  takto:
2x 2TB gstripe
1x 3TB samostatny

A to je tak vsechno, co se o tom vi :-(

Do FreeNASu nejdou nijak primountovat, neni na nich videt zadny FS. 
Teoreticky tam mohlo byt i ZFS, ale vzhledem ke stari FreeNASu spise ne.

Ve /var/run/dmesg.boot jsou vsechny 3 disky:
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <WDC WD2002FAEX-007BA0 05.01D05> ATA8-ACS SATA 3.x device
ada0: Serial Number WD-WCAY01563207
ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 1907729MB (3907029168 512 byte sectors)
ada0: quirks=0x1<4K>
ada0: Previously was known as ad4
ada1 at ahcich1 bus 0 scbus1 target 0 lun 0
ada1: <WDC WD2002FAEX-007BA0 05.01D05> ATA8-ACS SATA 3.x device
ada1: Serial Number WD-WCAY01566497
ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada1: Command Queueing enabled
ada1: 1907729MB (3907029168 512 byte sectors)
ada1: quirks=0x1<4K>
ada1: Previously was known as ad6
ada2 at ahcich3 bus 0 scbus3 target 0 lun 0
ada2: <WDC WD3003FZEX-00Z4SA0 01.01A01> ACS-2 ATA SATA 3.x device
ada2: Serial Number WD-WCC1F0095188
ada2: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada2: Command Queueing enabled
ada2: 2861588MB (5860533168 512 byte sectors)
ada2: quirks=0x1<4K>
ada2: Previously was known as ad10


[root at freenas] ~# ls -al /dev/ad*
lrwxr-xr-x  1 root  wheel        4 Apr 21 10:02 /dev/ad10@ -> ada2
lrwxr-xr-x  1 root  wheel        4 Apr 21 10:02 /dev/ad4@ -> ada0
lrwxr-xr-x  1 root  wheel        4 Apr 21 10:02 /dev/ad6@ -> ada1
crw-r-----  1 root  operator  0x65 Apr 21 10:02 /dev/ada0
crw-r-----  1 root  operator  0x67 Apr 21 10:02 /dev/ada1
crw-r-----  1 root  operator  0x69 Apr 21 10:02 /dev/ada2


Stejnou odpoved dostanu i na ostatni disky:
[root at freenas] ~# file -s /dev/ada1
/dev/ada1: data


[root at freenas] ~# fdisk /dev/ada1
******* Working on device /dev/ada1 *******
parameters extracted from in-core disklabel are:
cylinders=3876021 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=3876021 heads=16 sectors/track=63 (1008 blks/cyl)

fdisk: invalid fdisk partition table found
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
     start 63, size 3907029105 (1907729 Meg), flag 80 (active)
	beg: cyl 0/ head 1/ sector 1;
	end: cyl 180/ head 15/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>

Potrebuji data hlavne z toho 3TB. Z toho stripe (jestli to byl stripe) 
to neni az tak dulezite.

Dekuji za kazdou radu

PM







More information about the Users-l mailing list