0 votes

Échec de la vérification de Time Machine Sparse Bundle après la reconstruction du catalogue

Après avoir lu la page de manuel fsck_hfs, je ressens le besoin de reconstruire les catalogues. Cependant, lorsque je fais une réparation avant la reconstruction, elle a réussi, mais a ensuite imprimé beaucoup d'erreurs pendant la construction, puis aucune à nouveau pendant une vérification après la reconstruction. Voici un résultat de la reconstruction d'un disque local (Seagate Backup 5T)

Last login: Thu Aug 15 17:23:10 on ttys010
Welcome to fish, the friendly interactive shell
root@Joys-MBP /p/v/root# fsck_hfs -c 4294967296 -d -D 
fsck_hfs: option requires an argument -- D
usage: fsck_hfs [-b [size] B [path] c [size] e [mode] ESdfglx m [mode] npqruy] special-device
  b size = size of physical blocks (in bytes) for -B option
  B path = file containing physical block numbers to map to paths
  c size = cache size (ex. 512m, 1g)
  e mode = emulate 'embedded' or 'desktop'
  E = exit on first major error
  d = output debugging info
  f = force fsck even if clean (preen only) 
  g = GUI output mode
  x = XML output mode
  l = live fsck (lock down and test-only)
  m arg = octal mode used when creating lost+found directory 
  n = assume a no response 
  p = just fix normal inconsistencies 
  q = quick check returns clean, dirty, or failure 
  r = rebuild catalog btree 
  S = Scan disk for bad blocks
  u = usage 
  y = assume a yes response 
root@Joys-MBP /p/v/root# fsck_hfs -c 4294967296 -d -D /dev/disk2
fsck_hfs: invalid debug development argument.  Assuming zero
fsck_hfs: missing special-device
usage: fsck_hfs [-b [size] B [path] c [size] e [mode] ESdfglx m [mode] npqruy] special-device
  b size = size of physical blocks (in bytes) for -B option
  B path = file containing physical block numbers to map to paths
  c size = cache size (ex. 512m, 1g)
  e mode = emulate 'embedded' or 'desktop'
  E = exit on first major error
  d = output debugging info
  f = force fsck even if clean (preen only) 
  g = GUI output mode
  x = XML output mode
  l = live fsck (lock down and test-only)
  m arg = octal mode used when creating lost+found directory 
  n = assume a no response 
  p = just fix normal inconsistencies 
  q = quick check returns clean, dirty, or failure 
  r = rebuild catalog btree 
  S = Scan disk for bad blocks
  u = usage 
  y = assume a yes response 
root@Joys-MBP /p/v/root# fsck_hfs -c 4294967296 -d -D /dev/disk2s2
fsck_hfs: invalid debug development argument.  Assuming zero
fsck_hfs: missing special-device
usage: fsck_hfs [-b [size] B [path] c [size] e [mode] ESdfglx m [mode] npqruy] special-device
  b size = size of physical blocks (in bytes) for -B option
  B path = file containing physical block numbers to map to paths
  c size = cache size (ex. 512m, 1g)
  e mode = emulate 'embedded' or 'desktop'
  E = exit on first major error
  d = output debugging info
  f = force fsck even if clean (preen only) 
  g = GUI output mode
  x = XML output mode
  l = live fsck (lock down and test-only)
  m arg = octal mode used when creating lost+found directory 
  n = assume a no response 
  p = just fix normal inconsistencies 
  q = quick check returns clean, dirty, or failure 
  r = rebuild catalog btree 
  S = Scan disk for bad blocks
  u = usage 
  y = assume a yes response 
root@Joys-MBP /p/v/root# fsck_hfs -c 4294967296 -d -D 0x0001 /dev/disk2s2
journal_replay(/dev/disk2s2) returned 0
** /dev/rdisk2s2
    Cache size should be greater than 32M and less than 17592186044415M
    Using cacheBlockSize=32K cacheTotalBlock=98304 cacheSize=3145728K.
   Executing fsck_hfs (version hfs-407.50.6).
** Checking Journaled HFS Plus volume.
fsck_hfs: Volume is journaled.  No checking performed.
fsck_hfs: Use the -f option to force checking.
    CheckHFS returned 0, fsmodified = 0
root@Joys-MBP /p/v/root# fsck_hfs -c 4294967296 -d -D 0x0002 /dev/disk2s2
journal_replay(/dev/disk2s2) returned 0
** /dev/rdisk2s2
    Cache size should be greater than 32M and less than 17592186044415M
    Using cacheBlockSize=32K cacheTotalBlock=98304 cacheSize=3145728K.
   Executing fsck_hfs (version hfs-407.50.6).
