How to rename LVM volume group on centos 7
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