• Agrandir ou diminuer un FS sur AIX
chfs -a size=[+ | -] 1G /some/FS
 
Ex : chfs -a size=+1G /some/FS


  • Lister Les VG et les FS associés
lsvg applivg
VOLUME GROUP:       applivg                  VG IDENTIFIER:  00cef4a700004c0000000163d5ddb30f
VG STATE:           active                   PP SIZE:        128 megabyte(s)
VG PERMISSION:      read/write               TOTAL PPs:      399 (51072 megabytes)
MAX LVs:            512                      FREE PPs:       7 (896 megabytes)
LVs:                4                        USED PPs:       392 (50176 megabytes)
OPEN LVs:           4                        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:     130048
MAX PPs per PV:     1016                     MAX PVs:        128
LTG size (Dynamic): 1024 kilobyte(s)         AUTO SYNC:      no
HOT SPARE:          no                       BB POLICY:      relocatable
PV RESTRICTION:     none                     INFINITE RETRY: no
DISK BLOCK SIZE:    512                      CRITICAL VG:    no
FS SYNC OPTION:     no                       CRITICAL PVs:   no


lsvg -l applivg
applivg:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
lv_cmod             jfs2       80      80      1    open/syncd    /appli/CMOD
lv_cmodcache        jfs2       160     160     1    open/syncd    /appli/CMOD-cache
lv_aen              jfs2       80      80      1    open/syncd    /appli/AEN
lv_logs             jfs2       72      72      1    open/syncd    /logs


  • Créer un FS (Avec LV)
crfs -v jfs2 -m /mountpoint -A yes -g datavg -a size=128M -p rw -a logname=INLINE
  • Supprimer un FS (et le LV associé)
rmfs -r FS
  • Supprimer un LV
rmlv -f LV
  • Renommer le LV
chlv -n nouveau_nom ancien_nom