LVM 만들기 -1- ...

2004/09/13 00:38
요즘 LINUX 서버 셋팅과 관리해주는 허접한 일들을 해주고 있다.
200 GB 하드 2개를 하나로 합쳐야 하는 상황이 와서
SOFT RAID 를 시도해 보았으나..
짧은 지식과 능력으로 인해 실패..

LVM 으로 다시 시도해 보게 되었다.

참고문서 : http://doc.kldp.org/wiki.php/DocbookSgml/LVM-HOWTO

먼저 fdisk 를 이용해 LVM 으로 묶을 파티션을 Linux LVM 시스템으로 바꾸어 준다
[root@localhost /]# fdisk /dev/hda

The number of cylinders for this disk is set to 24321.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 8e
Changed system type of partition 1 to 8e (Linux LVM)

Command (m for help): p

Disk /dev/hda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 24321 195358401 8e Linux LVM

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
[root@localhost /]#

같은 방법으로 다른 하드의 파티션 까지...

이제 lvmtab 을 생성해야 한다.
[root@localhost /]# vgscan
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume group

[root@localhost /]#

이제 물리적 볼륨을 만들어야 한다
[root@localhost /]# pvcreate /dev/hda1
pvcreate -- physical volume "/dev/hda1" successfully created

[root@localhost /]# pvcreate /dev/hdc1
pvcreate -- physical volume "/dev/hdc1" successfully created

[root@localhost /]#
2004/09/13 00:38 2004/09/13 00:38
Posted by 마누

트랙백 보낼 주소 : http://manuz.com/trackback/38

댓글을 달아주세요


행복합니다^^
요즘은 행복하다고 말하기 힘듭니다. 힘든건 힘든거니까요. 하지만 조만간 다시 웃을겁니다. 저에겐 웃고 행복한 모습이 제일 잘 어울리는 것 같거든요.

카테고리

전체 (143)
일상다반사 (40)
삶이 있는 고민 (41)
웹표준 및 웹접근성 (1)
기록들... (0)
Meditation (15)
WEB (11)
IT (26)
영상 (8)

글 보관함

달력

«   2010/07   »
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Total : 187128
Today : 145 Yesterday : 169