Senin, 23 September 2019

How to rename LVM volume group on centos 7

  Tidak ada komentar
Check the disk
[user@localhost ~]$ sudo lvs
  LV      VG     Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  home    centos  -wi-ao---- 20.00g
  root    centos  -wi-ao---- 71.00g
  swap    centos  -wi-ao---- <7.88g
  nfsdata nfsdata -wi-a-----  1.95t
[user@localhost ~]$
Rename the volume group and check the lvs
[user@localhost ~]$ sudo vgrename nfsdata data
  Volume group "nfsdata" successfully renamed to "data"
[user@localhost ~]$
[user@localhost ~]$ sudo lvs
  LV      VG     Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  home    centos -wi-ao---- 20.00g
  root    centos -wi-ao---- 71.00g
  swap    centos -wi-ao---- <7.88g
  nfsdata data   -wi-a-----  1.95t
[user@localhost ~]$

Tidak ada komentar :

Posting Komentar