** Checking Journaled HFS Plus volume.
fsck_hfs: Volume is journaled.  No checking performed.
fsck_hfs: Use the -f option to force checking.
    CheckHFS returned 0, fsmodified = 0
root@Joys-MBP /p/v/root# fsck_hfs -c 4294967296 -d -D 0x0002 0x0001 /dev/disk2s2

0x0001: No such file or directory
Can't stat 0x0001
Can't stat 0x0001: No such file or directory
journal_replay(/dev/disk2s2) returned 0
** /dev/rdisk2s2
    Cache size should be greater than 32M and less than 17592186044415M
    Using cacheBlockSize=32K cacheTotalBlock=98304 cacheSize=3145728K.
   Executing fsck_hfs (version hfs-407.50.6).
** Checking Journaled HFS Plus volume.
fsck_hfs: Volume is journaled.  No checking performed.
fsck_hfs: Use the -f option to force checking.
    CheckHFS returned 0, fsmodified = 0
root@Joys-MBP /p/v/root# fsck_hfs -c 17592186044415M -d -D 0x0002 0x0001 0x0010 0x0020 /dev/disk2s2
0x0001: No such file or directory
Can't stat 0x0001
Can't stat 0x0001: No such file or directory
0x0010: No such file or directory
Can't stat 0x0010
Can't stat 0x0010: No such file or directory
0x0020: No such file or directory
Can't stat 0x0020
Can't stat 0x0020: No such file or directory
journal_replay(/dev/disk2s2) returned 0
** /dev/rdisk2s2
    Cache size should be greater than 32M and less than 17592186044415M
    Using cacheBlockSize=32K cacheTotalBlock=98304 cacheSize=3145728K.
   Executing fsck_hfs (version hfs-407.50.6).
** Checking Journaled HFS Plus volume.
fsck_hfs: Volume is journaled.  No checking performed.
fsck_hfs: Use the -f option to force checking.
    CheckHFS returned 0, fsmodified = 0
root@Joys-MBP /p/v/root# fsck_hfs -c 17592186044415M -d -D 0x0002 -D 0x0001 -D 0x0010 -D 0x0020 /dev/disk2s2
journal_replay(/dev/disk2s2) returned 0
** /dev/rdisk2s2
    Cache size should be greater than 32M and less than 17592186044415M
    Using cacheBlockSize=32K cacheTotalBlock=98304 cacheSize=3145728K.
   Executing fsck_hfs (version hfs-407.50.6).
** Checking Journaled HFS Plus volume.
fsck_hfs: Volume is journaled.  No checking performed.
fsck_hfs: Use the -f option to force checking.
    CheckHFS returned 0, fsmodified = 0
root@Joys-MBP /p/v/root# fsck_hfs -c 1759218604441M -d -D 0x0002 -D 0x0001 -D 0x0010 -D 0x0020 /dev/disk2s2
journal_replay(/dev/disk2s2) returned 0
** /dev/rdisk2s2
    Cache size should be greater than 32M and less than 17592186044415M
    Using cacheBlockSize=32K cacheTotalBlock=98304 cacheSize=3145728K.
   Executing fsck_hfs (version hfs-407.50.6).
** Checking Journaled HFS Plus volume.
fsck_hfs: Volume is journaled.  No checking performed.
fsck_hfs: Use the -f option to force checking.
    CheckHFS returned 0, fsmodified = 0
root@Joys-MBP /p/v/root# fsck_hfs -c 4g -d -D 0x0002 -D 0x0001 -D 0x0010 -D 0x0020 /dev/disk2s2
journal_replay(/dev/disk2s2) returned 0
** /dev/rdisk2s2
    Cache size should be greater than 32M and less than 17592186044415M
    Using cacheBlockSize=32K cacheTotalBlock=98304 cacheSize=3145728K.
   Executing fsck_hfs (version hfs-407.50.6).
** Checking Journaled HFS Plus volume.
fsck_hfs: Volume is journaled.  No checking performed.
fsck_hfs: Use the -f option to force checking.
    CheckHFS returned 0, fsmodified = 0
root@Joys-MBP /p/v/root# fsck_hfs -c 4g -d -D 0x0002 -D 0x0001 -D 0x0010 -D 0x0020 -f /dev/disk2s2
journal_replay(/dev/disk2s2) returned 0
** /dev/rdisk2s2
    Cache size should be greater than 32M and less than 17592186044415M
    Using cacheBlockSize=32K cacheTotalBlock=98304 cacheSize=3145728K.
   Executing fsck_hfs (version hfs-407.50.6).
** Checking Journaled HFS Plus volume.
   The volume name is Seagate 5T (Joy Jin)
