• 구름많음동두천 -13.7℃
  • 맑음강릉 -7.1℃
  • 맑음서울 -14.2℃
  • 맑음대전 -11.1℃
  • 구름많음대구 -8.3℃
  • 맑음울산 -7.3℃
  • 광주 -8.1℃
  • 맑음부산 -5.6℃
  • 흐림고창 -10.3℃
  • 제주 -1.5℃
  • 구름많음강화 -13.6℃
  • 맑음보은 -11.1℃
  • 구름많음금산 -9.7℃
  • 흐림강진군 -8.5℃
  • 맑음경주시 -7.3℃
  • 구름조금거제 -4.5℃
기상청 제공

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