Tengo un problema con un volumen APFS que reside dentro de un SparseBundle.
Traté de aumentar su tamaño (similar a esto: ¿Es posible aumentar el tamaño de un volumen APFS? ), pero no lo consiguió.
Desgraciadamente, no tengo ni idea de qué más hacer (salvo recrear todo, copiar todos los datos y ponerlo en el lugar del existente).
añadido (2020-12-08):
Me he dado cuenta de que durante el último paso de mis acciones se ha producido un error y supongo que mi problema existe a causa del error.
El error se produjo durante el "Incremento del contenedor APFS" diskutil apfs resizeContainer disk2s2 0
error: (oid 0xa67b) apfs_root: btn: invalid o_cksum (0x5824c5de98a6fb78)
fsroot tree is invalid
The volume /dev/disk2s2 could not be verified completely
Configurar
La configuración con la que tengo un problema es así, sin embargo creo que la parte relevante está dentro de la parte APFS:
- En Mac OS (ahora Big Sur)
- Compartir la red SMB, normalmente montada en
/Volumes/Backup/
- En
/Volumes/Backup/
hay un SparseBundle (/Volumes/Backup/iTunes_iOS_Backup/Backup_sparse_bundle/itunes_backup.sparsebundle
) - Dentro del SparseBundle hay un contenedor APFS con un volumen APFS,
el volumen se monta en/Volumes/itunes_backup/
- En
~/Library/Application\ Support/MobileSync/
Tengo un enlace al volumen montado
lrwxr-xr-x 1 user staff 29 Oct 14 2017 Backup -> /Volumes/itunes_backup/Backup
Lo que quería hacer era aumentar el tamaño del volumen APFS que reside dentro del SparseBundle.
Pasos que he dado para aumentar el volumen de APFS
-
Aumenta el tamaño del SparseBundle con este comando:
hdiutil resize -size 1500g /Volumes/Backup/iTunes_iOS_Backup/Backup_sparse_bundle/itunes_backup.sparsebundle
Por lo que pude ver, no se lanzó ningún error. -
Para comprobarlo, ejecuta
hdiutil imageinfo /Volumes/Backup/iTunes_iOS_Backup/Backup_sparse_bundle/itunes_backup.sparsebundle
Class Name: CSparseBundleDiskImage Size Information: Total Bytes: 1610822492160 Compressed Ratio: 1 Sector Count: 3146137680 Total Non-Empty Bytes: 0 Compressed Bytes: 1610822492160 Total Empty Bytes: 1610822492160 Checksum Type: none Format: UDSB partitions: partition-scheme: GUID block-size: 512 partitions: 0: partition-name: Protective Master Boot Record partition-start: 0 partition-synthesized: true partition-length: 1 partition-hint: MBR 1: partition-name: GPT Header partition-start: 1 partition-synthesized: true partition-length: 1 partition-hint: Primary GPT Header 2: partition-name: GPT Partition Data partition-start: 2 partition-synthesized: true partition-length: 32 partition-hint: Primary GPT Table 3: partition-name: partition-start: 34 partition-synthesized: true partition-length: 6 partition-hint: Apple_Free 4: partition-UUID: 131BB16B-9C17-4ADE-BA9C-19A43E3F42F3 partition-name: EFI System Partition partition-hint-UUID: C12A7328-F81F-11D2-BA4B-00A0C93EC93B partition-start: 40 partition-number: 1 partition-length: 409600 partition-hint: C12A7328-F81F-11D2-BA4B-00A0C93EC93B partition-filesystems: FAT32: EFI 5: partition-UUID: D528609D-5A45-4146-92A8-871B833293BD partition-name: disk image partition-hint-UUID: 7C3457EF-0000-11AA-AA11-00306543ECAC partition-start: 409640 partition-number: 2 partition-length: 3145728000 partition-hint: Apple_APFS partition-filesystems: APFS: Untitled 6: partition-name: partition-start: 3146137640 partition-synthesized: true partition-length: 7 partition-hint: Apple_Free 7: partition-name: GPT Partition Data partition-start: 3146137647 partition-synthesized: true partition-length: 32 partition-hint: Backup GPT Table 8: partition-name: GPT Header partition-start: 3146137679 partition-synthesized: true partition-length: 1 partition-hint: Backup GPT Header burnable: false Format Description: sparse Checksum Value: Properties: Encrypted: false Kernel Compatible: false Checksummed: false Software License Agreement: false Partitioned: false Compressed: no Segments: 0: /Volumes/Backup/iTunes_iOS_Backup/Backup_sparse_bundle/itunes_backup.sparsebundle Backing Store Information: URL: file:///Volumes/Backup/iTunes_iOS_Backup/Backup_sparse_bundle/itunes_backup.sparsebundle/ Name: itunes_backup.sparsebundle Class Name: CBundleBackingStore Resize limits (per hdiutil resize -limits): min cur max 1679163392 3145728000 18014398509072303
-
Montar SparseBundle
hdiutil attach /Volumes/Backup/iTunes_iOS_Backup/Backup_sparse_bundle/itunes_backup.sparsebundle
/dev/disk2 GUID_partition_scheme /dev/disk2s1 EFI /dev/disk2s2 Apple_APFS /dev/disk3 EF57347C-0000-11AA-AA11-0030654 /dev/disk3s1 41504653-0000-11AA-AA11-0030654 /Volumes/itunes_backup
-
Aumentar el contenedor APFS:
diskutil apfs resizeContainer disk2s2 0
añadido: Me di cuenta de que durante este paso se produjo un errorStarted APFS operation Aligning grow delta to 510.612.738.048 bytes and targeting a new physical store size of 1.610.612.736.000 bytes Determined the maximum size for the targeted physical store of this APFS Container to be 1.610.611.707.904 bytes Resizing APFS Container designated by APFS Container Reference disk3 The specific APFS Physical Store being resized is disk2s2 Verifying storage system Performing fsck_apfs -n -x /dev/disk2s2 Checking the container superblock Checking the space manager Checking the space manager free queue trees Checking the object map Checking volume Checking the APFS volume superblock The volume itunes_backup was formatted by newfs_apfs (748.1.47) and last modified by apfs_kext (1677.50.1) Checking the object map Checking the snapshot metadata tree Checking the snapshot metadata Checking the extent ref tree Checking the fsroot tree error: (oid 0xa67b) apfs_root: btn: invalid o_cksum (0x5824c5de98a6fb78) fsroot tree is invalid The volume /dev/disk2s2 could not be verified completely Storage system check exit code is 0 Growing APFS Physical Store disk2s2 from 1.099.999.997.952 to 1.610.612.736.000 bytes Modifying partition map Growing APFS data structures Finished APFS operation
-
diskutil apfs list
APFS Containers (2 found) | +-- Container disk1 | +-< Physical Store disk0s2 | +-> Volume disk1s1 | +-> Volume disk1s2 | +-> Volume disk1s3 | +-> Volume disk1s4 | +-> Volume disk1s5 | +-- Container disk3 E79238FB-8BB4-44AB-AFD9-4990B9B70F23 ==================================================== APFS Container Reference: disk3 Size (Capacity Ceiling): 1610612736000 B (1.6 TB) Capacity In Use By Volumes: 845079302144 B (845.1 GB) (52.5% used) Capacity Not Allocated: 765533433856 B (765.5 GB) (47.5% free) | +-< Physical Store disk2s2 D528609D-5A45-4146-92A8-871B833293BD | ----------------------------------------------------------- | APFS Physical Store Disk: disk2s2 | Size: 1610612736000 B (1.6 TB) | +-> Volume disk3s1 424805EF-477B-4C7B-9688-9A46612478D9 --------------------------------------------------- APFS Volume Disk (Role): disk3s1 (No specific role) Name: itunes_backup (Case-sensitive) Mount Point: /Volumes/itunes_backup Capacity Consumed: 844815552512 B (844.8 GB) Sealed: No FileVault: No
El problema
El problema que tengo es que el volumen parece no ampliarse o al menos el espacio no es utilizable. Cuando intenté copiar datos en la unidad, falló por falta de espacio.
Cuando compruebo con df -h /Volumes/itunes_backup/
Ya veo
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk3s1 1.5Ti 787Gi 285Gi 74% 647844 15727992156 0% /Volumes/itunes_backup
Cualquier idea de cómo puedo proceder para aumentar también el volumen de APFS sería muy apreciada