由于开发测试机器dev-vhost017根分区规划不足只有10G,需要扩容。(基于LVM)
先关闭dev-vhost017,然后在vSphere Client 将根分区硬盘10G 调整到50G
开启虚拟机
原始/ 大小 10G
复制代码代码如下:
[root@dev-vhost017 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_centos6-lv_root
8.3G 4.0G 3.9G 51% /
tmpfs 939M 12K 939M 1% /dev/shm
/dev/sda1 477M 57M 396M 13% /boot
查看磁盘sda已扩展到50G
复制代码代码如下:
[root@dev-vhost017 ~]# fdisk /dev/sda
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): p
Disk /dev/sda: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0007ef5b
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 1306 9972736 8e Linux LVM
Disk /dev/mapper/vg_centos6-lv_root: 9135 MB, 9135194112 bytes
255 heads, 63 sectors/track, 1110 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_centos6-lv_swap: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
查看lvm状态
复制代码代码如下:
[root@dev-vhost017 ~]# pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 vg_centos6 lvm2 a-- 9.51g 0
复制代码代码如下:
[root@dev-vhost017 ~]# vgs
VG #PV #LV #SN Attr VSize VFree
vg_centos6 1 2 0 wz--n- 9.51g 0
复制代码代码如下:
[root@dev-vhost017 ~]# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
lv_root vg_centos6 -wi-ao---- 8.51g
lv_swap vg_centos6 -wi-ao---- 1.00g
分区/dev/sda3
复制代码代码如下:
[root@dev-vhost017 ~]# fdisk /dev/sda
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): p
Disk /dev/sda: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0007ef5b
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 1306 9972736 8e Linux LVM
/dev/sda3 1306 6527 41942367+ 83 Linux
复制代码代码如下:
[root@dev-vhost017 ~]# partprobe
重启虚拟机 格式化/dev/sda3
复制代码代码如下:
[root@dev-vhost017 ~]# mkfs.ext4 /dev/sda3
lvm 扩容
复制代码代码如下:
[root@dev-vhost017 ~]# pvcreate /dev/sda3
Physical volume "/dev/sda3" successfully created
复制代码代码如下:
[root@dev-vhost017 ~]# pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 vg_centos6 lvm2 a-- 9.51g 0
/dev/sda3 lvm2 --- 40.00g 40.00g
复制代码代码如下:
[root@dev-vhost017 ~]# vgextend /dev/mapper/vg_centos6 /dev/sda3 (注意组名)
Volume group "vg_centos6" successfully extended
复制代码代码如下:
[root@dev-vhost017 ~]# lvextend -L 39.9G /dev/vg_centos6/lv_root /dev/sda3
Rounding size to boundary between physical extents: 39.90 GiB
Size of logical volume vg_centos6/lv_root changed from 8.51 GiB (2178 extents) to 39.90 GiB (10215 extents).
Logical volume lv_root successfully resized
复制代码代码如下:
[root@dev-vhost017 ~]# resize2fs /dev/vg_centos6/lv_root
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/vg_centos6/lv_root is mounted on /; on-line resizing required
old desc_blocks = 1, new_desc_blocks = 3
Performing an on-line resize of /dev/vg_centos6/lv_root to 10460160 (4k) blocks.
The filesystem on /dev/vg_centos6/lv_root is now 10460160 blocks long.
复制代码代码如下:
[root@dev-vhost017 ~]# pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 vg_centos6 lvm2 a-- 9.51g 0
/dev/sda3 vg_centos6 lvm2 a-- 40.00g 8.60g
复制代码代码如下:
[root@dev-vhost017 ~]# vgs
VG #PV #LV #SN Attr VSize VFree
vg_centos6 2 2 0 wz--n- 49.50g 8.60g
复制代码代码如下:
[root@dev-vhost017 ~]# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
lv_root vg_centos6 -wi-ao---- 39.90g
lv_swap vg_centos6 -wi-ao---- 1.00g
复制代码代码如下:
[root@dev-vhost017 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_centos6-lv_root
40G 4.0G 34G 11% /
tmpfs 939M 12K 939M 1% /dev/shm
/dev/sda1 477M 57M 396M 13% /boot
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
RTX 5090要首发 性能要翻倍!三星展示GDDR7显存
三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。
首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。
据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。
更新日志
- 凤飞飞《我们的主题曲》飞跃制作[正版原抓WAV+CUE]
- 刘嘉亮《亮情歌2》[WAV+CUE][1G]
- 红馆40·谭咏麟《歌者恋歌浓情30年演唱会》3CD[低速原抓WAV+CUE][1.8G]
- 刘纬武《睡眠宝宝竖琴童谣 吉卜力工作室 白噪音安抚》[320K/MP3][193.25MB]
- 【轻音乐】曼托凡尼乐团《精选辑》2CD.1998[FLAC+CUE整轨]
- 邝美云《心中有爱》1989年香港DMIJP版1MTO东芝首版[WAV+CUE]
- 群星《情叹-发烧女声DSD》天籁女声发烧碟[WAV+CUE]
- 刘纬武《睡眠宝宝竖琴童谣 吉卜力工作室 白噪音安抚》[FLAC/分轨][748.03MB]
- 理想混蛋《Origin Sessions》[320K/MP3][37.47MB]
- 公馆青少年《我其实一点都不酷》[320K/MP3][78.78MB]
- 群星《情叹-发烧男声DSD》最值得珍藏的完美男声[WAV+CUE]
- 群星《国韵飘香·贵妃醉酒HQCD黑胶王》2CD[WAV]
- 卫兰《DAUGHTER》【低速原抓WAV+CUE】
- 公馆青少年《我其实一点都不酷》[FLAC/分轨][398.22MB]
- ZWEI《迟暮的花 (Explicit)》[320K/MP3][57.16MB]