What would you do to fix this error and rename the vg0 Volume Group successfully with the vgrename command?

You have the /dev/vg0/lv0 Logical Volume mounted on the /data directory. You want to rename
the Volume Group vg0 to vg00. You tried to rename the vg0 Volume Group and encountered an
error as shown below:
[root@server1 ~]# df -h | grep lv
/dev/mapper/vg0-lv0 194M 5.6M 179M 4% /data
[root@server1 ~]# vgrename vg0 vg00
Volume group “vg0” still has active LVs
[root@server1 ~]#
What would you do to fix this error and rename the vg0 Volume Group successfully with the
vgrename command?

You have the /dev/vg0/lv0 Logical Volume mounted on the /data directory. You want to rename
the Volume Group vg0 to vg00. You tried to rename the vg0 Volume Group and encountered an
error as shown below:
[root@server1 ~]# df -h | grep lv
/dev/mapper/vg0-lv0 194M 5.6M 179M 4% /data
[root@server1 ~]# vgrename vg0 vg00
Volume group “vg0” still has active LVs
[root@server1 ~]#
What would you do to fix this error and rename the vg0 Volume Group successfully with the
vgrename command?

A.
Deactivate the vg0 Volume Group before renaming it.

B.
Remove the lv0 Logical Volume before issuing thevgrename command.

C.
Unmount the lv0 Logical Volume and invoke the vgrename command with the -f option.

D.
Unmount the lv0 Logical Volume and invoke the lvchange command with the -an option to
deactivate it before issuing the vgrename command.



Leave a Reply 0

Your email address will not be published. Required fields are marked *