ubuntu – 在linux上扩展分区gparted但在vm中没有更多空间

前端之家收集整理的这篇文章主要介绍了ubuntu – 在linux上扩展分区gparted但在vm中没有更多空间前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我有一个运行构建服务器的 Linux的vm测试安装.不幸的是,我只是在添加磁盘时按下了ok,最后得到了一个8GB的驱动器.当然,在测试中,构建正在消耗越来越多的空间.

vm驱动器调整为21gb并使用gparted我扩展了驱动器分区并且一切正常但是当我回到控制台并且df时仍然只有8gb可用.

我怎么能声称我添加的其他13gb?

  1. fdisk -l
  2.  
  3. Disk /dev/sda: 21.0 GB,20971520000 bytes
  4. 255 heads,63 sectors/track,2549 cylinders,total 40960000 sectors
  5. Units = sectors of 1 * 512 = 512 bytes
  6. Sector size (logical/physical): 512 bytes / 512 bytes
  7. I/O size (minimum/optimal): 512 bytes / 512 bytes
  8. Disk identifier: 0x0006d284
  9.  
  10. Device Boot Start End Blocks Id System
  11. /dev/sda1 * 2048 499711 248832 83 Linux
  12. /dev/sda2 501758 40959999 20229121 5 Extended
  13. /dev/sda5 501760 40959999 20229120 8e Linux LVM
  14.  
  15. vgdisplay
  16.  
  17. --- Volume group ---
  18. VG Name ct
  19. System ID
  20. Format lvm2
  21. Metadata Areas 1
  22. Metadata Sequence No 4
  23. VG Access read/write
  24. VG Status resizable
  25. MAX LV 0
  26. Cur LV 2
  27. Open LV 2
  28. Max PV 0
  29. Cur PV 1
  30. Act PV 1
  31. VG Size 19.29 GiB
  32. PE Size 4.00 MiB
  33. Total PE 4938
  34. Alloc PE / Size 1977 / 7.72 GiB
  35. Free PE / Size 2961 / 11.57 GiB
  36. VG UUID MwiMAz-52e1-iGVf-eL4f-P5lq-FvRA-L73Sl3
  37.  
  38. lvdisplay
  39.  
  40. --- Logical volume ---
  41. LV Name /dev/ct/root
  42. VG Name ct
  43. LV UUID Rfk9fh-kqdM-q7t5-ml6i-EjE8-nMtU-usBF0m
  44. LV Write Access read/write
  45. LV Status available
  46. # open 1
  47. LV Size 5.73 GiB
  48. Current LE 1466
  49. Segments 1
  50. Allocation inherit
  51. Read ahead sectors auto
  52. - currently set to 256
  53. Block device 252:0
  54.  
  55. --- Logical volume ---
  56. LV Name /dev/ct/swap_1
  57. VG Name ct
  58. LV UUID BLFaa6-1f5T-4MM0-5goV-1aur-nzl9-sNLXIs
  59. LV Write Access read/write
  60. LV Status available
  61. # open 2
  62. LV Size 2.00 GiB
  63. Current LE 511
  64. Segments 1
  65. Allocation inherit
  66. Read ahead sectors auto
  67. - currently set to 256
  68. Block device 252:1
您调整分区大小,现在您必须调整lvm和文件系统的大小…您可以使用pvextend和resize2fs读取手册做备份使用时考虑到…

猜你在找的Ubuntu相关文章