** Checking extents overflow file.
** Checking catalog file.
** Checking multi-linked files.
** Checking catalog hierarchy.
** Checking extended attributes file.
** Checking volume bitmap.
** Checking volume information.
** The volume Seagate 5T (Joy Jin) appears to be OK.
    CheckHFS returned 0, fsmodified = 0
root@Joys-MBP /p/v/root# fsck_hfs -c 4g -d -D 0x0002 -D 0x0001 -D 0x0010 -D 0x0020 -f -R ace /dev/disk2s2
journal_replay(/dev/disk2s2) returned 0
** /dev/rdisk2s2
    Cache size should be greater than 32M and less than 17592186044415M
    Using cacheBlockSize=32K cacheTotalBlock=98304 cacheSize=3145728K.
   Executing fsck_hfs (version hfs-407.50.6).
** Checking Journaled HFS Plus volume.
   The volume name is Seagate 5T (Joy Jin)
** Checking extents overflow file.
** Checking catalog file.
** Rebuilding extents overflow B-tree.
hfs_UNswap_BTNode: invalid node height (1)
** Rebuilding catalog B-tree.
hfs_UNswap_BTNode: invalid node height (1)
** Rebuilding extended attributes B-tree.
hfs_UNswap_BTNode: invalid node height (1)
** Rechecking volume.
** Checking Journaled HFS Plus volume.
   The volume name is Seagate 5T (Joy Jin)
** Checking extents overflow file.
** Checking catalog file.
** Checking multi-linked files.
** Checking catalog hierarchy.
** Checking extended attributes file.
   Unused node is not erased (node = 6360)
   (message repeat from 6360 to 49663) --> I exceeded character limit (1916033/30000) so cut this part off
   Unused node is not erased (node = 49663)
** Checking volume bitmap.
** Checking volume information.
   Invalid volume file count
   (It should be 1143585 instead of 872171)
   Invalid volume directory count
   (It should be 201272 instead of 168319)
   Invalid volume free block count
   (It should be 310948865 instead of 350464208)
    invalid VHB nextCatalogID 
   Volume header needs minor repair
(2, 0)
   Verify Status: VIStat = 0x8000, ABTStat = 0x0004 EBTStat = 0x0000
                  CBTStat = 0x0000 CatStat = 0x00000000
** Repairing volume.
** Rechecking volume.
** Checking Journaled HFS Plus volume.
   The volume name is Seagate 5T (Joy Jin)
** Checking extents overflow file.
** Checking catalog file.
** Checking multi-linked files.
** Checking catalog hierarchy.
** Checking extended attributes file.
** Checking volume bitmap.
** Checking volume information.
** The volume Seagate 5T (Joy Jin) was repaired successfully.
    CheckHFS returned 0, fsmodified = 1
root@Joys-MBP /p/v/root# 

Et puis, j'ai décidé de faire cela à mon sparsebundle Time Machine sur Synology NAS (réseau local 1gbps). Cela a échoué. Que dois-je faire maintenant ?

Last login: Fri Aug 16 14:40:08 on ttys010
Welcome to fish, the friendly interactive shell
root@Joys-MacBook-Pro /p/v/root# fsck_hfs -df /dev/disk2s2
^C                                                                             root@Joys-MacBook-Pro /p/v/root# 
date ; fsck_hfs -df /dev/disk2s2 ; date ; fsck_hfs -c 4g -d -D 0x0002 -D 0x0001 -D 0x0010 -D 0x0020 -f -R ace /dev/disk2s2 ; date
2019 816  144044 CST
journal_replay(/dev/disk2s2) returned 0
** /dev/rdisk2s2
    Using cacheBlockSize=32K cacheTotalBlock=65536 cacheSize=2097152K.
   Executing fsck_hfs (version hfs-407.50.6).
** Checking Journaled HFS Plus volume.
** Detected a case-sensitive volume.
   The volume name is 
** Checking extents overflow file.
** Checking catalog file.
** Checking multi-linked files.
** Checking catalog hierarchy.
** Checking extended attributes file.
** Checking multi-linked directories.
    privdir_valence=17552, calc_dirlinks=104189, calc_dirinode=17552
** Checking volume bitmap.
** Checking volume information.
** The volume  appears to be OK.
    CheckHFS returned 0, fsmodified = 0
2019 816  154422 CST
journal_replay(/dev/disk2s2) returned 0
** /dev/rdisk2s2
    Cache size should be greater than 32M and less than 17592186044415M
    Using cacheBlockSize=32K cacheTotalBlock=98304 cacheSize=3145728K.
   Executing fsck_hfs (version hfs-407.50.6).
** Checking Journaled HFS Plus volume.
** Detected a case-sensitive volume.
   The volume name is 
