lundi 16 février 2015

How to add free space to a Logical Volume Group? (Resizing Partitions)


I have two CoreStorage volumes on disk, one is 200GB the other is 50GB. I want to make the 1st 125GB and the second one 125GB.


Currently I have been able to use the diskutil cs resizeStack command to shrink my 200GB disk to 125GB. But am unable to expand my second CoreStorage volume to 125GB since its Logical Volume Group doesn't contain the free space I generated.



CoreStorage logical volume groups (2 found)
|
+-- Logical Volume Group 5D6504C7-6C94-498E-B50C-64E3E4950AE0
| =========================================================
| Name: Macintosh HD
| Status: Online
| Size: 125318770688 B (125.3 GB)
| Free Space: 0 B (0 B)
| |
| +-< Physical Volume 499AA4FC-31C1-47A3-8364-89A0C836125C
| | ----------------------------------------------------
| | Index: 0
| | Disk: disk0s2
| | Status: Online
| | Size: 125318770688 B (125.3 GB)
| |
| +-> Logical Volume Family 163A0B82-4315-4C68-8403-52B5A918C57C
| ----------------------------------------------------------
| Encryption Status: Unlocked
| Encryption Type: AES-XTS
| Conversion Status: Complete
| Conversion Direction: -none-
| Has Encrypted Extents: Yes
| Fully Secure: Yes
| Passphrase Required: Yes
| |
| +-> Logical Volume 264CFBDC-8103-47E0-978E-738789320980
| ---------------------------------------------------
| Disk: disk1
| Status: Online
| Size (Total): 124999999488 B (125.0 GB)
| Conversion Progress: -none-
| Revertible: Yes (unlock and decryption required)
| LV Name: Macintosh HD
| Volume Name: Macintosh HD
| Content Hint: Apple_HFS
|
+-- Logical Volume Group 4793C4C8-0F56-4673-A2B6-98B15403CD33
=========================================================
Name: Macintosh HD 2
Status: Online
Size: 55443439616 B (55.4 GB)
Free Space: 28291072 B (28.3 MB)
|
+-< Physical Volume F67F2DAA-2E8E-4AE7-A976-42230747BAB4
| ----------------------------------------------------
| Index: 0
| Disk: disk0s4
| Status: Online
| Size: 55443439616 B (55.4 GB)
|
+-> Logical Volume Family DB936707-28B4-4CE1-9B4A-292639232785
----------------------------------------------------------
Encryption Status: Unlocked
Encryption Type: AES-XTS
Conversion Status: Complete
Conversion Direction: -none-
Has Encrypted Extents: Yes
Fully Secure: Yes
Passphrase Required: Yes
|
+-> Logical Volume 976CA58C-E8FF-492A-9968-6FEF64C58A31
---------------------------------------------------
Disk: disk2
Status: Online
Size (Total): 55079600128 B (55.1 GB)
Conversion Progress: -none-
Revertible: Yes (unlock and decryption required)
LV Name: Macintosh HD 2
Volume Name: Macintosh HD 2
Content Hint: Apple_HFS


Then if we look at the df -k information:



Filesystem 1024-blocks Used Available Capacity iused ifree %iused Mounted on
/dev/disk1 122070312 101234644 20579668 84% 25372659 5144917 83% /
devfs 189 189 0 100% 656 0 100% /dev
map -hosts 0 0 0 100% 0 0 100% /net
map auto_home 0 0 0 100% 0 0 100% /home
map -fstab 0 0 0 100% 0 0 100% /Network/Servers
/dev/disk2 53788672 43664860 10123812 82% 10916213 2530953 81% /Volumes/Macintosh HD 2


If I try to resize the logicalVolume, or the Stack or the Disk they all get the same error:



~ james$ diskutil coreStorage resizeDisk F67F2DAA-2E8E-4AE7-A976-42230747BAB4 125G
Started CoreStorage operation
Error: -69771: The target disk is too small for this operation


So as far as I can figure, I need to add the space to Logical Volume Group 4793C4C8-0F56-4673-A2B6-98B15403CD33.


Any help would be greatly appreciated!





Aucun commentaire:

Enregistrer un commentaire