1. VM 공유 디스크 설정
호스트에 vdi 파일 생성
vboxmanage createmedium --filename OCR1.vdi --size 300 --format VDI --variant Fixed vboxmanage createmedium --filename OCR2.vdi --size 300 --format VDI --variant Fixed vboxmanage createmedium --filename VOTE1.vdi --size 300 --format VDI --variant Fixed vboxmanage createmedium --filename VOTE2.vdi --size 300 --format VDI --variant Fixed vboxmanage createmedium --filename VOTE3.vdi --size 300 --format VDI --variant Fixed vboxmanage createmedium --filename DATA1.vdi --size 10240 --format VDI --variant Fixed vboxmanage createmedium --filename FRA1.vdi --size 10240 --format VDI --variant Fixed
> vboxmanage createmedium --filename OCR1.vdi --size 300 --format VDI --variant Fixed 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Medium created. UUID: f874820f-3f90-44b2-bc79-09b288c07bb5 > vboxmanage createmedium --filename OCR2.vdi --size 300 --format VDI --variant Fixed 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Medium created. UUID: 58144599-f14b-4319-ae7f-7b7df7dfb329 > vboxmanage createmedium --filename VOTE1.vdi --size 300 --format VDI --variant Fixed 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Medium created. UUID: b9899f79-68b6-40f4-b718-c73635688550 > vboxmanage createmedium --filename VOTE2.vdi --size 300 --format VDI --variant Fixed 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Medium created. UUID: e2863fe6-60a5-45c7-b69c-e8673f0f22b9 > vboxmanage createmedium --filename VOTE3.vdi --size 300 --format VDI --variant Fixed 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Medium created. UUID: 42ee91fa-1126-4aa8-95d5-45db095b6cb9 > vboxmanage createmedium --filename DATA1.vdi --size 10240 --format VDI --variant Fixed 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Medium created. UUID: bdc67b80-d2ab-466a-80c7-90a1c08b3cdd > vboxmanage createmedium --filename FRA1.vdi --size 10240 --format VDI --variant Fixed 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Medium created. UUID: 561a9964-9a00-493d-b2d5-6ff628bce3be
호스트의 vdi 파일 공유 타입으로 변경
vboxmanage modifymedium OCR1.vdi --type shareable vboxmanage modifymedium OCR2.vdi --type shareable vboxmanage modifymedium VOTE1.vdi --type shareable vboxmanage modifymedium VOTE2.vdi --type shareable vboxmanage modifymedium VOTE3.vdi --type shareable vboxmanage modifymedium DATA1.vdi --type shareable vboxmanage modifymedium FRA1.vdi --type shareable
> vboxmanage modifymedium OCR1.vdi --type shareable > vboxmanage modifymedium OCR2.vdi --type shareable > vboxmanage modifymedium VOTE1.vdi --type shareable > vboxmanage modifymedium VOTE2.vdi --type shareable > vboxmanage modifymedium VOTE3.vdi --type shareable > vboxmanage modifymedium DATA1.vdi --type shareable > vboxmanage modifymedium FRA1.vdi --type shareable
2. Raw Device 설정
디스크 및 파티션 정보 조회
ls /dev/sd* cat /proc/partitions
[root@rac1 ~]# ls /dev/sd* /dev/sda /dev/sda2 /dev/sdb /dev/sdd /dev/sdf /dev/sdh /dev/sda1 /dev/sda3 /dev/sdc /dev/sde /dev/sdg [root@rac1 ~]# cat /proc/partitions major minor #blocks name 8 0 31457280 sda 8 1 104391 sda1 8 2 4192965 sda2 8 3 27157882 sda3 8 16 307200 sdb 8 32 307200 sdc 8 48 307200 sdd 8 64 307200 sde 8 80 307200 sdf 8 96 10485760 sdg 8 112 10485760 sdh
디스크 파티션 생성
fdisk /dev/sdb fdisk /dev/sdc fdisk /dev/sdd fdisk /dev/sde fdisk /dev/sdf fdisk /dev/sdg fdisk /dev/sdh
[root@rac1 ~]# fdisk /dev/sdb Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-300, default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-300, default 300): Using default value 300 Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. [root@rac1 ~]# fdisk /dev/sdc Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-300, default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-300, default 300): Using default value 300 Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. [root@rac1 ~]# fdisk /dev/sdd Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-300, default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-300, default 300): Using default value 300 Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. [root@rac1 ~]# fdisk /dev/sde Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-300, default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-300, default 300): Using default value 300 Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. [root@rac1 ~]# fdisk /dev/sdf Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-300, default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-300, default 300): Using default value 300 Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. [root@rac1 ~]# fdisk /dev/sdg Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. The number of cylinders for this disk is set to 1305. 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) Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-1305, default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-1305, default 1305): Using default value 1305 Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. [root@rac1 ~]# fdisk /dev/sdh Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. The number of cylinders for this disk is set to 1305. 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) Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-1305, default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-1305, default 1305): Using default value 1305 Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks.
파티션 생성 결과 확인
ls /dev/sd* cat /proc/partitions
[root@rac1 ~]# ls /dev/sd* /dev/sda /dev/sda3 /dev/sdc /dev/sdd1 /dev/sdf /dev/sdg1 /dev/sda1 /dev/sdb /dev/sdc1 /dev/sde /dev/sdf1 /dev/sdh /dev/sda2 /dev/sdb1 /dev/sdd /dev/sde1 /dev/sdg /dev/sdh1 [root@rac1 ~]# cat /proc/partitions major minor #blocks name 8 0 31457280 sda 8 1 104391 sda1 8 2 4192965 sda2 8 3 27157882 sda3 8 16 307200 sdb 8 17 305203 sdb1 8 32 307200 sdc 8 33 305203 sdc1 8 48 307200 sdd 8 49 305203 sdd1 8 64 307200 sde 8 65 305203 sde1 8 80 307200 sdf 8 81 305203 sdf1 8 96 10485760 sdg 8 97 10482381 sdg1 8 112 10485760 sdh 8 113 10482381 sdh1
물리 볼륨 생성
pvcreate /dev/sdg1 pvdisplay /dev/sdg1
[root@rac1 ~]# pvcreate /dev/sdg1 Physical volume "/dev/sdg1" successfully created [root@rac1 ~]# pvdisplay /dev/sdg1 "/dev/sdg1" is a new physical volume of "10.00 GB" --- NEW Physical volume --- PV Name /dev/sdg1 VG Name PV Size 10.00 GB Allocatable NO PE Size (KByte) 0 Total PE 0 Free PE 0 Allocated PE 0 PV UUID qSKPsy-qLV7-rc05-09j4-R3ff-bN6Q-g5Ensf
볼륨 그룹 생성
vgcreate dbvg /dev/sdg1 vgdisplay dbvg
[root@rac1 ~]# vgcreate dbvg /dev/sdg1 Volume group "dbvg" successfully created [root@rac1 ~]# vgdisplay dbvg --- Volume group --- VG Name dbvg System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 1 VG Access read/write VG Status resizable MAX LV 0 Cur LV 0 Open LV 0 Max PV 0 Cur PV 1 Act PV 1 VG Size 10.00 GB PE Size 4.00 MB Total PE 2559 Alloc PE / Size 0 / 0 Free PE / Size 2559 / 10.00 GB VG UUID uEIczL-Ftd1-FLmF-3cpr-QlDi-6oyB-cVvTbn
논리 볼륨 생성
lvcreate -L 1025M -n system dbvg lvcreate -L 1025M -n sysaux dbvg lvcreate -L 1025M -n users dbvg lvcreate -L 1025M -n temp dbvg lvcreate -L 1025M -n undotbs1 dbvg lvcreate -L 1025M -n undotbs2 dbvg lvcreate -L 101M -n control01 dbvg lvcreate -L 101M -n control02 dbvg lvcreate -L 201M -n redo01 dbvg lvcreate -L 201M -n redo02 dbvg lvcreate -L 201M -n redo03 dbvg lvcreate -L 201M -n redo04 dbvg lvcreate -L 201M -n redo05 dbvg lvcreate -L 201M -n redo06 dbvg lvcreate -L 201M -n redo07 dbvg lvcreate -L 201M -n redo08 dbvg lvcreate -L 201M -n redo09 dbvg lvcreate -L 201M -n redo10 dbvg lvcreate -L 201M -n redo11 dbvg lvcreate -L 201M -n redo12 dbvg lvcreate -L 201M -n spfile dbvg lvcreate -L 101M -n pwdfile dbvg
[root@rac1 ~]# lvcreate -L 1025M -n system dbvg Rounding up size to full physical extent 1.00 GB Logical volume "system" created [root@rac1 ~]# lvcreate -L 1025M -n sysaux dbvg Rounding up size to full physical extent 1.00 GB Logical volume "sysaux" created [root@rac1 ~]# lvcreate -L 1025M -n users dbvg Rounding up size to full physical extent 1.00 GB Logical volume "users" created [root@rac1 ~]# lvcreate -L 1025M -n temp dbvg Rounding up size to full physical extent 1.00 GB Logical volume "temp" created [root@rac1 ~]# lvcreate -L 1025M -n undotbs1 dbvg Rounding up size to full physical extent 1.00 GB Logical volume "undotbs1" created [root@rac1 ~]# lvcreate -L 1025M -n undotbs2 dbvg Rounding up size to full physical extent 1.00 GB Logical volume "undotbs2" created [root@rac1 ~]# lvcreate -L 101M -n control01 dbvg Rounding up size to full physical extent 104.00 MB Logical volume "control01" created [root@rac1 ~]# lvcreate -L 101M -n control02 dbvg Rounding up size to full physical extent 104.00 MB Logical volume "control02" created [root@rac1 ~]# lvcreate -L 201M -n redo01 dbvg Rounding up size to full physical extent 204.00 MB Logical volume "redo01" created [root@rac1 ~]# lvcreate -L 201M -n redo02 dbvg Rounding up size to full physical extent 204.00 MB Logical volume "redo02" created [root@rac1 ~]# lvcreate -L 201M -n redo03 dbvg Rounding up size to full physical extent 204.00 MB Logical volume "redo03" created [root@rac1 ~]# lvcreate -L 201M -n redo04 dbvg Rounding up size to full physical extent 204.00 MB Logical volume "redo04" created [root@rac1 ~]# lvcreate -L 201M -n redo05 dbvg Rounding up size to full physical extent 204.00 MB Logical volume "redo05" created [root@rac1 ~]# lvcreate -L 201M -n redo06 dbvg Rounding up size to full physical extent 204.00 MB Logical volume "redo06" created [root@rac1 ~]# lvcreate -L 201M -n redo07 dbvg Rounding up size to full physical extent 204.00 MB Logical volume "redo07" created [root@rac1 ~]# lvcreate -L 201M -n redo08 dbvg Rounding up size to full physical extent 204.00 MB Logical volume "redo08" created [root@rac1 ~]# lvcreate -L 201M -n redo09 dbvg Rounding up size to full physical extent 204.00 MB Logical volume "redo09" created [root@rac1 ~]# lvcreate -L 201M -n redo10 dbvg Rounding up size to full physical extent 204.00 MB Logical volume "redo10" created [root@rac1 ~]# lvcreate -L 201M -n redo11 dbvg Rounding up size to full physical extent 204.00 MB Logical volume "redo11" created [root@rac1 ~]# lvcreate -L 201M -n redo12 dbvg Rounding up size to full physical extent 204.00 MB Logical volume "redo12" created [root@rac1 ~]# lvcreate -L 201M -n spfile dbvg Rounding up size to full physical extent 204.00 MB Logical volume "spfile" created [root@rac1 ~]# lvcreate -L 101M -n pwdfile dbvg Rounding up size to full physical extent 104.00 MB Logical volume "pwdfile" created
생성된 볼륨 확인
lvdisplay
[root@rac1 ~]# lvdisplay --- Logical volume --- LV Name /dev/dbvg/system VG Name dbvg LV UUID CdfYL9-Qe28-jblO-VT1y-aani-VO7d-3Q4Crz LV Write Access read/write LV Status available # open 0 LV Size 1.00 GB Current LE 257 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:0 --- Logical volume --- LV Name /dev/dbvg/sysaux VG Name dbvg LV UUID g6ZGsE-ua0m-cs3v-JvwB-xQ6K-lWRt-KkjGUZ LV Write Access read/write LV Status available # open 0 LV Size 1.00 GB Current LE 257 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:1 --- Logical volume --- LV Name /dev/dbvg/users VG Name dbvg LV UUID v8lrCh-MzMJ-1A2e-sCM6-61q8-0X1z-JpSIj9 LV Write Access read/write LV Status available # open 0 LV Size 1.00 GB Current LE 257 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:2 --- Logical volume --- LV Name /dev/dbvg/temp VG Name dbvg LV UUID yz33st-nBN9-aVZu-BSjn-IFI2-9hvY-xH05uG LV Write Access read/write LV Status available # open 0 LV Size 704.00 MB Current LE 176 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:3 --- Logical volume --- LV Name /dev/dbvg/undotbs1 VG Name dbvg LV UUID xi6YkT-nFZn-TMfo-AGvK-nnsz-gRri-Yx8w78 LV Write Access read/write LV Status available # open 0 LV Size 1.00 GB Current LE 257 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:4 --- Logical volume --- LV Name /dev/dbvg/undotbs2 VG Name dbvg LV UUID cJ6Rn9-aiWk-vcq3-vYWu-dsp0-pw2m-IscOlH LV Write Access read/write LV Status available # open 0 LV Size 1.00 GB Current LE 257 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:5 --- Logical volume --- LV Name /dev/dbvg/control01 VG Name dbvg LV UUID a01FKP-S523-1YRK-eqvs-vIEN-q5HN-7gsnt8 LV Write Access read/write LV Status available # open 0 LV Size 104.00 MB Current LE 26 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:6 --- Logical volume --- LV Name /dev/dbvg/control02 VG Name dbvg LV UUID oznBcA-Bc2P-Xf41-0wSr-0Bzh-deu2-7tvHo2 LV Write Access read/write LV Status available # open 0 LV Size 104.00 MB Current LE 26 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:7 --- Logical volume --- LV Name /dev/dbvg/redo01 VG Name dbvg LV UUID mvghmt-I9Re-z7PI-2nbj-P3NF-54xy-BIk5QN LV Write Access read/write LV Status available # open 0 LV Size 204.00 MB Current LE 51 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:8 --- Logical volume --- LV Name /dev/dbvg/redo02 VG Name dbvg LV UUID 110Ehc-s1FM-UCYc-dI9Y-XrC6-VTtd-UC02H6 LV Write Access read/write LV Status available # open 0 LV Size 204.00 MB Current LE 51 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:9 --- Logical volume --- LV Name /dev/dbvg/redo03 VG Name dbvg LV UUID PclbE3-zqSy-aP21-EPaz-Egxe-Oiap-jdEkkP LV Write Access read/write LV Status available # open 0 LV Size 204.00 MB Current LE 51 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:10 --- Logical volume --- LV Name /dev/dbvg/redo04 VG Name dbvg LV UUID 4EW3UI-1V5A-ieEQ-z0An-4Dpx-A3A6-H3LGDF LV Write Access read/write LV Status available # open 0 LV Size 204.00 MB Current LE 51 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:11 --- Logical volume --- LV Name /dev/dbvg/redo05 VG Name dbvg LV UUID nUCuh6-j0Vm-ifv0-i3HG-d5BX-tJDr-o8Quj2 LV Write Access read/write LV Status available # open 0 LV Size 204.00 MB Current LE 51 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:12 --- Logical volume --- LV Name /dev/dbvg/redo06 VG Name dbvg LV UUID fmIuaV-vQzA-YDlp-cMAz-9sHd-d6aK-QH3jai LV Write Access read/write LV Status available # open 0 LV Size 204.00 MB Current LE 51 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:13 --- Logical volume --- LV Name /dev/dbvg/redo07 VG Name dbvg LV UUID K9YlB2-LcGU-C0Dm-APEW-KzLB-xGk1-F2z38B LV Write Access read/write LV Status available # open 0 LV Size 204.00 MB Current LE 51 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:14 --- Logical volume --- LV Name /dev/dbvg/redo08 VG Name dbvg LV UUID F0GMs5-2pzs-teTX-7cZU-vh5h-Tw0O-6agZdt LV Write Access read/write LV Status available # open 0 LV Size 204.00 MB Current LE 51 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:15 --- Logical volume --- LV Name /dev/dbvg/redo09 VG Name dbvg LV UUID Z4oIj3-B6uS-pc9G-zDmi-YZfA-e3pd-AGARDm LV Write Access read/write LV Status available # open 0 LV Size 204.00 MB Current LE 51 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:16 --- Logical volume --- LV Name /dev/dbvg/redo10 VG Name dbvg LV UUID FA8P1a-qIsj-rScY-Z8Cz-uKB0-BAjK-tBipef LV Write Access read/write LV Status available # open 0 LV Size 204.00 MB Current LE 51 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:17 --- Logical volume --- LV Name /dev/dbvg/redo11 VG Name dbvg LV UUID npBeWj-cmly-Cfwx-lbRV-LTOX-xjci-lcEScG LV Write Access read/write LV Status available # open 0 LV Size 204.00 MB Current LE 51 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:18 --- Logical volume --- LV Name /dev/dbvg/redo12 VG Name dbvg LV UUID da9QfL-0fAA-uKS0-bBP7-xreE-5gDM-TfWE2V LV Write Access read/write LV Status available # open 0 LV Size 204.00 MB Current LE 51 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:19 --- Logical volume --- LV Name /dev/dbvg/spfile VG Name dbvg LV UUID cUiF1t-D86N-vRTi-tpct-fhPd-khOo-bmXTxn LV Write Access read/write LV Status available # open 0 LV Size 204.00 MB Current LE 51 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:20 --- Logical volume --- LV Name /dev/dbvg/pwdfile VG Name dbvg LV UUID 9D21AC-Wzrh-F2G0-2wBA-Xrnw-v9rT-E4GN0z LV Write Access read/write LV Status available # open 0 LV Size 104.00 MB Current LE 26 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:21
vi /etc/sysconfig/rawdevices 로 raw device 등록
/dev/raw/raw1 /dev/sdb1 /dev/raw/raw2 /dev/sdc1 /dev/raw/raw3 /dev/sdd1 /dev/raw/raw4 /dev/sde1 /dev/raw/raw5 /dev/sdf1 /dev/raw/raw6 /dev/dbvg/system /dev/raw/raw7 /dev/dbvg/sysaux /dev/raw/raw8 /dev/dbvg/users /dev/raw/raw9 /dev/dbvg/temp /dev/raw/raw10 /dev/dbvg/undotbs1 /dev/raw/raw11 /dev/dbvg/undotbs2 /dev/raw/raw12 /dev/dbvg/control01 /dev/raw/raw13 /dev/dbvg/control02 /dev/raw/raw14 /dev/dbvg/redo01 /dev/raw/raw15 /dev/dbvg/redo02 /dev/raw/raw16 /dev/dbvg/redo03 /dev/raw/raw17 /dev/dbvg/redo04 /dev/raw/raw18 /dev/dbvg/redo05 /dev/raw/raw19 /dev/dbvg/redo06 /dev/raw/raw20 /dev/dbvg/redo07 /dev/raw/raw21 /dev/dbvg/redo08 /dev/raw/raw22 /dev/dbvg/redo09 /dev/raw/raw23 /dev/dbvg/redo10 /dev/raw/raw24 /dev/dbvg/redo11 /dev/raw/raw25 /dev/dbvg/redo12 /dev/raw/raw26 /dev/dbvg/spfile /dev/raw/raw27 /dev/dbvg/pwdfile
rawdevice 서비스 시작
service rawdevices start
[root@rac1 ~]# service rawdevices start Assigning devices: /dev/raw/raw1 --> /dev/sdb1 /dev/raw/raw1: bound to major 8, minor 17 /dev/raw/raw2 --> /dev/sdc1 /dev/raw/raw2: bound to major 8, minor 33 /dev/raw/raw3 --> /dev/sdd1 /dev/raw/raw3: bound to major 8, minor 49 /dev/raw/raw4 --> /dev/sde1 /dev/raw/raw4: bound to major 8, minor 65 /dev/raw/raw5 --> /dev/sdf1 /dev/raw/raw5: bound to major 8, minor 81 /dev/raw/raw6 --> /dev/dbvg/system /dev/raw/raw6: bound to major 253, minor 0 /dev/raw/raw7 --> /dev/dbvg/sysaux /dev/raw/raw7: bound to major 253, minor 1 /dev/raw/raw8 --> /dev/dbvg/users /dev/raw/raw8: bound to major 253, minor 2 /dev/raw/raw9 --> /dev/dbvg/temp /dev/raw/raw9: bound to major 253, minor 3 /dev/raw/raw10 --> /dev/dbvg/undotbs1 /dev/raw/raw10: bound to major 253, minor 4 /dev/raw/raw11 --> /dev/dbvg/undotbs2 /dev/raw/raw11: bound to major 253, minor 5 /dev/raw/raw12 --> /dev/dbvg/control01 /dev/raw/raw12: bound to major 253, minor 6 /dev/raw/raw13 --> /dev/dbvg/control02 /dev/raw/raw13: bound to major 253, minor 7 /dev/raw/raw14 --> /dev/dbvg/redo01 /dev/raw/raw14: bound to major 253, minor 8 /dev/raw/raw15 --> /dev/dbvg/redo02 /dev/raw/raw15: bound to major 253, minor 9 /dev/raw/raw16 --> /dev/dbvg/redo03 /dev/raw/raw16: bound to major 253, minor 10 /dev/raw/raw17 --> /dev/dbvg/redo04 /dev/raw/raw17: bound to major 253, minor 11 /dev/raw/raw18 --> /dev/dbvg/redo05 /dev/raw/raw18: bound to major 253, minor 12 /dev/raw/raw19 --> /dev/dbvg/redo06 /dev/raw/raw19: bound to major 253, minor 13 /dev/raw/raw20 --> /dev/dbvg/redo07 /dev/raw/raw20: bound to major 253, minor 14 /dev/raw/raw21 --> /dev/dbvg/redo08 /dev/raw/raw21: bound to major 253, minor 15 /dev/raw/raw22 --> /dev/dbvg/redo09 /dev/raw/raw22: bound to major 253, minor 16 /dev/raw/raw23 --> /dev/dbvg/redo10 /dev/raw/raw23: bound to major 253, minor 17 /dev/raw/raw24 --> /dev/dbvg/redo11 /dev/raw/raw24: bound to major 253, minor 18 /dev/raw/raw25 --> /dev/dbvg/redo12 /dev/raw/raw25: bound to major 253, minor 19 /dev/raw/raw26 --> /dev/dbvg/spfile /dev/raw/raw26: bound to major 253, minor 20 /dev/raw/raw27 --> /dev/dbvg/pwdfile /dev/raw/raw27: bound to major 253, minor 21 done
vi /etc/udev/permissions.d/50-udev.permissions 로 raw device 소유자, 권한 변경
:113 => 113번 줄로 이동 #raw/*:root:disk:0660 => 주석 처리 raw/*:oracle:dba:0660 => 밑 줄에 추가
#raw/*:root:disk:0660 raw/*:oracle:dba:0660
root 유저로 수행
cd /dev/raw ls -ltra
[root@rac1 ~]# cd /dev/raw [root@rac1 raw]# ls -ltra 합계 0 crw-rw---- 1 oracle dba 162, 1 3월 3 14:19 raw1 crw-rw---- 1 oracle dba 162, 2 3월 3 14:19 raw2 crw-rw---- 1 oracle dba 162, 3 3월 3 14:19 raw3 crw-rw---- 1 oracle dba 162, 4 3월 3 14:19 raw4 crw-rw---- 1 oracle dba 162, 5 3월 3 14:19 raw5 crw-rw---- 1 oracle dba 162, 6 3월 3 14:19 raw6 crw-rw---- 1 oracle dba 162, 7 3월 3 14:19 raw7 crw-rw---- 1 oracle dba 162, 8 3월 3 14:19 raw8 crw-rw---- 1 oracle dba 162, 10 3월 3 14:19 raw10 crw-rw---- 1 oracle dba 162, 11 3월 3 14:19 raw11 crw-rw---- 1 oracle dba 162, 12 3월 3 14:19 raw12 crw-rw---- 1 oracle dba 162, 13 3월 3 14:19 raw13 crw-rw---- 1 oracle dba 162, 9 3월 3 14:19 raw9 crw-rw---- 1 oracle dba 162, 15 3월 3 14:19 raw15 crw-rw---- 1 oracle dba 162, 16 3월 3 14:19 raw16 crw-rw---- 1 oracle dba 162, 17 3월 3 14:19 raw17 crw-rw---- 1 oracle dba 162, 18 3월 3 14:19 raw18 crw-rw---- 1 oracle dba 162, 19 3월 3 14:19 raw19 crw-rw---- 1 oracle dba 162, 14 3월 3 14:19 raw14 crw-rw---- 1 oracle dba 162, 20 3월 3 14:19 raw20 crw-rw---- 1 oracle dba 162, 22 3월 3 14:19 raw22 crw-rw---- 1 oracle dba 162, 23 3월 3 14:19 raw23 crw-rw---- 1 oracle dba 162, 24 3월 3 14:19 raw24 crw-rw---- 1 oracle dba 162, 25 3월 3 14:19 raw25 crw-rw---- 1 oracle dba 162, 26 3월 3 14:19 raw26 crw-rw---- 1 oracle dba 162, 21 3월 3 14:19 raw21 crw-rw---- 1 oracle dba 162, 27 3월 3 14:19 raw27 drwxr-xr-x 2 root root 580 3월 3 14:19 . drwxr-xr-x 11 root root 6620 3월 3 14:19 ..
{}