Creacion de Volumenes Logicos

[root@vwbbog01-1 datos]# fdisk /dev/xvdd
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,

[root@vwbbog01-1 datos]# fdisk /dev/xvdd
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)



Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-652, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-652, default 652):
Using default value 652

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): p

Disk /dev/xvdd: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/xvdd1 1 652 5237158+ 8e Linux LVM

Command (m for help): wq
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.


#######################################################################3

[root@vwbbog01-1 datos]# pvcreate /dev/xvdd1
Physical volume "/dev/xvdd1" successfully created
[root@vwbbog01-1 datos]# vgcreate VolGroup03 /dev/xvdd1
Volume group "VolGroup03" successfully created


ot@vwbbog01-1 datos]# lvcreate -L 4G VolGroup03
Logical volume "lvol0" created
[root@vwbbog01-1 datos]# lvrename /dev/VolGroup03/lvol0 /dev/VolGroup03/LogVol00
Renamed "lvol0" to "LogVol00" in volume group "VolGroup03"/VolGroup03/LogVol00

No hay comentarios:

Publicar un comentario