Oracle
1Z0-403 · Question #89
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…
The correct answer is D. Unmount the lv0 Logical Volume and invoke the lvchange command with the -an option to deactivate it. See the full explanation below for the reasoning.
Question
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?
Options
- ADeactivate the vg0 Volume Group before renaming it.
- BRemove the lv0 Logical Volume before issuing the vgrename command.
- CUnmount the lv0 Logical Volume and invoke the vgrename command with the -f option.
- DUnmount the lv0 Logical Volume and invoke the lvchange command with the -an option to deactivate it
How the community answered
(28 responses)- A4% (1)
- B4% (1)
- C14% (4)
- D79% (22)
Community Discussion
No community discussion yet for this question.