OVH Community, votre nouvel espace communautaire.

GPT / EFI : Debian ne boot pas


cislo
17/06/2016, 12h25
Merci pour ta réponse.

Au niveau des logs non je ne trouvai rien (même dans dmsg car le kernel ne bootait meme pas en fait).
Pour le support OVH kms oui je viens de comprendre que c'était : débrouilles toi si côté hard tout va bien ...
Disons que la première fois ça fait toujours bizare, après on comprend qu'il faut simplement se prévaloir de tout ça ...

Oui je suis en prod, et oui c'est mal
Mais on a commencé en startup avec 0 $$ (et c'est d'ailleurs toujours un peu le cas), à l'époque les offres kimsuffi (je sais pas maintenant) étaient vraiment top donc on a pas trop reflechi ... Je vais le faire maitenant car cette épisode m'a donné une bonne touffe de cheveux blancs en plus !

Sinon c'est résolu en bootant sur leur kernel via réseau, ce que je ne pige vraiment pas c'est que tout marche alors que mongodb a été compilé pour un autre noyau (là il y a defois où par la forces des choses tu penses à l'existence de Dieu )

Merci en tous les cas pour les réponses, ça fait vraiment plaisir de ne pas se sentir seul quand on fait face à ce genre de problème (phrase tirée des feux de l'amour)

merci et ++

Nowwhat
17/06/2016, 10h29
Bonjour,

Je présume que l’accès 'rescue' fonctionne.
Mount tes partions, puis, va voir dans /mnt/var/log le log nommé 'dmesg' (et autre logs récents - mise à jour pendant le boot) : tu trouve quelque chose ?
Montre-nous.

PS : ce forum est pour les serveurs d'OVH. T'es au courant que https://forum dot kimsufi dot com existe ?
Disons que le support est différent pour les serveurs OVH : t'auras rapidement (ouvre un ticket pour ce serveur) quelqu'un qui va t'expliquer que c'est un situation strictement "logiciel", et c'est donc ton admin qui doit faire son boulot.
Pour les KS (autre manager - lui de KS, TON Manager) : pareil, ouvre un ticket - soit très, très patient, et t'auras peut être quelque'un de l'équipe de KS qui va regarder - mais ils n'inspecte même pas ton serveur , car "c'est un situation strictement "logiciel", et c'est donc ton admin qui doit faire son boulot.".

En gros : si t'arrive PAS à prouver que c'est le hardware qui déconne (KS te donne des outils pour ça) c'est un soucis "logiciel".
A toi de détailler ce que tu trouve.
On avisera après.

PS2 : un serveur de prod .... Un KS ????? (t'es sur là ???) et en plus : pas payer ce serveur (payer est encore plus important que l'utiliser ...
Je ne comprend pas : ce genre d'outils, je le bascule en prélèvement DE SUITE pour éviter que je fasse une connerie du genre "oublier ..."

Je te conseille sérieusement de basculer sur un SYS .... (j'ai fait la même chose, je ne le regrette pas)

cislo
17/06/2016, 09h52
Bonjour et merci de la réponse.

Le serveur est un Kimsuffi classique, Debian, avec un kernel compilé et installé à la main.

Oui il n'y a qu'un seul disque dur avec plusieurs partitions (1 systeme, 1 /home, 1 swap)

voici ce que donne smartctrl :

Code:
smartctl 6.4 2014-10-07 r4002 [x86_64-linux-3.14.32-xxxx-std-ipv6-64-rescue] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Hitachi Deskstar 7K3000
Device Model:     Hitachi HDS723020BLA642
Serial Number:    MN1220F327MYHG
LU WWN Device Id: 5 000cca 369dfa880
Firmware Version: MN6OA5C0
User Capacity:    2,000,398,934,016 bytes [2.00 TB]
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 4
SATA Version is:  SATA 2.6, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Fri Jun 17 09:44:55 2016 CEST
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:  (0x84) Offline data collection activity
                                        was suspended by an interrupting command from host.
                                        Auto Offline Data Collection: Enabled.
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:                (19238) 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:        (   1) minutes.
Extended self-test routine
recommended polling time:        ( 321) minutes.
SCT capabilities:              (0x003d) 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     0x000b   100   100   016    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   136   136   054    Pre-fail  Offline      -       82
  3 Spin_Up_Time            0x0007   137   137   024    Pre-fail  Always       -       416 (Average 423)
  4 Start_Stop_Count        0x0012   100   100   000    Old_age   Always       -       80
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000b   100   100   067    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0005   135   135   020    Pre-fail  Offline      -       26
  9 Power_On_Hours          0x0012   095   095   000    Old_age   Always       -       37323
 10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       80
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       236
193 Load_Cycle_Count        0x0012   100   100   000    Old_age   Always       -       236
194 Temperature_Celsius     0x0002   139   139   000    Old_age   Always       -       43 (Min/Max 20/47)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   000    Old_age   Always       -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%     13196         -
# 2  Short offline       Completed without error       00%     13187         -
# 3  Short offline       Completed without error       00%     10021         -
# 4  Short offline       Completed without error       00%     10021         -
# 5  Short offline       Completed without error       00%     10003         -
# 6  Short offline       Completed without error       00%     10003         -
# 7  Short offline       Completed without error       00%      9838         -
# 8  Short offline       Completed without error       00%      9838         -
# 9  Short offline       Completed without error       00%      9778         -
#10  Short offline       Completed without error       00%      9778         -
#11  Short offline       Completed without error       00%      9684         -
#12  Short offline       Completed without error       00%      9684         -
#13  Short offline       Completed without error       00%      9662         -
#14  Short offline       Completed without error       00%      9662         -
#15  Short offline       Completed without error       00%      9615         -
#16  Short offline       Completed without error       00%      9615         -
#17  Short offline       Completed without error       00%      9587         -
#18  Short offline       Completed without error       00%      9587         -
#19  Short offline       Completed without error       00%      9565         -
#20  Short offline       Completed without error       00%      9565         -
#21  Short offline       Completed without error       00%      9500         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    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.

cislo
17/06/2016, 09h46
Bonjour,
C'est un serveur kimsuffi tout ce qu'il y a de classique, et oui je crois qu'il y a un seul disque dur avec plusieurs partitions.

Smartctrl /dev/sda1 -a :

Code:
smartctl 6.4 2014-10-07 r4002 [x86_64-linux-3.14.32-xxxx-std-ipv6-64-rescue] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Hitachi Deskstar 7K3000
Device Model:     Hitachi HDS723020BLA642
Serial Number:    MN1220F327MYHG
LU WWN Device Id: 5 000cca 369dfa880
Firmware Version: MN6OA5C0
User Capacity:    2,000,398,934,016 bytes [2.00 TB]
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 4
SATA Version is:  SATA 2.6, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Fri Jun 17 09:44:55 2016 CEST
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:  (0x84) Offline data collection activity
                                        was suspended by an interrupting command from host.
                                        Auto Offline Data Collection: Enabled.
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:                (19238) 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:        (   1) minutes.
Extended self-test routine
recommended polling time:        ( 321) minutes.
SCT capabilities:              (0x003d) 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     0x000b   100   100   016    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   136   136   054    Pre-fail  Offline      -       82
  3 Spin_Up_Time            0x0007   137   137   024    Pre-fail  Always       -       416 (Average 423)
  4 Start_Stop_Count        0x0012   100   100   000    Old_age   Always       -       80
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000b   100   100   067    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0005   135   135   020    Pre-fail  Offline      -       26
  9 Power_On_Hours          0x0012   095   095   000    Old_age   Always       -       37323
 10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       80
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       236
193 Load_Cycle_Count        0x0012   100   100   000    Old_age   Always       -       236
194 Temperature_Celsius     0x0002   139   139   000    Old_age   Always       -       43 (Min/Max 20/47)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   000    Old_age   Always       -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%     13196         -
# 2  Short offline       Completed without error       00%     13187         -
# 3  Short offline       Completed without error       00%     10021         -
# 4  Short offline       Completed without error       00%     10021         -
# 5  Short offline       Completed without error       00%     10003         -
# 6  Short offline       Completed without error       00%     10003         -
# 7  Short offline       Completed without error       00%      9838         -
# 8  Short offline       Completed without error       00%      9838         -
# 9  Short offline       Completed without error       00%      9778         -
#10  Short offline       Completed without error       00%      9778         -
#11  Short offline       Completed without error       00%      9684         -
#12  Short offline       Completed without error       00%      9684         -
#13  Short offline       Completed without error       00%      9662         -
#14  Short offline       Completed without error       00%      9662         -
#15  Short offline       Completed without error       00%      9615         -
#16  Short offline       Completed without error       00%      9615         -
#17  Short offline       Completed without error       00%      9587         -
#18  Short offline       Completed without error       00%      9587         -
#19  Short offline       Completed without error       00%      9565         -
#20  Short offline       Completed without error       00%      9565         -
#21  Short offline       Completed without error       00%      9500         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    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.

buddy
17/06/2016, 09h34
Bonjour,

as-tu vérifié l'état du disque dur ? smartctl ?

c'est quoi comme serveur ? car là on dirait qu'il n'y a qu'un disque dur.

cislo
17/06/2016, 09h20
Bonjour, je n'ai pas payé OVH à temps : du coup ils m'ont coupé le service ...
J'ai payé juste après mais maintenant la machine de boot plus sur ma machine Debian (avec un kernel standard installé)

Je ne comprends pas pourquoi ce changement de comportement, j'ai bidouillé à droite à gauche grub et les partitions mais rien à faire

C'est une machine de prod et je suis vraiment dans la MMMM......EEEEEE

Je me demande si c'est normal d'avoir un GPT/EFI comme içi :

Code:
--- /dev/sda
Block device, size 1.819 TiB (2000398934016 bytes)
GRUB boot loader, unknown compat version 0
DOS/MBR partition map
Partition 1: 1.819 TiB (2000398933504 bytes, 3907029167 sectors from 1)
  Type 0xEE (EFI GPT protective)
GPT partition map, 128 entries
  Disk size 1.819 TiB (2000398934016 bytes, 3907029168 sectors)
  Disk GUID FD6C4CFB-B00F-F244-9C4E-5EE1FB25B349
Partition 1: 20 GiB (21474836480 bytes, 41943040 sectors from 4096)
  Type Unknown (GUID AF3DC60F-8384-7247-8E79-3D69D8477DE4)
  Partition Name "primary"
  Partition GUID 2060FC3D-0829-9F49-88F9-854D20425412
  Ext4 file system
    Volume name "/"
    UUID C7720F48-FFE9-448D-A0D8-3979F7C1C43F (DCE, v4)
    Last mounted at "/"
    Volume size 20 GiB (21474836480 bytes, 5242880 blocks of 4 KiB)
Partition 2: 1.799 TiB (1978380845056 bytes, 3864025088 sectors from 41947136)
  Type Unknown (GUID AF3DC60F-8384-7247-8E79-3D69D8477DE4)
  Partition Name "primary"
  Partition GUID CC780237-70A9-7F4C-8A53-8FE4BD61AAD3
  Ext4 file system
    Volume name "/home"
    UUID CE9D1C27-DF28-4254-81C8-EBA809054F2E (DCE, v4)
    Last mounted at "/boot/test"
    Volume size 1.799 TiB (1978380845056 bytes, 483003136 blocks of 4 KiB)
Partition 3: 513 MiB (537919488 bytes, 1050624 sectors from 3905972224)
  Type Linux Swap (GUID 6DFD5706-ABA4-C443-84E5-0933C84B4F4F)
  Partition Name "primary"
  Partition GUID 42B159EC-CC78-904F-879F-78755378F1AE
  Linux swap, version 2, subversion 1, 4 KiB pages, little-endian
    Swap size 513.0 MiB (537911296 bytes, 131326 pages of 4 KiB)
Partition 4: 0.981 MiB (1028608 bytes, 2009 sectors from 40)
  Type Unknown (GUID 48616821-4964-6F6E-744E-656564454649)
  Partition Name "primary"
  Partition GUID CC85B2BF-715F-9B42-9D96-A3E1BECAC0FC
Partition 5: unused
Grub est dans /dev/sda (sur ma partition avec le systeme debian (sda1)

Code:
menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64' --class debian --class gnu-linux --class gnu --class os {
        load_video
        insmod gzio
        insmod ext2
        set root='(/dev/sda1)'
        search --no-floppy --fs-uuid --set=root c7720f48-ffe9-448d-a0d8-3979f7c1c43f
        echo    'Loading Linux 3.2.0-4-amd64 ...'
        linux   /boot/vmlinuz-3.2.0-4-amd64 root=/dev/sda1 ro  quiet acpi=off
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-3.2.0-4-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
        load_video
        insmod gzio
        insmod ext2
        set root='(/dev/sda1)'
        search --no-floppy --fs-uuid --set=root c7720f48-ffe9-448d-a0d8-3979f7c1c43f
        echo    'Loading Linux 3.2.0-4-amd64 ...'
        linux   /boot/vmlinuz-3.2.0-4-amd64 root=/dev/sda1 ro single
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-3.2.0-4-amd64
}
fdisk -l
Code:
Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: FB4C6CFD-0FB0-44F2-9C4E-5EE1FB25B349

Device          Start        End    Sectors    Size Type
/dev/sda1        4096   41947135   41943040     20G Linux filesystem
/dev/sda2    41947136 3905972223 3864025088    1.8T Linux filesystem
/dev/sda3  3905972224 3907022847    1050624    513M Linux swap
/dev/sda4          40       2048       2009 1004.5K BIOS boot