vg_mnt
下的 pub。
[root@kvm10 ~]# df -Th /mnt/pub Filesystem Type Size Used Avail Use% Mounted on /dev/mapper/vg_mnt-pub vfat 24M 0 24M 0% /mnt/pub
[root@kvm10 ~]# lvrename --help lvrename - Rename a logical volume lvrename VG LV LV_new [ COMMON_OPTIONS ] lvrename LV LV_new [ COMMON_OPTIONS ]
vg_mnt
下名為 pub 的 LV 改名為 pubx。
[root@kvm10 ~]# lvrename vg_mnt pub pubx Renamed "pub" to "pubx" in volume group "vg_mnt"
[root@kvm10 ~]# umount /mnt/pub [root@kvm10 ~]# mount -a mount: /mnt/pub: special device /dev/mapper/vg_mnt-pub does not exist. [root@kvm10 ~]# df -Th /mnt/pub Filesystem Type Size Used Avail Use% Mounted on
vg_mnt-pub
vg_mnt-pubx
。
[root@kvm10 ~]# vim /etc/fstab [root@kvm10 ~]# grep /mnt/pub /etc/fstab /dev/mapper/vg_mnt-pubx /mnt/pub vfat defaults 1 2
[root@kvm10 ~]# mount -a
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