Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Mensagens - adpinto

Páginas: [1]
1
Servidores / Re:Montar partição em HD que era parte de RAID1 MDADM
« Online: 12 de Fevereiro de 2020, 19:45 »
Caro zekkerj

Grato pelo apoio! irei fazer um dd para um outro hd de 1 também e posteriormente tentarei recriar ou simplesmente forçar uma troca de fd por 83 usando o fdisk. Ocorre que sdc1 provavelmente foi zerado ao que reparei (limpo) por isso forçadamente, aparece com 83 ao inves de fd.

Qq outra recomendação será muito bem vinda.

Abçs

2
Servidores / Re:Montar partição em HD que era parte de RAID1 MDADM
« Online: 12 de Fevereiro de 2020, 19:24 »
Grande zekkerj, boa noite

Também reparei esse array Raid 0 e não entendi. Estou usando apenas este disco sdc e tentando salvar a partição. não estou usando RAID e não configurei RAID nesta nova maquina.

user@:~$ sudo mdadm -A /dev/sdc
mdadm: device /dev/sdc exists but is not an md array.

?????

Abçs

3
Servidores / Re:Montar partição em HD que era parte de RAID1 MDADM
« Online: 12 de Fevereiro de 2020, 18:25 »
Ola zekkerj

Durante esta tarde, fiz uma rapida pesquisa e verifiquei algumas alternativas:

1. Recriar o superbloco com Testdisk e tentar montar sdc ?
2. Restaurar /dev/sdc3 com foremost ?
3. ???

O que vc me sugere? Grato

4
Servidores / Re:Montar partição em HD que era parte de RAID1 MDADM
« Online: 12 de Fevereiro de 2020, 18:21 »
Acredito que /dev/sdc1 esteja zerado, incluindo o superbloco. veja isso:

user@:~$ sudo fsck /dev/sdc1
fsck de util-linux 2.34
e2fsck 1.45.3 (14-Jul-2019)
/dev/sdc1: limpo, 11/1954064 ficheiros, 166700/7812500 blocos

Abçs

5
Servidores / Re:Montar partição em HD que era parte de RAID1 MDADM
« Online: 12 de Fevereiro de 2020, 18:15 »
Grato zekkerj!
userr@:~$ sudo mdadm -D /dev/md127
[
/dev/md127:
           Version : 1.2
        Raid Level : raid0
     Total Devices : 1
       Persistence : Superblock is persistent

             State : inactive
   Working Devices : 1

              Name : Server:1
              UUID : d7c061fb:bfb80064:2e9510e7:50c30067
            Events : 5077

    Number   Major   Minor   RaidDevice

       -       8       35        -        /dev/sdc3

6
Servidores / Re:Montar partição em HD que era parte de RAID1 MDADM
« Online: 12 de Fevereiro de 2020, 13:36 »
user@:~$ sudo smartctl -a /dev/sdc -T verypermissive
smartctl 7.0 2018-12-30 r4883 [x86_64-linux-5.3.0-29-generic] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     SAMSUNG SpinPoint F3
Device Model:     SAMSUNG HD103SJ
Serial Number:    S2QUJ50BA12343
LU WWN Device Id: 5 0024e9 400d3138a
Firmware Version: 1AJ10001
User Capacity:    1.000.204.886.016 bytes [1,00 também]
Sector Size:      512 bytes logical/physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 6
SATA Version is:  SATA 2.6, 3.0 Gb/s
Local Time is:    Wed Feb 12 13:34:35 2020 -03
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00)   Offline data collection activity
               was never started.
               Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0)   The previous self-test routine completed
               without error or no self-test has ever
               been run.
Total time to complete Offline
data collection:       ( 9360) seconds.
Offline data collection
capabilities:           (0x5b) SMART execute Offline immediate.
               Auto Offline data collection on/off support.
               Suspend Offline collection upon new
               command.
               Offline surface scan supported.
               Self-test supported.
               No Conveyance Self-test supported.
               Selective Self-test supported.
SMART capabilities:            (0x0003)   Saves SMART data before entering
               power-saving mode.
               Supports SMART auto save timer.
Error logging capability:        (0x01)   Error logging supported.
               General Purpose Logging supported.
Short self-test routine
recommended polling time:     (   2) minutes.
Extended self-test routine
recommended polling time:     ( 156) minutes.
SCT capabilities:           (0x003f)   SCT Status supported.
               SCT Error Recovery Control supported.
               SCT Feature Control supported.
               SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   100   100   051    Pre-fail  Always       -       6
  2 Throughput_Performance  0x0026   252   252   000    Old_age   Always       -       0
  3 Spin_Up_Time            0x0023   070   047   025    Pre-fail  Always       -       9122
  4 Start_Stop_Count        0x0032   099   099   000    Old_age   Always       -       1568
  5 Reallocated_Sector_Ct   0x0033   252   252   010    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002e   252   252   051    Old_age   Always       -       0
  8 Seek_Time_Performance   0x0024   252   252   015    Old_age   Offline      -       0
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       4937
 10 Spin_Retry_Count        0x0032   252   252   051    Old_age   Always       -       0
 11 Calibration_Retry_Count 0x0032   252   252   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   099   099   000    Old_age   Always       -       1586
