Proxmox · 6 min read · Nov 28, 2025
Proxmox VE 2.x 소프트웨어 RAID
Proxmox VE 2.x 소프트웨어 RAID
Proxmox Virtual Environment는 가상 어플라이언스와 가상 머신을 실행하기 위한 사용하기 쉬운 오픈 소스 가상화 플랫폼입니다. Proxmox는 소프트웨어 RAID를 공식적으로 지원하지 않지만, 저는 소프트웨어 RAID가 매우 안정적이며 경우에 따라 하드웨어 RAID보다 더 나은 성능을 보였다는 것을 발견했습니다.
이 방법이 여러분에게 효과가 있을 것이라는 보장은 하지 않습니다!
개요
먼저 Proxmox V2를 Proxmox에서 다운로드한 CD로 정상적으로 설치합니다. 다음으로 두 번째 하드 드라이브에 RAID 1 배열을 생성하고 proxmox 설치를 그곳으로 이동합니다.
그런 다음 Grub 설정을 조정하여 새로운 설정으로 부팅할 수 있도록 합니다.
크레딧
다음 튜토리얼은 제가 사용한 것입니다:
HowtoForge의 Falko에게 특별히 감사드립니다. 이 자료의 많은 부분이 그의 방법에서 재사용되었습니다. https://www.howtoforge.com/linux_lvm
Proxmox 설치
Proxmox의 최신 다운로드 CD에서 proxmox를 설치합니다. http://www.proxmox.com/downloads/proxmox-ve/17-iso-images
ext4 설치를 원하시면 부팅 프롬프트에 다음을 입력하세요:
linux ext4설치 지침은 여기에서 확인하세요: http://pve.proxmox.com/wiki/Quick_installation
다음으로 ssh로 로그인하고 다음을 실행합니다:
apt-get update
apt-get upgrade
RAID 설치
참고: 이 튜토리얼은 proxmox가 /dev/sda에 설치되었고 여분의 디스크가 /dev/sdb에 있다고 가정합니다. 현재 파티션을 나열하려면 다음 명령을 사용하세요:
fdisk -l
출력은 다음과 같아야 합니다:
root@proxmox:/# fdisk -l
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0009f7a7
Device Boot Start End Blocks Id System
/dev/sda1 * 1 66 523264 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 66 121602 976237568 8e Linux LVM
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00078af8
Device Boot Start End Blocks Id System
여기에는 더 많은 정보가 있지만, 현재로서는 처음 두 개의 디스크에만 관심이 있습니다. /dev/sda에 proxmox 설치가 있고 /dev/sdb에는 파티션이 없음을 확인할 수 있습니다.
먼저 소프트웨어 RAID, 즉 mdraid를 설치합니다:
apt-get install mdadm
패키지 구성 창에서 ok를 선택한 다음 all을 선택합니다. 다음으로 modprobe로 커널 모듈을 시작합니다:
modprobe linear
modprobe raid0
modprobe raid1
modprobe raid5
modprobe raid6
modprobe raid10
이제 다음을 실행합니다:
cat /proc/mdstat
출력은 다음과 같아야 합니다:
root@proxmox:~# cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
unused devices:
root@proxmox:~#
이제 sda에서 sdb로 파티션 테이블을 복사해야 합니다:
sfdisk -d /dev/sda | sfdisk –force /dev/sdb
출력은 다음과 같아야 합니다:
root@proxmox:/# sfdisk -d /dev/sda | sfdisk –force /dev/sdb
Checking that no-one is using this disk right now …
OK
Disk /dev/sdb: 121601 cylinders, 255 heads, 63 sectors/track
Old situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sdb1 0 - 0 0 0 Empty
/dev/sdb2 0 - 0 0 0 Empty
/dev/sdb3 0 - 0 0 0 Empty
/dev/sdb4 0 - 0 0 0 Empty
New situation:
Units = sectors of 512 bytes, counting from 0
Device Boot Start End #sectors Id System
/dev/sdb1 * 2048 1048575 1046528 83 Linux
/dev/sdb2 1048576 1953523711 1952475136 8e Linux LVM
/dev/sdb3 0 - 0 0 Empty
/dev/sdb4 0 - 0 0 Empty
Warning: partition 1 does not end at a cylinder boundary
Successfully wrote the new partition table
Re-reading the partition table …
If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
root@vmh:/# root@vmh:/# sfdisk -d /dev/sda | sfdisk –force /dev/sdb
-bash: root@vmh:/#: No such file or directory
Checking that no-one is using this disk right now …
OK
Disk /dev/sdb: 121601 cylinders, 255 heads, 63 sectors/track
Old situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sdb1 * 0+ 65- 66- 523264 83 Linux
/dev/sdb2 65+ 121601- 121536- 976237568 8e Linux LVM
/dev/sdb3 0 - 0 0 0 Empty
/dev/sdb4 0 - 0 0 0 Empty
New situation:
No partitions found
sfdisk: no partition table present.
이제 파티션 유형을 리눅스 RAID 자동 감지로 변경해야 합니다:
fdisk /dev/sdb
root@proxmox:/# fdisk /dev/sdb
WARNING: DOS-compatible mode is deprecated. It’s strongly recommended to
switch off the mode (command ‘c’) and change display units to
sectors (command ‘u’).
Command (m for help): t
Partition number (1-4): 1
Hex code (type L to list codes): fd
Changed system type of partition 1 to fd (Linux raid autodetect)
Command (m for help): t
Partition number (1-4): 2
Hex code (type L to list codes): fd
Changed system type of partition 2 to fd (Linux raid autodetect)
Command (m for help): p
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00078af8
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 66 523264 fd Linux raid autodetect
Partition 1 does not end on cylinder boundary.
/dev/sdb2 66 121602 976237568 fd Linux raid autodetect
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
이제 /dev/sdb에 두 개의 리눅스 RAID 자동 감지 파티션이 있습니다.
/dev/sdb에 이전 RAID 설치의 잔여물이 없도록 하기 위해 다음 명령을 실행합니다:
mdadm –zero-superblock /dev/sdb1
mdadm –zero-superblock /dev/sdb2
이전 RAID 설치의 잔여물이 없으면 위의 각 명령은 다음과 같은 오류를 발생시킵니다(걱정할 필요 없습니다):
root@proxmox:~# mdadm –zero-superblock /dev/sdb1
mdadm: Unrecognised md component device - /dev/sdb1
root@server1:~#
그렇지 않으면 명령은 아무것도 표시하지 않습니다.
이제 새로운 RAID 배열을 생성해야 합니다:
mdadm –create /dev/md0 –level=1 –raid-disks=2 missing /dev/sdb1
mdadm –create /dev/md1 –level=1 –raid-disks=2 missing /dev/sdb2
이 명령은 다음과 같은 메시지를 표시합니다(예라고 대답하세요):
root@proxmox:/# mdadm –create /dev/md0 –level=1 –raid-disks=2 missing /dev/sdb1
mdadm: Note: this array has metadata at the start and
may not be suitable as a boot device. If you plan to
store ‘/boot’ on this device please ensure that
your boot-loader understands md/v1.x metadata, or use
–metadata=0.90
Continue creating array? y
mdadm: Defaulting to version 1.2 metadata
mdadm: array /dev/md0 started.
root@proxmox:/#
명령
cat /proc/mdstat
root@proxmox:~# cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active (auto-read-only) raid1 sdb1[1]
523252 blocks super 1.2 [2/1] [_U]
md1 : active (auto-read-only) raid1 sdb2[1]
976236408 blocks super 1.2 [2/1] [_U]
unused devices:
새 게시물을 받은 편지함에서 받기
스팸은 없습니다. 언제든지 구독 해지 가능합니다.