Sun Cluster 3.0 U1 시스템 관리 안내서

8.3.4 캡슐화되지 않은 루트(/) 파일 시스템을 복원하는 방법(VERITAS Volume Manager)

이 절차를 사용하여 캡슐화되지 않은 루트(/) 파일 시스템을 노드에 복원하십시오. 복원하는 노드를 부트하면 안됩니다. 복원 절차를 수행하기 전에 클러스터가 문제 없이 실행되는지 확인하십시오.


주 -

장애가 발생한 디스크와 동일한 형식을 사용하여 새 디스크를 분할해야 하기 때문에 이 절차를 시작하기 전에 파티션 구조를 확인 하고 필요한 파일 시스템을 다시 만드십시오.


  1. 루트(/) 파일 시스템을 복원할 노드에서 장애가 발생한 디스크를 교체하십시오.

    서버와 함께 제공되는 문서에서 디스크를 교체하는 절차를 참조하십시오.

  2. 복원되고 있는 노드를 부트하십시오.

    • Solaris CD-ROM을 사용할 경우에는 다음 명령을 실행하십시오.


      ok boot cdrom -s
      

    • JumpStart 서버를 사용하는 경우에는 다음 명령을 실행하십시오.


      ok boot net -s
      

  3. format(1M) 명령을 사용하여 루트 디스크에 모든 파티션과 스왑 공간을 만드십시오.

    장애가 발생한 디스크와 동일한 파티션 구조를 다시 만드십시오.

  4. newfs(1M) 명령을 사용하여 루트(/) 파일 시스템과 필요한 다른 파일 시스템을 만드십시오.

    장애가 발생한 디스크와 동일한 파일 시스템을 다시 만드십시오.


    주 -

    /global/.devices/node@nodeid 파일 시스템을 만들어야 합니다.


  5. 임시 마운트 포인트에 루트(/) 파일 시스템을 마운트하십시오.


    # mount device temp-mount-point
    

  6. 백업에서 루트(/) 파일 시스템을 복원하고 파일 시스템 마운트를 해제한 다음 확인하십시오.


    # cd temp-mount-point
    # ufsrestore rvf dump-device
    # rm restoresymtable
    # cd /
    # umount temp-mount-point
    # fsck raw-disk-device
    

    이제 파일 시스템이 복원되었습니다.

  7. 새 디스크에 새 부트 블록을 설치하십시오.


    # /usr/sbin/installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk raw-disk-device
    

  8. 단일 사용자 모드로 노드를 다시 부트하십시오.

    1. 다시 부트하십시오.


      # reboot -- "-s"

      이 부트 중에 다음과 같은 명령으로 끝나는 오류 또는 경고 메시지가 나타날 수 있습니다.


      Type control-d to proceed with normal startup,
      (or give root password for system maintenance):

    2. 루트 암호를 입력하십시오.

  9. 루트 디스크 그룹이 루트 디스크의 단일 슬라이스에 있는지 확인하십시오.

    • 그러면 루트 디스크 그룹을 만들고 설정하십시오.


      # vxdctl init
      # vxdg init rootdg
      # vxdctl add disk diskslice type=simple
      # vxdisk -f init disk type=simple
      # vxdg adddisk diskslice
      # vxdctl enable
      

    • 아니면 단계 10으로 이동하십시오.

  10. scdidadm 명령을 사용하여 디스크 ID를 갱신하십시오.


    # scdidadm -R /dev/rdsk/disk-device
    

  11. CTRL-d를 눌러 복수 사용자 모드로 다시 시작하십시오.

    노드가 클러스터 모드로 다시 부트됩니다. 이제 클러스터를 사용할 준비가 되었습니다.

8.3.4.1 예: 캡슐화되지 않은 루트(/) 파일 시스템 복원(VERITAS Volume Manager)

다음 예는 테이프 장치 /dev/rmt/0 에서 노드 phys-schost-1로 캡슐화되지 않은 루트 (/) 파일 시스템을 복원하는 예입니다.


[Replace the failed disk and boot the node:]
ok boot cdrom -s
[Use format and newfs to create partitions and file systems]
[Mount the root file system on a temporary mount point:]
# mount /dev/dsk/c0t0d0s0 /a
[Restore the root file system:]
# cd /a
# ufsrestore rvf /dev/rmt/0
# rm restoresymtable
# cd /
# umount /a
# fsck /dev/rdsk/c0t0d0s0
[Install a new boot block:]
# /usr/sbin/installboot /usr/platform/`uname \
-i`/lib/fs/ufs/bootblk /dev/rdsk/c0t0d0s0
[Reboot in single-user mode:]
# reboot -- "-s"
[If the root disk group is on a single slice on the root disk,create the new root disk group:]
# vxdctl init
# vxdg init rootdg
# vxdctl add disk c0t0d0s4 type=simple
# vxdisk -f init c0t0d0s4 type=simple
# vxdg adddisk c0t0d0s4
# vxdctl enable
[Update the disk ID:]
# scdidadm -R /dev/rdsk/c0t0d0
[Press CTRL-d to resume in multiuser mode]