You are here

create Logical Volume and Mount point

create Logical Volume / Filesystem / MountPoint

 

1.  Anzeigen der bestehenden HardDisk. 

# lspv 

hdisk0 00003926e2dd881b rootvg 
hdisk1 00003926331b805d rootvg 
hdisk2 0000392609eeb2da uservg 
hdisk3 0000392609eec4a4 uservg 
hdisk4 00106488cc181ea5 datavg 

 

 

2.  Anzeigen der properties der Hard Disks.

# lspv hdisk3  

PHYSICAL VOLUME: hdisk3 VOLUME GROUP: uservg
PV IDENTIFIER: 0000392609eec4a4 VG IDENTIFIER 0000392631eac82c
PV STATE: active 
STALE PARTITIONS: 0 ALLOCATABLE: yes
PP SIZE: 16 megabyte(s) LOGICAL VOLUMES: 11
TOTAL PPs: 806 (12896 megabytes) VG DESCRIPTORS: 1
FREE PPs: 18 (288 megabytes) 
USED PPs: 788 (12608 megabytes) 
FREE DISTRIBUTION: 16..00..00..00..02 
USED DISTRIBUTION: 146..161..161..161..159 

 

 

3.   Erstellen einer „lv“ von 160MB (10PP * 16MB PPSize). 

# mklv -y gogolv uservg 10             ## 10 PP einheiten = 160MB 

gogolv

 

 

4.   Anzeigen der properties der HardDisk 3 und „lv“. 

# lspv hdisk3  

PHYSICAL VOLUME: hdisk3 VOLUME GROUP: uservg
PV IDENTIFIER: 0000392609eec4a4 VG IDENTIFIER 0000392631eac82c
PV STATE: active 
STALE PARTITIONS: 0 ALLOCATABLE: yes
PP SIZE: 16 megabyte(s) LOGICAL VOLUMES: 12
TOTAL PPs: 806 (12896 megabytes) VG DESCRIPTORS: 1
FREE PPs: 8 (128 megabytes) 
USED PPs: 798 (12768 megabytes) ### 12768 – 12608 = 160MB 
FREE DISTRIBUTION: 06..00..00..00..02 
USED DISTRIBUTION: 156..161..161..161..159 

 
# lspv -l hdisk3 

hdisk3:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
pfmpaketelv 119 119 107..00..00..00..12 /pakete
gogolv 10 10 10..00..00..00..00 /gogo
inf_4_009 32 32 32..00..00..00..00 N/A
inf_4_008 7 7 07..00..00..00..00 N/A
drebalv 4 4 00..04..00..00..00 /dreba
perfrep 1 1 00..01..00..00..00 /var/perfrep
pmiddata 35 35 00..35..00..00..00 /home/PMID/DataMS
sib 4 4 00..04..00..00..00 /var/dap/SIB
usrSrv 7 7 00..07..00..00..00 /usr/net/servers
homeSrv 576 576 00..110..161..161..144 /home/server
inf_4_006 2 2 00..00..00..00..02 N/A
inf_4_007 1 1 00..00..00..00..01 N/A 

 
# lslv -l gogolv 

gogolv:/gogo
PV COPIES IN BAND DISTRIBUTION 
hdisk3 010:000:000 0% 010:000:000:000:000 

 
# lslv -m gogolv 

gogolv:/gogo
LP PP1 PV1 PP2 PV2 PP3 PV3
0001 0114 hdisk3 
0002 0115 hdisk3 
0003 0116 hdisk3 
0004 0117 hdisk3 
0005 0118 hdisk3 
0006 0119 hdisk3 
0007 0120 hdisk3 
0008 0121 hdisk3 
0009 0122 hdisk3 
0010 0123 hdisk3 

 
# lspv -p hdisk3  

hdisk3:
PP RANGE STATE REGION LV NAME TYPE MOUNT POINT
 1-107 used outer edge pfmpaketelv jfs /pakete
108-113 free outer edge 
114-123 used outer edge gogolv jfs /gogo
124-155 used outer edge inf_4_009 raw N/A
156-162 used outer edge inf_4_008 raw N/A
163-166 used outer middle drebalv jfs /dreba
167-167 used outer middle perfrep jfs /var/perfrep
168-202 used outer middle pmiddata jfs /home/PMID/DataMS
203-206 used outer middle sib jfs /var/dap/SIB
207-213 used outer middle usrSrv jfs /usr/net/servers
214-323 used outer middle homeSrv jfs /home/server
324-484 used center homeSrv jfs /home/server
485-645 used inner middle homeSrv jfs /home/server
646-789 used inner edge homeSrv jfs /home/server
790-801 used inner edge pfmpaketelv jfs /pakete
802-803 used inner edge inf_4_006 raw N/A
804-804 used inner edge inf_4_007 raw N/A
805-806 free inner edge   

 

 

5.   Filesystem anlegen. 

# crfs -v jfs -d gogolv -m /gogo  

Je nach Auswahl der Parameter ist das neue JFS-Dateisystem /gogo auf eine maximale

Größe von 134217728 (512-Byte-Blöcke) beschränkt

Größe des neuen Dateisystems ist 327680

 

 

6.    Filesystem ist noch closed. 

# lsvg -l uservg |grep gogo

gogolv jfs 10 10 1 closed/syncd /gogo

  

 

7.   Filesystem mount und anzeigen.

# mount /gogo 

# df -k

Dateisystem 1024-blocks Free %Used Iused %Iused Angehängt an
/dev/gogolv 163840 158660 4% 17 1% /gogo

 

 

8.   Filesystem anlegen.

# lsvg -l uservg |grep gogo

gogolv jfs 10 10 1 open/syncd /gogo

 

 

9.   Filesystem löschen und entfernt „lv“ gleichzeitig. 

# rmfs /gogo

rmlv: Logischer Datenträger gogolv entfernt.