Updating packages on SuSE 11

Updating Suse 11. Verify available repositories

root@suse11:~ # zypper repos
# | Alias | Name | Enabled | Refresh
–+————————————————–+————————————————–+———+——–
1 | SUSE-Linux-Enterprise-Server-11-SP3 11.3.3-1.138 | SUSE-Linux-Enterprise-Server-11-SP3 11.3.3-1.138 | Yes | No

Register the server if not registered

root@suse11:~ # suse_register -d 3 –r -a regcode-sles=1122A99C843798 -a email=emerson@setaoffice.com

If a server is registered with Suse, a lot more repositories are available

root@suse11:~ # zypper repos
# | Alias | Name | Enabled | Refresh
—+————————————————–+————————————————–+———+——–
1 | SUSE-Linux-Enterprise-Server-11-SP3 11.3.3-1.138 | SUSE-Linux-Enterprise-Server-11-SP3 11.3.3-1.138 | Yes | No
2 | nu_novell_com:SLE11-SP1-Debuginfo-Pool | SLE11-SP1-Debuginfo-Pool | No | Yes
3 | nu_novell_com:SLE11-SP1-Debuginfo-Updates | SLE11-SP1-Debuginfo-Updates | No | Yes
4 | nu_novell_com:SLE11-SP2-Debuginfo-Core | SLE11-SP2-Debuginfo-Core | No | Yes
5 | nu_novell_com:SLE11-SP2-Debuginfo-Updates | SLE11-SP2-Debuginfo-Updates | No | Yes
6 | nu_novell_com:SLE11-SP3-Debuginfo-Pool | SLE11-SP3-Debuginfo-Pool | No | Yes
7 | nu_novell_com:SLE11-SP3-Debuginfo-Updates | SLE11-SP3-Debuginfo-Updates | No | Yes
8 | nu_novell_com:SLE11-Security-Module | SLE11-Security-Module | No | Yes
9 | nu_novell_com:SLES11-Extras | SLES11-Extras | No | Yes
10 | nu_novell_com:SLES11-SP1-Pool | SLES11-SP1-Pool | No | Yes
11 | nu_novell_com:SLES11-SP1-Updates | SLES11-SP1-Updates | No | Yes
12 | nu_novell_com:SLES11-SP2-Core | SLES11-SP2-Core | No | Yes
13 | nu_novell_com:SLES11-SP2-Extension-Store | SLES11-SP2-Extension-Store | No | Yes
14 | nu_novell_com:SLES11-SP2-Updates | SLES11-SP2-Updates | No | Yes
15 | nu_novell_com:SLES11-SP3-Extension-Store | SLES11-SP3-Extension-Store | No | Yes
16 | nu_novell_com:SLES11-SP3-Pool | SLES11-SP3-Pool | Yes | Yes
17 | nu_novell_com:SLES11-SP3-Updates | SLES11-SP3-Updates | Yes | Yes

Listing all available updates

root@suse11:~ # zypper lu
Loading repository data…
Reading installed packages…
S | Repository | Name | Current Version | Available Version | Arch
–+——————–+———————————-+————————–+————————–+——-
v | SLES11-SP3-Updates | Mesa | 9.0.3-0.17.1 | 9.0.3-0.27.2 | x86_64
v | SLES11-SP3-Updates | Mesa-32bit | 9.0.3-0.17.1 | 9.0.3-0.27.2 | x86_64
v | SLES11-SP3-Updates | MozillaFirefox | 17.0.4esr-0.10.42 | 24.7.0esr-0.8.2 | x86_64

Upgrading a single package. In this case I’m updating ntp

root@suse11:~ # zypper up ntp
Loading repository data…
Reading installed packages…
Resolving package dependencies…

The following package is going to be upgraded:
ntp

