CentOS5.8 - Linux Integration Service3.4

CentOS5.8 - Linux Integration Service3.4 
相性わるいらしい

CentOS5.9 降に

また vhdx ext3 とだめらしい.vhd に

CentOS5.10というのがあったのでこれをinstall -- LISにこれ用のがない! - なくてもok?
mouse はおかしい
nicは入る(legacyでなくてもok)
時刻同期は?


■2014.08.19
CentOS5.10 を su2012(WinSrv2012)のHyperV に install


2.1 Sendmail のdisable設定 - OS install 時に off にしたようだが...

[root@z ~]# /etc/rc.d/init.d/sendmail stop
[root@z ~]# chkconfig sendmail off

2.2 Postfix direbootsable設定 - そもそも install していないようだが...

[root@z ~]# /etc/rc.d/init.d/postfix stop
[root@z ~]# chkconfig postfix off

2.3 Firewall disable 設定 - OS install 時に off にしたようだが...

[root@z ~]# /etc/rc.d/init.d/iptables stop
[root@z ~]# chkconfig iptables off   --- もいるかも.reboot 後に start してしまう

-------この間---------------------
yum install gcc

yum install kernel-devel

yum install compat-libstdc++-33

yum install compat-libstdc++-296

yum update

このあとrebootしたほうが吉

reboot
------------------------------

2.4 SELinux disable設定

[root@z ~]#nano /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted

2.5 FQDN設定
[root@z ~]#nano /etc/hosts


127.0.0.1 localhost.localdomain localhost
192.168.10.110 z.camp.local z   ← zimbraのFQDN


etc/sysconfig/network-scripts/ifcfg-eth0をテキスト・エディタで編集する。
gnome の tool で network 設定が吉


reboot

MXレコードの確認
[root@zimbra ~]#host -t mx zimbra.local
zimbra.local mail is handled by 10 zimbra.local.
(ここでは
[root@zimbra ~]#host -t mx camp.local
camp.local mail is handled by 10 z.camp.local.
)

Aレコードの確認 [root@zimbra ~]
#host -t a zimbra.local
zimbra.local has address 192.168.1.25

(ここでは
#host -t a z.camp.local
zimbra.local has address 192.168.10.110
)






# mkdir /mnt/cdrom        <- 初回のみ、適当なフォルダ名
# mount /dev/cdrom /mnt/cdrom

あらかじめ用意した zimbra5.iso を set

# mount /dev/cdrom /mnt/cdrom


# cp /mnt/cdrom/* /tmp –R


★backup
圧縮 -- (アクセス権など保ったまま root ならよさそうなものだが,gnome ではだめで,コマンドでoption switch がいる)
# tar zcvf zimbra.tar.gz zimbra/



Windows 共有にアクセス
startxでvisualにr
サーバー名 [su2012]C
フォルダ名 []
共有する場所 [ZimbraDatas]
フォルダ []
ユーザ名 [suzukiyadm]
ドメイン []
接続で使用する名前 []