191 G-Sense_Error_Rate      0x0022   100   100   000    Old_age   Always       -       82
192 Power-Off_Retract_Count 0x0022   252   252   000    Old_age   Always       -       0
194 Temperature_Celsius     0x0002   064   050   000    Old_age   Always       -       28 (Min/Max 12/50)
195 Hardware_ECC_Recovered  0x003a   100   100   000    Old_age   Always       -       0
196 Reallocated_Event_Count 0x0032   252   252   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   252   252   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   252   252   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0036   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x002a   100   100   000    Old_age   Always       -       24
223 Load_Retry_Count        0x0032   252   252   000    Old_age   Always       -       0
225 Load_Cycle_Count        0x0032   100   100   000    Old_age   Always       -       1587

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]

SMART Selective self-test log data structure revision number 0
Note: revision number not 1 implies that no selective self-test has ever been run
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Completed [00% left] (0-65535)
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

7
Servidores / Re:Montar partição em HD que era parte de RAID1 MDADM
« Online: 12 de Fevereiro de 2020, 13:28 »
Complementando o post anterior:

user@:~$ sudo mdadm -E /dev/sdc
/dev/sdc:
   MBR Magic : aa55
Partition[0] :     62500000 sectors at         2048 (type 83)
Partition[1] :     15624192 sectors at   1937899520 (type fd)
Partition[2] :   1875396608 sectors at     62502912 (type fd)

Abçs e Obrigado

8
Servidores / Re:Montar partição em HD que era parte de RAID1 MDADM
« Online: 12 de Fevereiro de 2020, 12:29 »
Os arrays eram baseados no disco completo, assim, md127 era parte do disco. ocorre que meu interesse era apenas na partição /home em sdc3

user@:~$ sudo mdadm --assemble /dev/md127 --update=uuid /dev/sdc

mdadm: Cannot assemble mbr metadata on /dev/sdc
mdadm: /dev/sdc has no superblock - assembly aborted

Grato pelo apoio até aqui!! (y)

9
Servidores / Re:Montar partição em HD que era parte de RAID1 MDADM
« Online: 12 de Fevereiro de 2020, 11:50 »
Olá zekkerj! Grato pela atenção

Não estou mais usando opção server, retornei ao Ubuntu desktop.

user@:~$ sudo mdadm -E /dev/sdc3
/dev/sdc3:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x1
     Array UUID : d7c061fb:bfb80064:2e9510e7:50c30067
           Name : Server:1
  Creation Time : Sat Aug 20 17:55:48 2016
     Raid Level : raid1
   Raid Devices : 2

 Avail Dev Size : 1875134464 (894.13 GiB 960.07 GB)
     Array Size : 937567232 (894.13 GiB 960.07 GB)
    Data Offset : 262144 sectors
   Super Offset : 8 sectors
   Unused Space : before=262056 sectors, after=0 sectors
          State : clean
    Device UUID : 56d7b7d8:18aba8a3:b5ee5c7c:d7f59ac7

Internal Bitmap : 8 sectors from superblock
    Update Time : Wed Aug  7 18:20:04 2019
  Bad Block Log : 512 entries available at offset 72 sectors
       Checksum : 533e08d4 - correct
         Events : 5077

   Device Role : Active device 0
   Array State : a ('A' == active, '.' == missing, 'R' == replacing)

Abçs

10
Servidores / Montar partição em HD que era parte de RAID1 MDADM
« Online: 12 de Fevereiro de 2020, 10:41 »
Bom Dia!
Tentando resgatar partição em HD que era parte de RAID1 mdadm no Ubuntu. Optei em migrar para uma instalação nova do Ubuntu 19.10 porém não consigo montar a partição sdc3 ou mesmo o sdc.

Toda ajuda/dica será muito bem vinda e encaminho alguns procedimentos já efetuados. Instalado mdadm no novo servidor, porém sem ativar o RAID1

user@:~$ cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md127 : inactive sdc3 0 937567232 blocks super 1.2

user@:~$ sudo mdadm --assemble --scan
mdadm: No arrays found in config file or automatically

user@:~$ sudo mdadm --examine /dev/sdc
 /dev/sdc: MBR Magic : aa55 Partition[0] : 62500000 sectors at 2048 (type 83) Partition[1] : 15624192 sectors at 1937899520 (type fd) Partition[2] : 1875396608 sectors at 62502912 (type fd)

user@:~$ sudo fdisk -l /dev/sdc
 Disco /dev/sdc: 931,53 GiB, 1000204886016 bytes, 1953525168 setores Disk model: SAMSUNG HD103SJ Unidades: setor de 1 * 512 = 512 bytes Tamanho de setor (lógico/físico): 512 bytes / 512 bytes Tamanho E/S (mínimo/ótimo): 512 bytes / 512 bytes Tipo de rótulo do disco: dos Identificador do disco: 0x0004af66
Dispositivo Inicializar Início Fim Setores Tamanho Id Tipo /dev/sdc1 2048 62502047 62500000 29,8G 83 Linux /dev/sdc2 1937899520 1953523711 15624192 7,5G fd Linux RAID a /dev/sdc3 62502912 1937899519 1875396608 894,3G fd Linux RAID a
Logic partitions out of disk order

Tentei assemble na partição; resposta abaixo

user@:~$ sudo mdadm --assemble /dev/md127 --update=uuid /dev/sdc3
mdadm: /dev/sdc3 is busy - skipping

Grato pela atenção!
adpinto

Páginas: [1]