1 package to upgrade.
Overall download size: 464.0 KiB. After the operation, additional 2.0 KiB will be used.
Continue? [y/n/?] (y): y
Retrieving package ntp-4.2.4p8-1.24.1.x86_64 (1/1), 464.0 KiB (1.6 MiB unpacked)
Retrieving delta: ./rpm/x86_64/ntp-4.2.4p8-1.22.1_1.24.1.x86_64.delta.rpm, 30.0 KiB
Retrieving: ntp-4.2.4p8-1.22.1_1.24.1.x86_64.delta.rpm [done]
Applying delta: ./ntp-4.2.4p8-1.22.1_1.24.1.x86_64.delta.rpm [done]
Installing: ntp-4.2.4p8-1.24.1 [done]
Additional rpm output:
warning: /etc/ntp.conf created as /etc/ntp.conf.rpmnew
Updating etc/sysconfig/ntp…
Updating etc/sysconfig/syslog…

Upgrade everything available

root@suse11:~ # zypper up
Loading repository data…
Reading installed packages…

The following NEW packages are going to be installed:
libtevent0-32bit python-m2crypto

The following packages are going to be upgraded:
Mesa Mesa-32bit MozillaFirefox MozillaFirefox-branding-SLED MozillaFirefox-translations a2ps aaa_base apparmor-docs apparmor-parser apparmor-utils augeas-lenses autofs autoyast2
autoyast2-installation bash bash-doc bind-libs bind-libs-32bit bind-utils binutils blktrace checkmedia coreutils coreutils-lang cpupower crash crash-sial cups cups-client cups-libs
cups-libs-32bit curl dbus-1 dbus-1-32bit dbus-1-x11 elilo ethtool facter fastjar file file-32bit fontconfig fontconfig-32bit glib2 glib2-lang glibc glibc-32bit glibc-devel glibc-i18ndata
glibc-locale glibc-locale-32bit gnome-power-manager gnome-power-manager-lang gnome-session gnome-session-lang gpg2 gpg2-lang grub gstreamer-0_10-plugins-good gstreamer-0_10-plugins-good-lang
gvfs gvfs-backends gvfs-fuse gvfs-lang hal hal-32bit hplip-hpijs hwinfo ipmitool iproute2 irqbalance kdump kernel-default kernel-default-base kernel-default-devel kernel-firmware kernel-source
kpartx krb5 krb5-32bit ksh lcms libMagickCore1 libapparmor1 libaugeas0 libblkid1 libblkid1-32bit libcurl4 libcurl4-32bit libdrm libdrm-32bit libfprint0 libfreebl3 libfreebl3-32bit libgcc_s1
libgcc_s1-32bit libgcrypt11 libgcrypt11-32bit libgio-2_0-0 libgio-2_0-0-32bit libglib-2_0-0 libglib-2_0-0-32bit libgmodule-2_0-0 libgmodule-2_0-0-32bit libgnutls26 libgnutls26-32bit
libgobject-2_0-0 libgobject-2_0-0-32bit libgomp1 libgthread-2_0-0 libgthread-2_0-0-32bit libgvfscommon0 liblcms1 liblcms1-32bit libldap-2_4-2 libldap-2_4-2-32bit libldb1 liblzo2-2
libmysqlclient_r15 libopenssl0_9_8 libopenssl0_9_8-32bit libpixman-1-0 libpixman-1-0-32bit libpng12-0 libpng12-0-32bit libpoppler-glib4 libpoppler5 libpulse-browse0 libpulse-mainloop-glib0
libpulse0 libpulse0-32bit libpython2_6-1_0 libpython2_6-1_0-32bit libqt4 libqt4-32bit libqt4-qt3support libqt4-qt3support-32bit libqt4-sql libqt4-sql-32bit libqt4-sql-mysql libqt4-x11
libqt4-x11-32bit libreadline5 libsmbclient0 libsmbclient0-32bit libsnmp15 libsoftokn3 libsoftokn3-32bit libstdc++6 libstdc++6-32bit libtalloc2 libtalloc2-32bit libtasn1 libtasn1-3
libtasn1-3-32bit libtdb1 libtdb1-32bit libtevent0 libtiff3 libtiff3-32bit libudev0 libudev0-32bit libuuid1 libuuid1-32bit libwbclient0 libwbclient0-32bit libxml2 libxml2-32bit libxml2-python
libxslt libxslt-32bit libzypp linux-kernel-headers logrotate lsscsi lvm2 mailx makedumpfile man-pages mcelog mdadm microcode_ctl mkinitrd mozilla-nspr mozilla-nspr-32bit mozilla-nss
mozilla-nss-32bit multipath-tools mutt nfs-client nfs-doc nscd ntp openldap2-client openssh openssh-askpass openssl openssl-certs pam pam-32bit pam-doc perl-Bootloader perl-apparmor
poppler-tools postfix pulseaudio pulseaudio-esound-compat pulseaudio-lang pulseaudio-module-x11 pulseaudio-utils puppet python python-base python-pywbem python-xml readline-doc
release-notes-sles rpcbind rsh ruby samba samba-32bit samba-client samba-client-32bit sblim-sfcb sg3_utils sles-admin_en-pdf sles-deployment_en-pdf sles-installquick_en-pdf sles-manuals_en
sles-security_en-pdf sles-storage_en-pdf sles-tuning_en-pdf snmp-mibs star sudo supportutils suse-build-key suseRegister tcsh timezone udev util-linux util-linux-lang uuid-runtime vino vino-lang
wget xinetd xkeyboard-config xorg-x11-Xvnc xorg-x11-driver-input xorg-x11-driver-video xorg-x11-libX11 xorg-x11-libX11-32bit xorg-x11-libXext xorg-x11-libXext-32bit xorg-x11-libXfixes
xorg-x11-libXfixes-32bit xorg-x11-libXp xorg-x11-libXp-32bit xorg-x11-libXrender xorg-x11-libXrender-32bit xorg-x11-libXt xorg-x11-libXt-32bit xorg-x11-libXv xorg-x11-libXv-32bit xorg-x11-libs
xorg-x11-libs-32bit xorg-x11-server xorg-x11-server-extra yast2 yast2-bootloader yast2-ldap-client yast2-network yast2-pkg-bindings yast2-samba-client yast2-slp-server yast2-sound yast2-storage
yast2-storage-lib yelp yelp-lang zsh zypper zypper-log

