BrunoCaires

Site pessoal com anotações e nerdices

AIX LVM - criando LV e file system

Written on

Checando os VG's ativos no sistema

lsvg -o

Criando um LV em um VG já existente

mklv -y fslv00 -t jfs2 rootvg 20

-y Nome do volume lógico
-t tipo do volume lógico

Verificando se foi criado o novo volume

lsvg -l rootvg

fslv00 jfs2 20 20 1 closed/syncd N/A

Verificando os atributos do volume

root@xcat01 /opt/media # lslv fslv00

LOGICAL VOLUME: fslv00 VOLUME GROUP: rootvg

LV IDENTIFIER: 00f6a8fa00004c0000000156947ece08.17 PERMISSION: read/write

VG STATE: active/complete LV STATE: closed/syncd

TYPE: jfs2 WRITE VERIFY: off

MAX LPs: 512 PP SIZE: 512 megabyte(s)

COPIES: 1 SCHED POLICY: parallel

LPs: 20 PPs: 20

STALE PPs: 0 BB POLICY: relocatable

INTER-POLICY: minimum RELOCATABLE: yes

INTRA-POLICY: middle UPPER BOUND: 32

MOUNT POINT: N/A LABEL: None

MIRROR WRITE CONSISTENCY: on/ACTIVE

EACH LP COPY ON A SEPARATE PV ?: yes

Serialize IO ?: NO

Verificando alocação do VG

root@xcat01 /opt/media # lsvg rootvg

VOLUME GROUP: rootvg VG IDENTIFIER: 00f6a8fa00004c0000000156947ece08

VG STATE: active PP SIZE: 512 megabyte(s)

VG PERMISSION: read/write TOTAL PPs: 558 (285696 megabytes)

MAX LVs: 256 FREE PPs: 446 (228352 megabytes)

LVs: 18 USED PPs: 112 (57344 megabytes)

OPEN LVs: 11 QUORUM: 2 (Enabled)

TOTAL PVs: 1 VG DESCRIPTORS: 2

STALE PVs: 0 STALE PPs: 0

ACTIVE PVs: 1 AUTO ON: yes

MAX PPs per VG: 32512

MAX PPs per PV: 1016 MAX PVs: 32

LTG size (Dynamic): 1024 kilobyte(s) AUTO SYNC: no

HOT SPARE: no BB POLICY: relocatable

PV RESTRICTION: none

Verificando filesystem

df -gt

Criando um filesytem usando o novo volume criado

crfs -v jfs2 -d fslv00 -m /opt/media -A yes -p rw

-v tipo file system
-d nome lv
-m ponto de montagem
-A se irá montar automaticamente
-p permissões

Aumentando tamanho file system

chfs -a size=+10G /opt/media/

http://www.unixdcbees.com/aix-lvm-creating-vg-lv-and-file-system-part-1/