....

LVM 파티션 직접 마운트하기 본문

Linux

LVM 파티션 직접 마운트하기

idkook 2014. 5. 28. 21:31

서버 파티션이 맛이 가서 rescue mode로 직접 마운트하고자 할때..


출처 : http://jim-zimmerman.com/?p=587


Boot your rescue media.
Scan for volume groups:
# lvm vgscan -v

Activate all volume groups:
# lvm vgchange -a y

List logical volumes:
# lvm lvs –all

With this information, and the volumes activated, you should be able to mount the volumes:
# mount /dev/volumegroup/logicalvolume /mountpoint


소프트 레이드 파티션의 경우..

출처 : http://serverfault.com/questions/375390/how-do-i-mount-a-raid-disk


I've found out already, I had to make the raid active and then mount it with mount /dev/md1

cat /proc/mdstat
shows all available software RAID arrays. Normally the Rescue System assembles all autodected arrays. Should your array not be automatically started, you can manually do so with the following command:
mdadm --assemble /dev/md0 /dev/sda1 /dev/sdb1
Now you can mount the just created MD device with:
mount /dev/md0 /mnt


이외에 LVM 파티션을 직접 관리하는 작업등을 하려면..


http://www.gnode.net/lvm-resize-in-rescue-mode-with-software-raid/

Comments