The following package needs additional customer contract to get support:
libmysqlclient_r15

286 packages to upgrade, 2 new.
Overall download size: 454.6 MiB. After the operation, additional 27.4 MiB will be used.

Enable NTP statistics

Edit file /etc/ntp.conf

#Enable NTP statistics
statsdir /var/log/ntpstats/
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable

Restart ntp service. If it shows the following message, the directory /var/log/ntpstats has wrong permissions

May 21 14:56:40 linux ntpd[11202]: can’t open /var/log/ntpstats/peerstats.20150521: Permission denied

ntpd is running under user ntp

root@linux:~ # ps -ef | grep ntp
ntp 31445 1 0 15:05 ? 00:00:00 ntpd -u ntp:ntp -p /var/run/ntpd.pid -g

Change the permission as needed

root@linux:~ # ls -ld /var/log/ntpstats
drwxr-xr-x 2 ntp ntp 4096 May 21 15:00 /var/log/ntpstats

Discover HMC information on AIX 5 and AIX 6

On AIX 5

emerson@aix5:~$ sudo lsrsrc IBM.ManagementServer
Resource Persistent Attributes for IBM.ManagementServer
resource 1:
Name = “201.20.130.3”
Hostname = “201.20.130.3”
ManagerType = “HMC”
LocalHostname = “201.20.130.147”
ClusterTM = “9078-160″
ClusterSNum = “”
ActivePeerDomain = “”
NodeNameList = {“aix5″}

On AIX 6

emerson@aix6:~$ lsrsrc IBM.MCP
Resource Persistent Attributes for IBM.MCP
resource 1:
MNName = “172.26.21.111”
NodeID = 2399330769087853952
KeyToken = “HMC2″
IPAddresses = {“172.26.21.120″}
ConnectivityNames = {“172.26.21.111″}
HMCName = “7042CR6*104BB9C”
HMCIPAddr = “172.26.21.120”
HMCAddIPs = “172.16.0.1”
HMCAddIPv6s = “”
ActivePeerDomain = “”
NodeNameList = {“aix6″}

sccli – Sun StorEdge 3000 Family Command Line Interface

