感谢支持
我们一直在努力

CentOS 6 LVM 激活

[root@localhost init.d]# lvscan
  inactive          ‘/dev/Oracle_vg/oracle_lv’ [14.90 GiB] inherit
  ACTIVE            ‘/dev/vg_lab/lv_root’ [7.54 GiB] inherit
  ACTIVE            ‘/dev/vg_lab/lv_swap’ [1.97 GiB] inherit
[root@localhost init.d]# lv
lvchange     lvdisplay    lvmchange    lvmdump      lvreduce     lvresize
lvconvert    lvextend     lvmconf      lvmsadc      lvremove     lvs
lvcreate     lvm          lvmdiskscan  lvmsar       lvrename     lvscan
[root@localhost init.d]# lvchange -ay
  Please give logical volume path(s)
  Run `lvchange –help’ for more information.
[root@localhost init.d]# lvscan 
  inactive          ‘/dev/oracle_vg/oracle_lv’ [14.90 GiB] inherit
  ACTIVE           dev/vg_lab/lv_root’ [7.54 GiB] inherit ‘/
  ACTIVE            ‘/dev/vg_lab/lv_swap’ [1.97 GiB] inherit
[root@localhost init.d]# vgchange -ay
  1 logical volume(s) in volume group “oracle_vg” now active
  2 logical volume(s) in volume group “vg_lab” now active
[root@localhost init.d]#
[root@localhost init.d]#
[root@localhost init.d]# ls -l /dev/oracle_vg/oracle_lv ^C
[root@localhost init.d]#
[root@localhost init.d]#
[root@localhost init.d]# ls -l /dev/mapper/*
crw-rw—- 1 root root 10, 58 Sep 27 09:36 /dev/mapper/control
lrwxrwxrwx 1 root root      7 Sep 27 09:48 /dev/mapper/oracle_vg-oracle_lv -> ../dm-2
lrwxrwxrwx 1 root root      7 Sep 27 09:36 /dev/mapper/vg_lab-lv_root -> ../dm-0
lrwxrwxrwx 1 root root      7 Sep 27 09:36 /dev/mapper/vg_lab-lv_swap -> ../dm-1
[root@localhost init.d]#

赞(0) 打赏
转载请注明出处:服务器评测 » CentOS 6 LVM 激活
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