Showing posts with label linux virtual machine estensione spazio disco. Show all posts
Showing posts with label linux virtual machine estensione spazio disco. Show all posts

Wednesday, October 21, 2015

Centos 7 disco full estendere spazio

Centos 7 filesystem xfs
Estensione dello spazio aggiungendo nuovo disco
Aggregazione nuovo disco nel volumegroup esistente


## Add phisical disk
In this case appears as /dev/sdb

### Modify disk
fdisk -l
fdisk /dev/sdb
m
n (create new partition)
p (primary)
1
enter (default)
enter (deafult)
t (select partition type)
8e (Linux LVM type)
w (save change to disk)

## Create Partition
pvcreate /dev/sdb1  (create patition)
df -h

## Extend Volume group
vgdisplay
vgextend centos /dev/sdb1
vgdisplay
df -Pk
pvs
lvextend -L +15G /dev/mapper/centos-root
df -Pk

## Extend VolumeGroup type xfs
lvs
xfs_growfs /
df -Pk
df -Th
lvs