vg_mnt
下的 pubx。
[root@kvm10 ~]# df -Th /mnt/pub Filesystem Type Size Used Avail Use% Mounted on /dev/mapper/vg_mnt-pubx vfat 24M 0 24M 0% /mnt/pub
[root@kvm10 ~]# vgrename --help vgrename - Rename a volume group Rename a VG. vgrename VG VG_new [ COMMON_OPTIONS ]
vg_mnt
改名為 vg_mntx
。
[root@kvm10 ~]# vgrename vg_mnt vg_mntx Volume group "vg_mnt" successfully renamed to "vg_mntx"
vg_mnt-pubx
vg_mntx-pubx
。
[root@kvm10 ~]# vim /etc/fstab [root@kvm10 ~]# grep /mnt/pub /etc/fstab /dev/mapper/vg_mntx-pubx /mnt/pub vfat defaults 1 2
[root@kvm10 ~]# mount -a
vg_mntx-pubx
。
[root@kvm10 ~]# df -Th /mnt/pub Filesystem Type Size Used Avail Use% Mounted on /dev/mapper/vg_mnt-pubx vfat 24M 0 24M 0% /mnt/pub