파티션 생성
[root@LGDSSOP1 ~]# fdisk /dev/sdb
Command (m for help): n
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1958, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-1958, default 1958):
Using default value 1958
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 8e
Changed system type of partition 1 to 8e (Linux LVM)
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@LGDSSOP1 ~]#
[root@LGDSSOP1 ~]# fdisk /dev/sdc
Command (m for help): n
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1958, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-1958, default 1958):
Using default value 1958
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 8e
Changed system type of partition 1 to 8e (Linux LVM)
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@LGDSSOP1 ~]#. |
|
PV생성
[root@LGDSSOP1 ~]# pvcreate /dev/sdb1
Physical volume "/dev/sdb1" successfully created
[root@LGDSSOP1 ~]# pvcreate /dev/sdc1
Physical volume "/dev/sdc1" successfully created |
VG Groub 생성
[root@LGDSSOP1 ~]# vgcreate VGMASTER /dev/sdb1 /dev/sdc1
Volume group "VGMASTER" successfully created |
LV생성
[root@LGDSSOP1 ~]# lvcreate -L 1024 -n lv_root VGMASTER
Logical volume "lv_root" created
[root@LGDSSOP1 ~]# lvcreate -L 5024 -n lv_usr VGMASTER
Logical volume "lv_usr" created
[root@LGDSSOP1 ~]# lvcreate -L 10240 -n lv_home VGMASTER
Logical volume "lv_home" created |
'[IT] Linux > Volume' 카테고리의 다른 글
LV Size 확장 및 축소 (0) | 2015.05.07 |
---|---|
super block (0) | 2015.05.07 |
LVM Stripe LV 생성 (0) | 2015.05.03 |