标签:
[root@Oracle11g ~]# fdisk -l
Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 261 2096451 83 Linux
/dev/sda2 262 1536 10241437+ 83 Linux
/dev/sda3 1537 2301 6144862+ 83 Linux
/dev/sda4 2302 2610 2482042+ 5 Extended
/dev/sda5 2302 2559 2072353+ 82 Linux swap / Solaris
/dev/sda6 2560 2610 409626 83 Linux
Disk /dev/sdb: 3221 MB, 3221225472 bytes
255 heads, 63 sectors/track, 391 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb doesn‘t contain a valid partition table
[root@Oracle11g ~]# pvcreate
Please enter a physical volume path
Run `pvcreate --help‘ for more information.
[root@Oracle11g ~]# pvcreate /dev/sdb
Writing physical volume data to disk "/dev/sdb"
Physical volume "/dev/sdb" successfully created
[root@Oracle11g ~]# pvdisplay
"/dev/sdb" is a new physical volume of "3.00 GB"
--- NEW Physical volume ---
PV Name /dev/sdb
VG Name
PV Size 3.00 GB
Allocatable NO
PE Size (KByte) 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID WKISLs-rOSI-Vinr-wyLH-69mD-0g8Z-InzgUK
[root@Oracle11g ~]# vgcreate vg01 /dev/sdb
Volume group "vg01" successfully created
[root@Oracle11g ~]# lvcreate -L 1024m -n lv_ocr1 vg01
Logical volume "lv_ocr1" created
[root@Oracle11g ~]# lvcreate -L 1024m -n lv_vot1 vg01
Logical volume "lv_vot1" created
[root@Oracle11g ~]# lvcreate -L 1024m -n lv_data1 vg01
Volume group "vg01" has insufficient free space (255 extents): 256 required.
[root@Oracle11g ~]# lvcreate -L 1000m -n lv_data1 vg01
Logical volume "lv_data1" created
[root@Oracle11g ~]# lvdisplay
--- Logical volume ---
LV Name /dev/vg01/lv_ocr1
VG Name vg01
LV UUID kxLSK7-ILE6-R9Y5-Iii3-dPmU-rQZ8-ksWQDy
LV Write Access read/write
LV Status available
# open 0
LV Size 1.00 GB
Current LE 256
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Name /dev/vg01/lv_vot1
VG Name vg01
LV UUID s6mBfk-pLXd-FUGX-MFBk-RMZW-mF0A-x70Kt7
LV Write Access read/write
LV Status available
# open 0
LV Size 1.00 GB
Current LE 256
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
--- Logical volume ---
LV Name /dev/vg01/lv_data1
VG Name vg01
LV UUID xT0bIF-2OYa-AYvv-lO7r-EgfR-q1HG-14MSZX
LV Write Access read/write
LV Status available
# open 0
LV Size 1000.00 MB
Current LE 250
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
标签:
原文地址:http://www.cnblogs.com/iyoume2008/p/5868567.html