RHEL6가 나오면서 부터 NUMA 지원 여부에 대해서 좀 더 강력해 지는듯 합니다.






LVM으로 구성된 파일 시스템에 대한 사이즈를 조정하려면 우선 모든 데이타에 대해서
안정하게 백업을 받아 놓으셔야 합니다.  모든 데이타가 정상적으로 백업이 되었다면, 아래의
절차대로 차분하게 Step by Step으로 진행하시면 됩니다.

/mnt 파일시스템 축소 명령어

# umount /mnt   ## 파일시스템 작업 전 unmounting

# e2fsck –f /dev/mapper/vg01-lvol01   ## 파일시스템 축소 작업 전, 파일시스템 체크

# resize2fs –f /dev/mapper/vg01-lvol01 70G   ## 파일시스템을 70G로 축소

# lvreduce –L -19G /dev/mapper/vg01-lvol01   ## lv  19G 축소

# lvs   ## lv 사이즈 확인

# mount /dev/mapper/vg01-lvol01 /mnt   ## 파일시스템 mount

# df   ## mount 및 사이즈 정상 확인

 

/TESTS 파일시스템 확장 명령어

# umount /TESTS   ## 파일시스템 작업 전 unmounting

# lvextend –L +40G /dev/mapper/vg01-lvol02   ## LV 40G 확장

# e2fsck –f /dev/mapper/vg01-lvol02   ## 파일시스템 확장 전, 파일시스템 체크

# resize2fs /dev/mapper/vg01-lvol02   ## 파일시스템 확장

# lvs   ## lv 사이즈 확인

# mount /dev/mapper/vg01-lvol02 /TESTS   ## 파일시스템 mount

# df   ## mount 및 사이즈 정상 확인


리눅스 운영체제 설치 완료 및 외장형 디스크를 연결한 후에 시스템을 재부팅을 하면 디스크의 순서가 
변경되서 올라오는 경우가 있습니다..(PCI로 연결된 이더넷도 순서가 변경되서 올라오죠 아마..ㅜㅜ)
시스템이 재부팅 되면 Disk의 PCI 버스등 여러가지 X86 아키텍쳐상 가장 먼저 전기신호를 받고 감지된 
디스크를 가장 우선순위에 두고 인식 하기 때문이겠죠, 관련해서 아래와 같이 디스크의 순서 즉 DISK Order에 대한 부분을 처리하는 Work Arround 입니다. 

문제

  • Originally the system has one local disk /dev/sda, then  connected with a new external storage (a storage array or a  fiber-channel or a SAS disk). After the system was booted up, the  internal disk on the server were changed to /dev/sdb while the external disks on the fiber storage were now /dev/sda.

  • How to control scsi device ordering during boot. For instance, having the local storage be mapped to sd names before the SAN storage. An example of this would /dev/sda being local and /dev/sdb being external.

  • scsi order discovery between local RAID and HBA Qlogic

  • Sometimes when we reboot a server which take part in cluster (and only this server currently), the boot hang because HBA Qlogic card is seen as scsi0 instead of local RAID and so no boot partition is available.

환경

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6
  • SAN/Storage

해결

  • There are various options that can help control individual device/path names:
  • Specify a module load order. For example: if you are using the modules ips and qla2200 for internal and external storage and wanted ips module to load first, we could add something similar to the lines below in /etc/modprobe.d/scsi-order.conf

install qla2200 { /sbin/modprobe ips; } ; /sbin/modprobe --first-time --ignore-install qla2200

  • Next it is important to rebuild your initramfs, which can be done by following the article below How do I rebuild the initial ramdisk image in Red Hat Enterprise Linux?.

  • Note: scsi-order.conf is a chosen name and can be changed to suit your needs.

  • Specify the module load ordering in the bootloader, in /boot/grub/grub.conf. The following arguments simply needed to be appended to the kernel line.

rdloaddriver=ips,qla2200

 [출처 : https://access.redhat.com/site/solutions/67778]

 [참고 : https://access.redhat.com/site/solutions/44389]

 [참고 : https://access.redhat.com/site/node/45626]

+ Recent posts