** Checking extents overflow file.
** Checking catalog file.
** Rebuilding extents overflow B-tree.
hfs_UNswap_BTNode: invalid node height (1)
** Rebuilding catalog B-tree.
hfs_UNswap_BTNode: invalid node height (1)
** Rebuilding extended attributes B-tree.
hfs_UNswap_BTNode: invalid node height (1)
** Rechecking volume.
** Checking Journaled HFS Plus volume.
   Invalid extent entry
(4, 0)
    CheckExtRecord: id=4 1:(16384,0), (blockCount == 0)
** The volume   could not be verified completely.
    volume check failed with error 7 
    volume type is pure HFS+ 
    primary MDB is at block 0 0x00 
    alternate MDB is at block 0 0x00 
    primary VHB is at block 2 0x02 
    alternate VHB is at block 22476447294 0x53bb35e3e 
    sector size = 512 0x200 
    VolumeObject flags = 0x07 
    total sectors for volume = 22476447296 0x53bb35e40 
    total sectors for embedded volume = 0 0x00 
    CheckHFS returned -1317, fsmodified = 1
2019 816  161203 CST
root@Joys-MacBook-Pro /p/v/root# fsck_hfs -df /dev/disk2s2
/dev/disk2s2: No such file or directory
Can't stat /dev/disk2s2
Can't stat /dev/disk2s2: No such file or directory
root@Joys-MacBook-Pro /p/v/root# fsck_hfs -df /dev/disk2s2
Unable to open block device /dev/disk2s2: Resource busyjournal_replay(/dev/disk2s2) returned 16
** /dev/rdisk2s2
    Using cacheBlockSize=32K cacheTotalBlock=65536 cacheSize=2097152K.
   Executing fsck_hfs (version hfs-407.50.6).
** Checking Journaled HFS Plus volume.
   Invalid extent entry
(4, 0)
    CheckExtRecord: id=4 1:(16384,0), (blockCount == 0)
** The volume   could not be verified completely.
    volume check failed with error 7 
    volume type is pure HFS+ 
    primary MDB is at block 0 0x00 
    alternate MDB is at block 0 0x00 
    primary VHB is at block 2 0x02 
    alternate VHB is at block 22476447294 0x53bb35e3e 
    sector size = 512 0x200 
    VolumeObject flags = 0x07 
    total sectors for volume = 22476447296 0x53bb35e40 
    total sectors for embedded volume = 0 0x00 
    CheckHFS returned -1317, fsmodified = 0
root@Joys-MacBook-Pro /p/v/root# fsck_hfs -df /dev/disk2s2
Unable to open block device /dev/disk2s2: Resource busyjournal_replay(/dev/disk2s2) returned 16
** /dev/rdisk2s2
    Using cacheBlockSize=32K cacheTotalBlock=65536 cacheSize=2097152K.
   Executing fsck_hfs (version hfs-407.50.6).
** Checking Journaled HFS Plus volume.
   Invalid extent entry
(4, 0)
    CheckExtRecord: id=4 1:(16384,0), (blockCount == 0)
** The volume   could not be verified completely.
    volume check failed with error 7 
    volume type is pure HFS+ 
    primary MDB is at block 0 0x00 
    alternate MDB is at block 0 0x00 
    primary VHB is at block 2 0x02 
    alternate VHB is at block 22476447294 0x53bb35e3e 
    sector size = 512 0x200 
    VolumeObject flags = 0x07 
    total sectors for volume = 22476447296 0x53bb35e40 
    total sectors for embedded volume = 0 0x00 
    CheckHFS returned -1317, fsmodified = 0
root@Joys-MacBook-Pro /p/v/root#

2voto

Joy Jin Points 1621

En fait, j'ai récupéré l'historique des versions de mon NAS, mais cela a pris beaucoup de temps (et a échoué plusieurs fois). Puis j'ai commencé à créer des instantanés régulièrement, et je peux revenir à un état antérieur chaque fois que je me trompe.

Autre chose à noter : avant de reconstruire les catalogues, exécutez d'abord un fsck normal. En général, si je fais cela, la reconstruction est réussie, sinon elle échoue.

Si vous ne disposez d'aucune sauvegarde, vous pouvez préserver votre historique en créant un nouveau paquetage épars, en copiant le dossier backups.db à l'aide du Finder (en montant d'abord le paquetage épars corrompu en lecture seule), et en effectuant une sauvegarde sur ce nouveau paquetage épars. Notez que vous devrez peut-être utiliser tmutil inheritbackup et/ou tmutil associatedisk pour préserver l'histoire.

LesApples.com

LesApples est une communauté de Apple où vous pouvez résoudre vos problèmes et vos doutes. Vous pouvez consulter les questions des autres utilisateurs d'appareils Apple, poser vos propres questions ou résoudre celles des autres.

Powered by:

X