• 맑음동두천 -1.5℃
  • 맑음강릉 2.3℃
  • 맑음서울 0.3℃
  • 맑음대전 0.8℃
  • 맑음대구 3.9℃
  • 구름많음울산 5.2℃
  • 맑음광주 1.9℃
  • 흐림부산 6.3℃
  • 구름많음고창 -0.4℃
  • 흐림제주 6.9℃
  • 맑음강화 -1.2℃
  • 맑음보은 -3.4℃
  • 맑음금산 -1.6℃
  • 맑음강진군 1.6℃
  • 맑음경주시 0.9℃
  • 구름조금거제 4.2℃
기상청 제공

lvm 파티션 나누기 순서

pvcreate  /dev/xvdb1

vgcreate nidap01-lv /dev/xvdb1

lvcreate -L 20G -n NID1 nidap01-lv

mkfs.ext3 /dev/nidap01-lv/NID1

mount /dev/nidap01-lv/NID1 /usr/sap/NID

/dev/nidap01-lv/NID1    /usr/sap/NID    ext3    acl,user_xattr 1 2




volume group확인: pvdisplay /dev/sdb5
logical volume확인: lvdisplay -v /볼륨그룹명
volume group활성화: vgchange -a y /볼륨그룹명

root@ns2:/b# lvdisplay lotusport
  --- Logical volume ---
  LV Name                /dev/lotusport/root
  VG Name                lotusport
  LV UUID                DHefTA-d2xi-nm9H-tLgV-ifbg-MAM5-nzKwXb
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                293.84 GB
  Current LE             75223
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
   
  --- Logical volume ---
  LV Name                /dev/lotusport/swap_1
  VG Name                lotusport
  LV UUID                pvlcel-59SC-02ev-F2bN-RsxP-0PBL-R4u4ai
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                4.00 GB
  Current LE             1023
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1