■マウントするが吉
# mkdir /mnt/win
# mount -t cifs -o user=campman,password=camppass //192.168.10.172/z /mnt/win
(↓スペースの有無でエラーになる !
# mount -t cifs -o user=campman, password=camppass //192.168.10.172/z /mnt/win)
# cd /opt

cp /opt/zimbra.tar.gz /mnt/win -R


★restore
/opt/zimbra を消す
rm -r(f) zimbra
cp /mnt/win/zimbra.tar.gz /opt -R

解凍
# tar zxvf zimbra.tar.gz
# su zimbra
$ zmcontrol start
サービスを止めないでarchiveしているのでエラーがでやすい
$ zmcontrol stop
$ zmcontrol start




★★★★★★
Centos6 & Zimbra8
移行は?
認証どうする




■CentOS6 & Zimbra5 -> Zimbra8 ?
Cent OSに zimbra5 を instal しようとすると
fetchmail と libstdc++.so.5 がいるとしかられるので,まず,これ追加
たが,しかし,
Erroe: attempting to install i386 packages on a x86_64 OS.
zimbra5 の 64用あるのか?--ある ! (NETWORK edition なのでずっとは使えない)-- これを install -- でも error

■■CentOS5 -> CentOS6 & Zimbra5 -> Zimbra8 はどうだろ.
Zimbra8 が x64 用みたいなので,CentOS6 もx64,Upgrade される CentOS5 も x64 からでないと無理か
---

つぎ.これ !!!
CentOS5 x64 インストール

yum install gcc

yum install kernel-devel

yum install compat-libstdc++-33

yum install compat-libstdc++-296

yum install nc

yum update

このあとrebootしたほうが吉

2.1 Sendmail のdisable設定 - OS install 時に off にしたようだが...

[root@z ~]# /etc/rc.d/init.d/sendmail stop
[root@z ~]# chkconfig sendmail off

2.2 Postfix direbootsable設定 - そもそも install していないようだが...

[root@z ~]# /etc/rc.d/init.d/postfix stop
[root@z ~]# chkconfig postfix off

2.3 Firewall disable 設定 - OS install 時に off にしたようだが...

[root@z ~]# /etc/rc.d/init.d/iptables stop
[root@z ~]# chkconfig iptables off   --- もいるかも.reboot 後に start してしまう

2.4 SELinux disable設定

[root@z ~]#nano /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted

2.5 FQDN設定
[root@z ~]#nano /etc/hosts


127.0.0.1 localhost.localdomain localhost
192.168.10.112 z8.camp.local z   ← zimbraのFQDN


etc/sysconfig/network-scripts/ifcfg-eth0をテキスト・エディタで編集する。
gnome の tool で network 設定が吉


MXレコードの確認
[root@zimbra ~]#host -t mx zimbra.local
zimbra.local mail is handled by 10 zimbra.local.
(ここでは
[root@zimbra ~]#host -t mx camp.local
camp.local mail is handled by 10 z.camp.local.
)

Aレコードの確認 [root@zimbra ~]
#host -t a zimbra.local
zimbra.local has address 192.168.1.25

(ここでは
#host -t a z.camp.local
zimbra.local has address 192.168.10.110
)

マウントするが吉
# mkdir /mnt/win
# mount -t cifs -o user=campman,password=camppass //192.168.10.172/z /mnt/win
(↓スペースの有無でエラーになる !
# mount -t cifs -o user=campman, password=camppass //192.168.10.172/z /mnt/win)
# cd /tmp

cp /mnt/win/zcs... /tmp -R


tar xzvf zcs...










CentOS5 32bit に Zimbra5 32bit を install したものを
CentOS5 32bit のまま Zimbra6 32bit に upgrade -- この /opt/zimbra を backup
CentOS5 64bit に Zimbra6 64bit を install -- さきに backupした /opt/zimbra に restore
CentOS5->CentOS6 に upgrede & zimbra6 -> zimbra8 に upgrade
------こんなことしてられないなぁ!!!




■CentOS6 & Zimbra8 --- /opt/zimbra を copy すれば使える?

Zimbra は起動するが,/opt/zimbra を入れ替えても,そううまくは動かない...

CentOS 6.5 install
最初は legacy NIC でないと使えない
legacy でつないで yum update した後は 通常の virtualNIC が使える
[root@z ~]# /etc/rc.d/init.d/sendmail stop
[root@z ~]# chkconfig sendmail off

2.2 Postfix direbootsable設定 - そもそも install していないようだが...

[root@z ~]# /etc/rc.d/init.d/postfix stop
[root@z ~]# chkconfig postfix off

2.3 Firewall disable 設定 - OS install 時に off にしたようだが...

[root@z ~]# /etc/rc.d/init.d/iptables stop
[root@z ~]# chkconfig iptables off   --- もいるかも.reboot 後に start してしまう

-------この間---------------------
yum install gcc

yum install kernel-devel

yum install compat-libstdc++-33

yum install compat-libstdc++-296

yum install nc (--- zimbra8 ではこれがないと後々しかられる)

yum update

このあとrebootしたほうが吉

reboot
------------------------------
2.4 SELinux disable設定

[root@z ~]#nano /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted

2.5 FQDN設定
[root@z ~]#nano /etc/hosts


127.0.0.1 localhost.localdomain localhost
192.168.10.112 z8.camp.local z8   ← zimbraのFQDN


etc/sysconfig/network-scripts/ifcfg-eth0をテキスト・エディタで編集する。
gnome の tool で network 設定が吉


reboot

MXレコードの確認
[root@zimbra ~]#host -t mx zimbra.local
zimbra.local mail is handled by 10 zimbra.local.
(ここでは
[root@zimbra ~]#host -t mx camp.local
camp.local mail is handled by 10 z8.camp.local.
)

Aレコードの確認 [root@zimbra ~]
#host -t a zimbra.local
zimbra.local has address 192.168.1.25

(ここでは
#host -t a z8.camp.local
zimbra.local has address 192.168.10.112
)


Zimbra install していくと nc missing としかられる

★restore
/opt/zimbra を消す
rm -r(f) zimbra
windows から zimbra.tar.gz を/tmpに持ってきて
cp /tmp/zimbra.tar.gz /opt -R

解凍
# tar zxvf zimbra.tar.gz
# su zimbra
$ zmcontrol start


Zimbra は起動するが,/opt/zimbra を入れ替えても,そううまくは動かない...