Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

25.2.2. FCP LUN을 영구적으로 활성화하기

앞에서 설명한 절차는 FCP LUN을 실행중인 시스템에서 동적으로 활성화하는 방법이었습니다. 하지만, 이러한 변경사항은 영구적이지 않고, 재부팅후 사라집니다. Linux상의 FCP 설정 변경을 영구적으로 저장하는 방법은 FCP LUN이 root 파일 시스템인지에 따라 달려있습니다. 만약 FCP LUN이 root 파일 시스템이라면, 부팅 과정의 앞부분에서 initramfs이 root 파일 시스템을 마운트할 수 있도록, DASD를 활성화해주어야만 합니다. cio_ignore는 영구적인 장치 설정을 투명하게 처리하며, 직접 장치를 무시 목록에서 제거할 필요가 없습니다.

25.2.2.1. root 파일 시스템의 일부인 FCP LUN

root 파일 시스템의 일부로 FCP LUN을 추가하기 위해 변경해야 하는 것은 /etc/zipl.conf 뿐입니다. 그 후, zipl 부트 로더 도구를 실행하십시오. 다시 initramfs를 생성시킬 필요가 없습니다.
Red Hat Enterprise Linux는 부팅 과정의 앞부분에서 FCP LUN을 활성화하기 위해 하나의 매개변수를 제공합니다: rd_ZFCP=. 값은 장치 버스 ID와 0x 접두사가 붙은 16진수 WWWPN, 그리고 0x 접두사가 붙고, 16자리 16진수를 만들기 위해 0이 채워넣어진 FCP LUN을 포함하는 콤마로 분리된 목록입니다.
다음 zipl.conf는 두개의 FCP LUN에 있는 물리 볼륨을 vg_devel1 LVM 볼륨 그룹으로 사용하고, 그 안에 논리 볼륨 lv_root를 root 파일시스템으로 사용하는 예입니다. 단순화하기 위해서 다음 예제는 멀티패스를 사용하지 않았습니다.
[defaultboot]
default=linux
target=/boot/
[linux]
image=/boot/vmlinuz-2.6.32-19.el6.s390x
ramdisk=/boot/initramfs-2.6.32-19.el6.s390x.img
parameters="root=/dev/mapper/vg_devel1-lv_root 
rd_ZFCP=0.0.fc00,0x5105074308c212e9,0x401040a000000000 
rd_ZFCP=0.0.fc00,0x5105074308c212e9,0x401040a100000000 
rd_LVM_LV=vg_devel1/lv_root rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 
SYSFONT=latarcyrheb-sun16 KEYTABLE=us cio_ignore=all,!0.0.0009"
다른 물리 볼륨을 장치 버스 ID가 0.0.fc00, WWPN이 0x5105074308c212e9, FCP LUN이 0x401040a300000000인 3번째 FCP LUN에 추가하기 위해서, 단지 rd_ZFCP=0.0.fc00,0x5105074308c212e9,0x401040a300000000zipl.conf에 있는 부트 커널 매개변수에 추가하십시오. 예를 들어:
[defaultboot]
default=linux
target=/boot/
[linux]
image=/boot/vmlinuz-2.6.32-19.el6.s390x
ramdisk=/boot/initramfs-2.6.32-19.el6.s390x.img
parameters="root=/dev/mapper/vg_devel1-lv_root 
rd_ZFCP=0.0.fc00,0x5105074308c212e9,0x401040a000000000 
rd_ZFCP=0.0.fc00,0x5105074308c212e9,0x401040a100000000 
rd_ZFCP=0.0.fc00,0x5105074308c212e9,0x401040a300000000
rd_LVM_LV=vg_devel1/lv_root rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 
SYSFONT=latarcyrheb-sun16 KEYTABLE=us cio_ignore=all,!0.0.0009"
zipl를 실행하여 다음 IPL시에 /etc/zipl.conf 변경 사항이 적용되도록 하십시오:
# zipl -V
Using config file '/etc/zipl.conf'
Target device information
Device..........................: 08:00
Partition.......................: 08:01
Device name.....................: sda
Device driver name..............: sd
Type............................: disk partition
Disk layout.....................: SCSI disk layout
Geometry - start................: 2048
File system block size..........: 4096
Physical block size.............: 512
Device size in physical blocks..: 10074112
Building bootmap in '/boot/'
Building menu 'rh-automatic-menu'
Adding #1: IPL section 'linux' (default)
kernel image......: /boot/vmlinuz-2.6.32-19.el6.s390x
kernel parmline...: 'root=/dev/mapper/vg_devel1-lv_root rd_ZFCP=0.0.fc00,0x5105074308c212e9,0x401040a000000000 rd_ZFCP=0.0.fc00,0x5105074308c212e9,0x401040a100000000 rd_ZFCP=0.0.fc00,0x5105074308c212e9,0x401040a300000000 rd_LVM_LV=vg_devel1/lv_root rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us cio_ignore=all,!0.0.0009'
initial ramdisk...: /boot/initramfs-2.6.32-19.el6.s390x.img
component address:
kernel image....: 0x00010000-0x007a21ff
parmline........: 0x00001000-0x000011ff
initial ramdisk.: 0x02000000-0x028f63ff
internal loader.: 0x0000a000-0x0000a3ff
Preparing boot device: sda.
Detected SCSI PCBIOS disk layout.
Writing SCSI master boot record.
Syncing disks...
Done.