Oracle Linux Lov Manager Disk ekleme

Posted by Gökhan Şahin on Aug 14, 2013 in Linux, Oracle Linux |

#fdisk -l
Komutu ile bağlı diskleri görüyoruz.
pvcreate ile yeni eklenen diski volume ‘u oluşturuyoruz.
# pvcreate /dev/sdb
Writing physical volume data to disk "/dev/sdb1"
Physical volume "/dev/sdb1" successfully created

işlem tamamlandıktan sonra fdisk ile bölümlere ayıracağız burada önemli olan partition tipini Linux LVM seçemiz gerekiyor.
# fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0xcf1c9c9c.
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)

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').

Command (m for help): c
DOS Compatibility flag is not set

Command (m for help): u
Changing display/entry units to sectors

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First sector (2048-20971519, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-20971519, default 20971519):

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.

pvs komutu ile oluşan volume leri listeliyoruz.
lvs ile lov ları listeliyoruz.
vgextend ile mevcut volume diski ekliyoruz. VolGroup pvs ile listelediğiniz volume adıdır.

#vgextend -v VolGroup /dev/sdb1

lvextend ile hangi lov a diskten ne kadar yer vereceğimizi belirtiyoruz. lv_home sizin VolGroup altındaki lovu belirtir.
#lvextend -v -L +1.95T -r VolGroup/lv_home

df -h ile disk durumlarınızı görün.

Tags:

Reply

Copyright © 2019 Gökhan Şahin All rights reserved. Theme by Laptop Geek.