Some examples of what you can do with sccli

root@solaris8:/ # sccli
Available devices:

1. /dev/rdsk/c4t216000C0FF89C9A5d0s2 [SUN StorEdge 3510 SN#09C9A5] (Primary)
2. /dev/rdsk/c4t256000C0FFC9CBB4d0s2 [SUN StorEdge 3510 SN#09CBB4] (Primary)

Please enter selection: 1

sccli> show logical-drives
LD LD-ID Size Assigned Type Disks Spare Failed Status
————————————————————————
ld0 716D7329 408.70GB Primary RAID1 11 0 1 Rebuilding
Write-Policy Default StripeSize 128KB

sccli> show disks
Ch Id Size Speed LD Status IDs Rev
—————————————————————————-
2(3) 32 68.37GB 200MB ld0 ONLINE FUJITSU MAW3073FCSUN72G 1303
S/N 000710B0LLG6
WWNN 500000E014CC09D0
2(3) 33 68.37GB 200MB ld0 ONLINE FUJITSU MAW3073FCSUN72G 1203
S/N 000613B0CJAU
WWNN 500000E011DD1100
2(3) 34 68.37GB 200MB ld0 ONLINE FUJITSU MAW3073FCSUN72G 1203
S/N 000613B0CJAY
WWNN 500000E011DD1130
2(3) 35 68.37GB 200MB ld0 ONLINE FUJITSU MAW3073FCSUN72G 1203
S/N 000613B0CJBF
WWNN 500000E011DD1230
2(3) 36 68.37GB 200MB ld0 ONLINE FUJITSU MAW3073FCSUN72G 1203
S/N 000613B0CJB0
WWNN 500000E011DD1140
2(3) 37 68.37GB 200MB ld0 REBUILD FUJITSU MAW3073FCSUN72G 1303
S/N 000710B0LJYG
WWNN 500000E014C882C0
2(3) 38 68.37GB 200MB ld0 ONLINE FUJITSU MAW3073FCSUN72G 1203
S/N 000614B0CU9N
WWNN 500000E011E1D5B0
2(3) 39 68.37GB 200MB ld0 ONLINE FUJITSU MAW3073FCSUN72G 1203
S/N 000613B0CJ9K
WWNN 500000E011DD06A0
2(3) 40 68.37GB 200MB ld0 ONLINE FUJITSU MAW3073FCSUN72G 1203
S/N 000613B0CJ9F
WWNN 500000E011DD0660
2(3) 41 68.37GB 200MB ld0 ONLINE FUJITSU MAW3073FCSUN72G 1203
S/N 000614B0CUB5
WWNN 500000E011E1D880
2(3) 42 68.37GB 200MB ld0 ONLINE FUJITSU MAW3073FCSUN72G 1203
S/N 000613B0CJ9H
WWNN 500000E011DD0680
2(3) 43 68.37GB 200MB ld0 ONLINE FUJITSU MAW3073FCSUN72G 1203
S/N 000614B0CUBC
WWNN 500000E011E1D8F0

Solaris Auditing facility on a Solaris 9 Brandz

Showing this message on /var/adm/messages file

Jan 22 11:45:01 solaris9brandz C0047233: [ID 702911 daemon.alert] audit failed to start because it cannot read or write the system’s audit state. This may be due to a configuration error. Must reboot to start auditing!

Apparently no problems in the file /etc/system

root@solaris9brandz:/ # grep audit /etc/system
set c2audit:audit_load = 1

Starting audit shows lots of error messages

root@solaris9brandz:/ # /etc/init.d/audit start
Starting BSM services.
auditconfig: auditon(2) failed.
auditconfig: error = Invalid argument(22)
auditconfig: auditon(2) failed.
auditconfig: error = Invalid argument(22)
auditconfig: auditon(2) failed.
auditconfig: error = Invalid argument(22)
auditconfig: auditon(2) failed.
auditconfig: error = Invalid argument(22)

Checking /etc/security/audit_control file doesn’t show any irregularities

root@solaris9brandz:/ # cat /etc/security/audit_control
#
# Copyright (c) 1988 by Sun Microsystems, Inc.
#
# ident “@(#)audit_control.txt 1.4 00/07/17 SMI”
#
dir:/audit
flags: lo,ad,ex
minfree: 20
naflags: lo,ad,ex

Checking System Administration Guide: Oracle Solaris 9 Containers
Shows Limitations Specific to solaris9 Branded Zones
The following limitations apply to solaris9 branded zones:

Solaris Auditing and Solaris Basic Security Module Auditing, described in bsmconv(1M) and auditon(2), are not supported. The audit subsystem will always appear to be disabled.

UXMON: Service /system/webconsole:console (java web console) status is maintenance.

Node : solaris10.setaoffice.com
Node Type : Sun SPARC (HTTPS)
Severity : minor
OM Server Time: 2015-05-11 19:47:56
Message : UXMON: Service /system/webconsole:console (java web console) status is maintenance.
Msg Group : OS
Application : svcsmon
Object : svcs
Event Type :
not_found

Instance Name :
not_found

Instruction : The svcsmon has detected solaris service status

Please, for details, browse the /var/opt/OV/log/OpC/svcs_mon.log
The configuration file uses to be /var/opt/OV/conf/OpC/svcs_mon.cfg

Verify the service status

root@solaris10:~ # svcs -xv svc:/system/webconsole:console
svc:/system/webconsole:console (java web console)
State: maintenance since Tue May 12 07:24:23 2015
Reason: Restarting too quickly.
See: http://sun.com/msg/SMF-8000-L5
See: man -M /usr/share/man -s 1M smcwebserver
See: /var/svc/log/system-webconsole:console.log
Impact: This service is not running.

After disabling the service, it is not completely disabled

root@solaris10:~ # svcs svc:/system/webconsole:console
STATE STIME FMRI
offline* 10:26:43 svc:/system/webconsole:console

Run this command as shown below and then run svcadm clear svc:/system/webconsole:console

root@solaris10:~ # /usr/share/webconsole/private/bin/wcremove -i console

Stopping console process…

Disabling console service…

Removing console instance configuration files…

root@solaris10:~ # svcadm clear svc:/system/webconsole:console

It shouldn’t be a problem anymore

root@solaris10:~ # svcs svc:/system/webconsole:console
STATE STIME FMRI
disabled 10:27:35 svc:/system/webconsole:console

If you still have problems, check the process of the svc-webconsole script and then kill it. First try to kill with kill and if it not works, use kill -9

root@solaris10:~ # ps -ef | grep web
root 15623 9 0 10:27:06 ? 0:00 /sbin/sh /lib/svc/method/svc-webconsole start
root 15646 15623 0 10:27:07 ? 0:00 /bin/sh /usr/share/webconsole/private/bin/sjwcx start -i console -u noaccess —
root 15649 15646 0 10:27:07 ? 0:03 /usr/java/bin/java -cp /usr/share/webconsole/private/lib/console_config.jar:/us

root@solaris10:~ # kill -9 15623

Check again. It should be disabled

root@solaris10:~ # svcs svc:/system/webconsole:console
STATE STIME FMRI
disabled 10:27:52 svc:/system/webconsole:console

How to configure VDSL2 modem to connect to Live TIM in Brazil

If you want to buy a modem to use with Live TIM in Brazil you need to make sure you’re buying a VDSL2 modem.

If you buy an ADSL2 or an ADSL2+ modem, it will not work.

You need the following information to make a connection in your modem

ATM Configuration

VPI(0-255):0
VCI(32-65535):41

PPPoE

PPP Username: guest
PPP Password: guest

Where to download (HP) fibreutils package?

You can get the fibreutils package on the ISO image for HP Service Pack for Proliant on hp/swpackages directory

root@linux:~ # rpm -qi fibreutils
Name : fibreutils Relocations: (not relocatable)
Version : 3.2 Vendor: Hewlett-Packard Company
Release : 3 Build Date: Wed 04 May 2011 11:34:14 PM BRT
Install Date: Fri 28 Oct 2011 06:42:26 PM BRST Build Host: localhost.localdomain
Group : Applications/System Source RPM: fibreutils-3.2-3.src.rpm
Size : 73160 License: Proprietary
Signature : (none)
Packager : Hewlett-Packard Company
URL : http://www.hp.com
Summary : Provides complimentary programs and scripts for HP supported fibre channel HBAs
Description :
This RPM has the following components:

* Miscellaneous scripts and programs to compliment HP supported FC drivers:

lssd
lssg
adapter_info
hp_rescan
scsi_info

root@linux:~ # lssd -h
Usage: /usr/bin/lssd [-w|l|c|h]

Prints all bound /dev/sd* devices

-w: print world wide node name of devices
-l: print inquiry page 0x83 UUID of devices
-c: print cached data instead of scanning
-h: print help message

root@linux:~ # lssg -h
Usage: /usr/bin/lssg [-w|l|c|h]

Prints all bound /dev/sd* devices

-w: print world wide node name of devices
-l: print inquiry page 0x83 UUID of devices
-c: print cached data instead of scanning
-h: print help message

root@linux:~ # adapter_info -h
NAME

adapter_info

DESCRIPTION

Prints information about Fibre Channel HBAs/CNAs.

OPTIONS

-d, –device – Prints all information for a specific SCSI host adapter
-h, –help – Prints this help message
-i, –versioninfo – Prints driver version information for all HBAs
-l, –luns – Prints the device information for all HBAs
-m, –model – Prints the HBA model for all HBAs
-p, –pciids – Prints the PCI IDs for all HBAs
-r, –remoteports – Prints the attached remote ports for all HBAs
-v, –verbose – Prints all information except device and LUN information

root@linux:~ # hp_rescan -h
NAME

hp_rescan

DESCRIPTION

Sends the rescan signal to all or selected Fibre Channel HBAs/CNAs.

OPTIONS

-a, –all – Rescan all Fibre Channel HBAs
-h, –help – Prints this help message
-i, –instance – Rescan a particular instance
-l, –list – List all supported Fibre Channel HBAs

root@linux:~ # scsi_info
syntax: scsi_info

UXMON: NTP Problems. Running on local time. Peer: 127.127.1.0 Cur. Offset: 0.000 Cur. Symbol: * Ref. ID: .LOCL.

Node : linux.setaoffice.com
Node Type : Intel/AMD x64(HTTPS)
Severity : minor
OM Server Time: 2015-03-24 19:54:33
Message : UXMON: NTP Problems. Running on local time. Peer: 127.127.1.0 Cur. Offset: 0.000 Cur. Symbol: * Ref. ID: .LOCL.
Msg Group : OS
Application : ntpmon
Object : ntpq
Event Type :
not_found

Instance Name :
not_found

Instruction : This message shows no valid peers

Please, contact with your UX expert

Please check /var/opt/OV/log/OpC/ntp_mon.log for more details

Checking /var/opt/OV/log/OpC/ntp_mon.log shows the following message:

Mon Mar 30 09:04:47 2015 : NTP Problems. Running on local time. Peer: 127.127.1.0 Cur. Offset: 0.000 Cur. Symbol: * Ref. ID: .LOCL.

Edit file /etc/ntp.conf to not use the local clock

root@linux:~ # vi /etc/ntp.conf
# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available.
#server 127.127.1.0 # local clock
#fudge 127.127.1.0 stratum 10

device-mapper: create ioctl failed: Device or resource busy

I was trying to create the device file partition but I was receiving an error message

root@linux:~ # kpartx -a /dev/mapper/mpathm
device-mapper: create ioctl failed: Device or resource busy
create/reload failed on mpathm1

The disk already had a partition. Let’s use dmsetup to see what we have

root@linux:~ # dmsetup ls | grep mpathm
mpathm-part1 (253, 38)
mpathm (253, 32)

We already have a mpathm partition registered so we need to remove

root@linux:~ # dmsetup remove mpathm-part1

Then retry

root@linux:~ # kpartx -a /dev/mapper/mpathm
root@linux:~ #

Follow

Get every new post delivered to your Inbox.

Join 3,063 other followers

%d bloggers like this: