• 検索結果がありません。

5 OS のインストール

5.3 Linux

5.3.3.3. アンインストール

kdumpの設定解除

kdumpの設定解除を実施する場合は、「iStorage ソフトウェア StoragePathSavior利用の手引(Linux編)」

の 付録F 「kdumpの設定および解除」を参照し、設定を実施してください。

SANブート環境の設定解除

本セクションの手順はRHEL6 とRHEL7 で異なります。RHEL6をご利用の場合は<SANブート環境の設定 解除(RHEL6)>をRHEL7をご利用の場合は<SANブート環境の設定解除(RHEL7)>を参照してください。

<SANブート環境の設定解除(RHEL6)>

RHEL6のSANブート環境にSPSを導入している場合は、SPSのアンインストール前に以下の手順を実施しま

す。

1 ルートデバイスがSPSのデバイスであることを確認します。

# mount

/dev/dda3 on / type ext3 (rw) none on /proc type proc (rw) none on /sys type sysfs (rw)

none on /dev/pts type devpts (rw,gid=5,mode=620) usbfs on /proc/bus/usb type usbfs (rw)

/dev/dda2 on /boot type ext3 (rw)

/dev/dda1 on /boot/efi type vfat (rw,umask=0077,shortname=winnt) none on /dev/shm type tmpfs (rw)

none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) ...

# cat /proc/swaps

Filename Type Size Used Priority /dev/ddb1 partition 1048544 0 42 ...

2 ルートデバイスの設定をSPSのSANブート環境設定前の状態に戻します。

# mv /etc/fstab.sps /etc/fstab

3 SPSのSANブート設定を無効にします。

# spsconfig -sanboot-cfg-del

4 SPSのドライバを組み込んだ起動RAMディスクを削除します。

# rm /boot/initramfs-sps.img 補足事項:

SPSのアンインストール手順となります。SPSのアップデート等の理由でSPSのアンインストールが必要となった場合に 実施してください。

# mv /boot/efi/EFI/redhat/grub.conf.sps /boot/efi/EFI/redhat/grub.conf

以上で、SPSのSANブート環境の設定解除は完了です。

次項の「SPSのアンインストール」のセクションに進んでください。

SANブート環境の設定解除(RHEL7)

RHEL7のSANブート環境にSPSを導入している場合は、SPSのアンインストール前に以下の手順を実施しま

す。

1 ルートデバイスがSPSのデバイスであることを確認します。

# mount

/dev/dda3 on / type xfs (rw) none on /proc type proc (rw) none on /sys type sysfs (rw)

none on /dev/pts type devpts (rw,gid=5,mode=620) usbfs on /proc/bus/usb type usbfs (rw)

/dev/dda2 on /boot type xfs (rw)

/dev/dda1 on /boot/efi type vfat (rw,umask=0077,shortname=winnt) none on /dev/shm type tmpfs (rw)

none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) ...

# cat /proc/swaps

Filename Type Size Used Priority /dev/ddb1 partition 1048544 0 42 ...

2 ルートデバイスの設定をSPSのSANブート環境設定前の状態に戻します。

# mv /etc/fstab.sps /etc/fstab

3 SPSのドライバを組み込んだ起動RAMディスクを削除します。

# rm /boot/initramfs-sps.img

日本電気株式会社 第17版 – 2015年1293

4 SPS導入時に設定したブートローダの設定を解除します。

① /etc/grub.d/40_customに追記した設定を削除します。

# vi /etc/grub.d/40_custom

#!/bin/sh

exec tail -n +3 $0

# This file provides an easy way to add custom menu entries. Simply type the

# menu entries you want to add after this comment. Be careful not to change

# the 'exec tail' line above.

menuentry 'Red Hat Enterprise Linux Server 7.1 (Maipo) with SPS, with Linux 3.10.0-229.el7.x86_64' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option

'gnulinux-3.10.0-229.el7.x86_64-advanced-0f7f3a1d-af8e-46b3-a242-cb2db0ce7de5' { load_video

set gfxpayload=keep insmod gzio

insmod xfs

if [ x$feature_platform_search_hint = xy ]; then

search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 ad97fc01-a524-4205-a2c7-bd5bd89509fd

else

search --no-floppy --fs-uuid --set=root ad97fc01-a524-4205-a2c7-bd5bd89509fd fi

linuxefi /vmlinuz-3.10.0-229.el7.x86_64 root=/dev/dda3 ro crashkernel=auto rhgb quiet crashkernel=128M

initrdefi /initramfs-sps.img }

② /etc/default/grubの設定を元に戻します。

# mv /etc/default/grub.sps /etc/default/grub

③ /boot/efi/EFI/redhat/grub.cfg を再作成します。

# grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg

以上で、SPSのSANブート環境の設定解除は完了です。

次項の「SPSのアンインストール」のセクションに進んでください。

導入時に設定した枠部を削除します。

SPSのアンインストール

SPSのアンインストールは、アンインストーラーを用いて、以下の手順で行います。

1 /opt/nec/sps/installer配下に移動します。

# cd /opt/nec/sps/installer

#

2 アンインストーラーを実行し、SPSをアンインストールします。

※ --silentオプションを指定しなかった場合は、OSの再起動は行いません。

その場合は手動で再起動を行ってください。

# sh uninstall.sh --silent

====== Precheck for SPS Installation / Uninstallation =======

Distribution : RedHat Architecture : x86_64 Kernel Version: Linux2.6

Kernel Details: 2.6.32-431.20.3.el6

--- The following packages will be uninstalled. --- driver : sps-driver-E-5.3.0-2.6.32.431.20.3.el6

utils : sps-utils-5.3.0-1.el6

=============================================================

sps Uninstall Completed...

#

Broadcast message from root (Thu Feb 25 14:38:01 2010):

The system is going DOWN for reboot in 1 minute!

#

3 アンインストールが正常に完了した場合、”sps Uninstall Completed”のメッセージ(網掛け部分)が出力 されます。このメッセージが出力されない場合は、アンインストールに失敗しているため、SPS for Linux インストールガイドの「付録D インストーラのエラーメッセージ」の内容に従って対処してください。

4 アンインストールが正常に完了した場合、1分後にシステムが再起動します。その後、OSが正常に起動 することを確認します。

日本電気株式会社 第17版 – 2015年1295

5 OS再起動後、ルートデバイスがSPSのデバイスでないことを確認します。

# mount

/dev/sda3 on / type ext3 (rw) none on /proc type proc (rw) none on /sys type sysfs (rw)

none on /dev/pts type devpts (rw,gid=5,mode=620) usbfs on /proc/bus/usb type usbfs (rw)

/dev/sda2 on /boot type ext3 (rw)

/dev/sda1 on /boot/efi type vfat (rw,umask=0077,shortname=winnt) none on /dev/shm type tmpfs (rw)

none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) ...

# cat /proc/swaps

Filename Type Size Used Priority /dev/sdb1 partition 1048544 0 42 ...

以上でSPSのアンインストールは完了です。