-->

GoogleSearch



추천영상: 12인치 천체망원경으로 촬영한 토성

Scientist. Husband. Daddy. --- TOLLE. LEGE
외부자료의 인용에 있어 대한민국 저작권법(28조)과 U.S. Copyright Act (17 USC. §107)에 정의된 "저작권물의 공정한 이용원칙 | the U.S. fair use doctrine" 을 따릅니다. 저작권(© 최광민)이 명시된 모든 글과 번역문들에 대해 (1) 복제-배포, (2) 임의수정 및 자의적 본문 발췌, (3) 무단배포를 위한 화면캡처를 금하며, (4) 인용 시 URL 주소 만을 사용할 수 있습니다. [후원 | 운영] [대문으로] [방명록] [옛 방명록] [티스토리 (백업)]

이 블로그 검색

resize lvm partitions

라벨:


1. Boot from live CD.
2. Open terminal window
3. Do not mount the filesystems
4. At the shell type: lvm
5. Within lvm shell, run following commands:
lvm> vgscan
lvm> vgchange –available y VolGroup00
lvm> lvscan # should show the LV as “ACTIVE”; the devices in /dev it mentions should now exist
lvm> exit
6. Now resize the filesystem with this command (e.g. using device /dev/VolGroup00/LogVol00):
e2fsck -f /dev/VolGroup00/LogVol00 # check filesystem
resize2fs /dev/VolGroup00/LogVol00 nnG # resize the fs to nn GB; nn should be less than the current fs size
e2fsck -f /dev/VolGroup00/LogVol00 # recheck filesystem
7. Run lvm again and type:
lvm> lvreduce -LnnG /dev/VolGroup00/LogVol00 # resize the LV to nn GB; nn should be the same as above
lvm> exit
8. Do another filesystem check:
e2fsck -f /dev/VolGroup00/LogVol00
9. Reboot and remove CD.

If you get the warning of resizing currently ACTIVE LV, please do the following from command line:

lvchange -a n VolGroup00/LogVol00 # to deactivate LV
and after operation above do:
lvchange -a y VolGroup00/LogVol00 # to reactivate LV


http://witchbag.com/blog/2010/06/fedora-lvm-partition-windows/






라벨:





Scientist. Husband. Daddy. --- TOLLE. LEGE
외부자료의 인용에 있어 대한민국 저작권법(28조)과 U.S. Copyright Act (17 USC. §107)에 정의된 "저작권물의 공정한 이용원칙 | the U.S. fair use doctrine" 을 따릅니다. 저작권(© 최광민)이 명시된 모든 글과 번역문들에 대해 (1) 복제-배포, (2) 임의수정 및 자의적 본문 발췌, (3) 무단배포를 위한 화면캡처를 금하며, (4) 인용 시 URL 주소 만을 사용할 수 있습니다. [후원 | 운영] [대문으로] [방명록] [옛 방명록] [티스토리 (백업)] [신시내티]

-