歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> CentOS 6 LVM 激活

CentOS 6 LVM 激活

日期:2017/2/28 16:04:24   编辑:Linux教程

[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]#

Copyright © Linux教程網 All Rights Reserved