Linux_CentOS8_磁盘管理_磁盘大小调整_`No space left on device` (2)
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了Linux_CentOS8_磁盘管理_磁盘大小调整_`No space left on device` (2),小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2127字,纯文字阅读大概需要4分钟。
内容图文
![Linux_CentOS8_磁盘管理_磁盘大小调整_`No space left on device` (2)](/upload/InfoBanner/zyjiaocheng/926/890c8bb730e645318ac537bc71bc8b31.jpg)
Issue : CentOS8 in the VMware: No space left on device
1. Issue Description :
Initially, 20G Hard Disk(SCSI) was portioned to the CentOS8 in the virtual machine. For disk room occupied by the genome index file
, genome reference
,rawdata
and so on, and larger room would be required in the downstream analysis, so the disk resize would be rather necessary.
2. Solutions :
extend the logical volume :
NOTE : backup of the virtual machine through snapshots
or commands (e.g. cp
)
-
-
identify the device and confirm the size :
fdisk -l
: -
create a new primary partition :
-
(1) operate on the new device :
fdisk /dev/sd[a-p]
-
(2) print the partition table : press
p
-
(3) create a new primary partition: press
n
-
(4) primary type : press
p
-
(5) partition number , depending on the output of the partition table print. :
-
(6) change system’s partition ID :
t
-
(7) select the newly creation partition :
-
(8) change the Hex Code of the partition for Linux LVM : type
8e
-
(9) write the change to the partition table : press
w
-
-
-
-
reboot
the system CentOS8 -
verify the changes has been written into the partition table and the type of the new partition is
8e
:fdisk -l
-
convert the new partition to a physical volume :
pvcreate /dev/sd*
-
extend the physical volume :
- (1)
df
: show information about the file system , identify thehigh used
,low available
andMountpoint
- (2)
vgdisplay
: to check the volume group - (3) extend physical volume :
vgextend VolumeGroup /dev/sd*
- (1)
-
verify how many physical extents are available to the VolumeGroup :
vgdisplay VolumeGroup | grep "Free"
-
extend the logical volume :
lvdisplay
: to determine which logical volume to extendlvextend -L+*G /dev/VolumeGroup/LogicalVolume
: -
expand the
ext3
filesystem online , inside of logical volume :xfs_growfs dir
:dir
is the volume group mountpoint -
verify that the
dir
file system has the new space available :df -h dir
---- reference : [1.Extending a logical volume in a virtual machine running Red Hat or Cent OS ](https://kb.vmware.com/s/article/1006371?lang=en_us) 2.[CentOS Manual Partitioning](https://docs.centos.org/en-US/centos/install-guide/CustomSpoke-x86/)
-
内容总结
以上是互联网集市为您收集整理的Linux_CentOS8_磁盘管理_磁盘大小调整_`No space left on device` (2)全部内容,希望文章能够帮你解决Linux_CentOS8_磁盘管理_磁盘大小调整_`No space left on device` (2)所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。