pc s vice disky
Zdenek Havrlik
zdenek at lhotkanet.cz
Mon Mar 12 14:56:44 CET 2007
http://vychodil.inf.upol.cz/publications/white-papers/lvm/#LVMUSAGE
asi nejak takto, to byla verze LVM1, ted je LVM2 je krapet vychytanejsi....
v praxi pak treba :
[root at server utility]# pvdisplay
--- Physical volume ---
PV Name /dev/hda1
VG Name lvm02
PV Size 298,06 GB / not usable 0
Allocatable yes (but full)
PE Size (KByte) 65536
Total PE 4769
Free PE 0
Allocated PE 4769
PV UUID pfBQjn-TTAe-sX8I-KVXB-as3c-2bC6-ZNUyvO
--- Physical volume ---
PV Name /dev/hdb1
VG Name lvm02
PV Size 298,00 GB / not usable 0
Allocatable yes (but full)
PE Size (KByte) 65536
Total PE 4768
Free PE 0
Allocated PE 4768
PV UUID 3N1mfe-V7xK-6Lej-UmsU-5MkJ-qjPM-b9OxtL
--- Physical volume ---
PV Name /dev/hdc1
VG Name lvm02
PV Size 298,06 GB / not usable 0
Allocatable yes (but full)
PE Size (KByte) 65536
Total PE 4769
Free PE 0
Allocated PE 4769
PV UUID hbjxJK-0va0-fwAu-A15L-iU1g-or6T-L1gvKV
--- Physical volume ---
PV Name /dev/hdd1
VG Name lvm02
PV Size 298,06 GB / not usable 0
Allocatable yes (but full)
PE Size (KByte) 65536
Total PE 4769
Free PE 0
Allocated PE 4769
PV UUID j0dS9k-OzJz-xMb4-1bJf-alAT-WSk5-jEiRKB
--- Physical volume ---
PV Name /dev/hde1
VG Name lvm02
PV Size 298,06 GB / not usable 0
Allocatable yes (but full)
PE Size (KByte) 65536
Total PE 4769
Free PE 0
Allocated PE 4769
PV UUID 20FT7h-0mJq-px4o-tPd0-IReK-MrBt-xyaUcA
--- Physical volume ---
PV Name /dev/hdg1
VG Name lvm02
PV Size 298,06 GB / not usable 0
Allocatable yes (but full)
PE Size (KByte) 65536
Total PE 4769
Free PE 0
Allocated PE 4769
PV UUID C6t8ey-pDq9-5Y5Q-q9Wv-JjH5-2kLP-E2lpJ9
--- Physical volume ---
PV Name /dev/hdh1
VG Name lvm02
PV Size 298,06 GB / not usable 0
Allocatable yes (but full)
PE Size (KByte) 65536
Total PE 4769
Free PE 0
Allocated PE 4769
PV UUID 2HiCfp-8lgt-9JmM-wX1E-opZb-pb50-qw95Y6
--- Physical volume ---
PV Name /dev/hdf1
VG Name lvm02
PV Size 298,06 GB / not usable 0
Allocatable yes (but full)
PE Size (KByte) 65536
Total PE 4769
Free PE 0
Allocated PE 4769
PV UUID RAeFSh-N0iD-GNeh-m9aF-EvmR-nvaL-OZ4m0W
[root at server utility]#
[root at server utility]# lvdisplay
--- Logical volume ---
LV Name /dev/lvm02/media1
VG Name lvm02
LV UUID yHnCPr-w0uy-JMK9-jLjn-MZZr-CXFv-1U6Sfh
LV Write Access read/write
LV Status available
# open 1
LV Size 2,33 TB
Current LE 38151
Segments 16
Allocation inherit
Read ahead sectors 0
Block device 253:0
[root at server ut[root at server utility]# vgdisplay
--- Volume group ---
VG Name lvm02
System ID
Format lvm2
Metadata Areas 8
Metadata Sequence No 256
VG Access read/write
VG Status resizable
MAX LV 255
Cur LV 1
Open LV 1
Max PV 255
Cur PV 8
Act PV 8
VG Size 2,33 TB
PE Size 64,00 MB
Total PE 38151
Alloc PE / Size 38151 / 2,33 TB
Free PE / Size 0 / 0
VG UUID 2a4QWV-ajMN-6eFs-ZGK6-P15W-Bi8P-6AlSUX
[root at server utility]#
zdenek
Josef Hrabec napsal(a):
>Mohu se zeptat, co je ten LVM na tom linuxu zac? (z tech obrazku to moc
>patrne neni) To je nejaky sw projekt, ovladac nebo tak neco? Znam treba
>LVM z AIX-u, tam se pod tou zkratkou mysli Logical Volume Manager a pro
>takoveto pouziti by byl tento LVM naprosto tim nejlepsim resenim - bohuzel
>nevim o tom, ze by se neco takoveho vyskytovalo pod FreeBSD nebo pod
>Linuxem.
>
>
>Pepa.
>
>
>
>
>
>
>>ja mam 11HDD viz: http://www.lhotkanet.cz/galerie/thumbnails.php?album=29
>>bezi na tom teda linux ne BSD ale predpokladam ze je to podobne.
>>mam dva disky na raid1 na nich je system a home uzivatelu
>>zbyle disky jsou v LVM, mam vyzkouseno ze pokud disk v LVM vypadne, tak
>>po nahrazeni novym, a opravou ext3 prijdu pouze o data na onom disku.
>>
>>zdenek
>>
>>Josef Hrabec napsal(a):
>>
>>
>>
>>>Dobry den,
>>>
>>>mame pc s dvema pci/sata radici, ktere ma dohromady 12 pevnych disku.
>>>Server slouzi jako domaci uloziste multimedialnich dat. V soucasne chvili
>>>je na kazdem disku vytvoren separatni filesystem - tedy 12 filesystemu.
>>>
>>>A rad bych se vas zeptal, zda-li mate nekdo pozitivni zkusenosti s
>>>pouzitim nejakeho sw raid-u nebo spolecneho logical volume slozeneho z
>>>vice disku. Cilem by melo byt vytvoreni kontinualniho datoveho uloziste
>>>narozdil od situace, kdy je dostupny diskovy prostor "rozsekan" do 12-ti
>>>casti podle disku.
>>>
>>>Kdyby v pripade poruchy jednoho disku, byla data na tomto disku ulozena
>>>ztracena, vubec by to nevadilo. Protoze v situaci, kdy je nyni kazdy disk
>>>"zvlast" (bez zalohy), muze k takove situaci tak ci onak dojit a data na
>>>nich ulozena nejsou nikterak zivotne dulezita. Spis by ale bylo vice
>>>problematicke, kdyby v pripade vypadku jednoho disku byla ztracena
>>>veskera
>>>data v takovem logical volume.
>>>
>>>Mate nekdo prosim nejaky typ, jak rozumne spojit nekolik disku do
>>>spolecneho diskoveho prostoru?
>>>
>>>Diky,
>>>Pepa.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>--
>>FreeBSD mailing list (users-l at freebsd.cz)
>>http://www.freebsd.cz/listserv/listinfo/users-l
>>
>>
>>
>
>
>
>
More information about the Users-l
mailing list