Posts Tagged solaris

Install Postfix on Solaris 11 in 15 mins

# Prepare compile environment
root@xxx:~/# cat /etc/release
Oracle Solaris 11.1 X86
root@xxx:~/# pkg install developer/gcc-45
root@xxx:~/# pkg install library/gnutls

# Disable sendmail
root@xxx:~/# svcadm disable svc:/network/smtp:sendmail

# get postfix from postfix sites
http://www.postfix.org/download.html

# Install postfix Read the rest of this entry »

,

No Comments

solaris 11, p2v in 3 steps

p2v is not a new feature. but i just tried it.

p2v is physical to virtual. which means you can migrate solaris from real HW to solaris zone.

1. create zone on solaris11.
Read the rest of this entry »

No Comments

Quick Ref for XSCF console

Final tips: man intro ; then man

List all domain
XSCF> showdomainstatus -a

Connect to a domain
XSCF> console -d domainhere

Forcely to connect a domain
XSCF> console -d domainhere -f

View an connected console
XSCF> console -d domainhere -r
Read the rest of this entry »

,

No Comments

(Sloved) lsof, unknown file system type (zfs)

Environment:
Solaris 10.
lsof version 4.77
root@solaris10:~# lsof |more
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
sched 0 root cwd unknown file system type (zfs), v_op: 0x60074 068940
init 1 root cwd unknown file system type (zfs), v_op: 0x60074 068940

Solution:
Install the latest lsof version
Read the rest of this entry »

No Comments

Solaris SVM usage step by step

Notes: need create svm env for Prod patch test. actually zfs is much convinent now. still the requirement issue. we can’t take advantage of zfs in Solaris 9/8

Step 1.
create VM with 2 drives. c0t0d0 & c0t1d0

Step 2.
Duet to hardware limit, we use x86, Install Solaris 10 with option 4. install with Text console. we install OS on one disk

Step 3.
Create SVM
Read the rest of this entry »

,

No Comments

Fix disabled dmp path

root # /etc/vx/bin/vxdisksetup -i EMC0_146
VxVM vxdisksetup ERROR V-5-2-3628 The dmpnode EMC0_146 is disabled.Can not
proceed with vxdisksetup.

root # vxdisk list EMC0_146
Device: EMC0_146
devicetag: EMC0_146
type: auto
flags: online error private autoconfig
errno: Device path not valid
Multipathing information:
numpaths: 2
c5t5006048449AE7F48d149s2 state=disabled
c6t5006048C49AE7F77d149s2 state=disabled

Read the rest of this entry »

,

No Comments

solaris: how to recover solaris 11 root password

boot net -s
boot cdrom -s, if it ask username: root/solaris or root/password.

on x86, you need edit grub and append -s on kernel line.

after login. mount /dev/dsk/cxtxdxsx /a

if you use zfs for /, then zfs import
zfs list
zfs set mountpoint=/a rpool/ROOT/solaris
zfs mount -f rpool/ROOT/solaris
then edit /etc/shadow
remove the password section, let it looks likes.
root::15356::::::

don’t forget to reset the mountpoint back
zfs set mountpoint=/ rpool/ROOT/solaris

reboot.

4 Comments

how to fix 'who -r' shows nothing

OS: Solaris 9.
Issue: who -r won’t give you the running level. so the pkgadd won’t work.
myhost1:~ root # who -r # shows no output

Solution:
check the /var/adm/utmpx, maybe the file has been corrupted
myhost1:~ root # cd /var/adm
myhost1:adm root # vi u1.log
# paste the following content.
system boot 0 2 0000 0000 1315335814 0 0 0 Tue Sep 6 20:03:34 2011
run-level 3 0 1 0063 0123 1315335839 0 0 0 Tue Sep 6 20:03:59 2011
rc2 s2 1262 8 0000 0000 1315335885 0 0 0 Tue Sep 6 20:04:45 2011
rc3 s3 3938 8 0000 0000 1315335915 0 0 0 Tue Sep 6 20:05:15 2011
Read the rest of this entry »

,

No Comments

how to fix ‘who -r’ shows nothing

OS: Solaris 9.
Issue: who -r won’t give you the running level. so the pkgadd won’t work.
myhost1:~ root # who -r # shows no output

Solution:
check the /var/adm/utmpx, maybe the file has been corrupted
myhost1:~ root # cd /var/adm
myhost1:adm root # vi u1.log
# paste the following content.
system boot 0 2 0000 0000 1315335814 0 0 0 Tue Sep 6 20:03:34 2011
run-level 3 0 1 0063 0123 1315335839 0 0 0 Tue Sep 6 20:03:59 2011
rc2 s2 1262 8 0000 0000 1315335885 0 0 0 Tue Sep 6 20:04:45 2011
rc3 s3 3938 8 0000 0000 1315335915 0 0 0 Tue Sep 6 20:05:15 2011
Read the rest of this entry »

,

No Comments

Solaris: Boot archive error or corrupt

Boot archive error or corrupt

A few weeks ago, I got a little problem with my solaris box, namely solaris won’t boot because the boot archive was corrupt, *sigh*. Anyway the boot archive in solaris 10 was contain kernel module and configuration file was needed for solaris to startup the system.

Error:

module /platform/i86pc/boot_archive error 3 bad or corrupt data while decompressing file

Workaround:

Boot up your solaris in “solaris failsafe mode”, next solaris image will mount with writeable mode on “/a” mount point

rm -f /a/platform/i86pc/boot_archive
bootadm update-archive -R /a
reboot

,

No Comments