Advertisements

Tag Archives: mount

Updating Suse Linux 11 to Suse Linux SP2 using ISO image

Create a directory to mount the ISO image and then mount it

suse11:/var/tmp # mkdir /root/iso

suse11:/var/tmp # mount -o loop /var/tmp/SLES-11-SP2-DVD-x86_64-GM-DVD1.iso /root/iso/

suse11:/var/tmp # df -h /root/iso
Filesystem Size Used Avail Use% Mounted on
/dev/loop0 3.1G 3.1G 0 100% /root/iso

Add the directory as a new repository. In the example below, I’m calling my repository Suse11SP2

suse11:/var/tmp # zypper ar /root/iso/ Suse11SP2
Adding repository ‘Suse11SP2’ [done]
Repository ‘Suse11SP2’ successfully added
Enabled: Yes
Autorefresh: No
URI: dir:///root/iso

Refresh the repository

suse11:/var/tmp # zypper ref
Retrieving repository ‘Suse11SP2’ metadata [done]
Building repository ‘Suse11SP2’ cache [done]
All repositories have been refreshed.

List the repositories

suse11:/var/tmp # zypper ls
# | Alias | Name | Enabled | Refresh | Type
–+————————————–+————————————–+———+———+——
1 | SUSE-Linux-Enterprise-Server-11 11-0 | SUSE-Linux-Enterprise-Server-11 11-0 | Yes | No | yast2
2 | Suse11SP2 | Suse11SP2 | Yes | No | yast2

Upgrading my system with repository called Suse11SP2

suse11:/var/tmp # zypper dup -r Suse11SP2
Loading repository data…
Reading installed packages…
Computing distribution upgrade…

The following packages are going to be upgraded:
ConsoleKit ConsoleKit-32bit ConsoleKit-x11 Mesa Mesa-32bit MozillaFirefox
MozillaFirefox-branding-SLED MozillaFirefox-translations NetworkManager-glib
OpenEXR OpenIPMI PolicyKit PolicyKit-32bit PolicyKit-doc PolicyKit-gnome
PolicyKit-gnome-libs PolicyKit-gnome-libs-32bit SuSEfirewall2 a2ps aaa_base acl acpid
akonadi-runtime alsa alsa-plugins alsa-plugins-pulse apparmor-admin_en apparmor-docs
apparmor-parser apparmor-profiles apparmor-utils at at-spi at-spi-32bit at-spi-lang
atk atk-lang audiofile audiofile-32bit audit audit-audispd-plugins audit-libs
audit-libs-32bit audit-libs-python autofs autoyast2 autoyast2-installation bash
bash-doc bind-libs bind-libs-32bit bind-utils binutils blktrace bluez bootsplash
branding-SLES bzip2 cairo cairo-32bit cdparanoia cdrkit-cdrtools-compat
cmpi-bindings-pywbem command-not-found coreutils coreutils-lang cpio cpio-lang cpp43
cracklib cracklib-32bit crash crash-sial cron cryptconfig cryptconfig-32bit cryptsetup
cups cups-autoconfig cups-client cups-libs cups-libs-32bit curl cyrus-sasl
cyrus-sasl-32bit cyrus-sasl-crammd5 cyrus-sasl-digestmd5 cyrus-sasl-gssapi
cyrus-sasl-gssapi-32bit cyrus-sasl-plain cyrus-sasl-plain-32bit dasher dasher-lang
dbus-1 dbus-1-32bit dbus-1-glib dbus-1-glib-32bit dbus-1-python dbus-1-qt3 dbus-1-x11
dejavu delayacct-utils desktop-data-SLED desktop-data-SLES-extra-gnome
desktop-translations device-mapper device-mapper-32bit dhcpcd dialog diffutils dmapi
dmraid dos2unix dosfstools e2fsprogs ed efibootmgr eject elfutils elilo emacs emacs-info
emacs-x11 enscript eog eog-lang ethtool evince evince-lang evolution-data-server
evolution-data-server-32bit evolution-data-server-lang expat expect file file-32bit
file-roller file-roller-lang filesystem findutils foomatic-filters freetype2
freetype2-32bit fuse gawk gcalctool gcalctool-lang gcc43 gcc43-32bit gcc43-c++
gcc43-info gcc43-locale gconf-editor gconf-editor-lang gconf2 gconf2-32bit
gconf2-branding-SLES gconf2-lang gdb gdm gdm-branding-upstream gdm-lang gedit
gedit-lang genisoimage gfxboot gfxboot-branding-SLES ghostscript-fonts-other
ghostscript-fonts-std ghostscript-library ghostscript-omni ghostscript-x11 glib2
glib2-lang glibc glibc-32bit glibc-devel glibc-devel-32bit glibc-i18ndata glibc-info
glibc-locale glibc-locale-32bit glibmm2 gmime gnokii gnome-applets gnome-applets-lang
gnome-control-center gnome-control-center-lang gnome-desktop gnome-desktop-lang
gnome-doc-utils gnome-icon-theme gnome-keyring gnome-keyring-32bit
gnome-keyring-lang gnome-mag gnome-mag-lang gnome-main-menu gnome-main-menu-lang
gnome-media gnome-media-lang gnome-menus gnome-menus-editor gnome-menus-lang
gnome-mime-data gnome-mount gnome-mount-lang gnome-nettool gnome-nettool-lang
gnome-panel gnome-panel-32bit gnome-panel-lang gnome-power-manager
gnome-power-manager-lang gnome-python-desktop gnome-screensaver
gnome-screensaver-lang gnome-session gnome-session-lang gnome-settings-daemon
gnome-settings-daemon-lang gnome-speech gnome-system-monitor
gnome-system-monitor-lang gnome-terminal gnome-terminal-lang gnome-themes
gnome-utils gnome-utils-lang gnome-vfs2 gnome-vfs2-32bit gnome-vfs2-lang gok gok-lang
gpg2 gpg2-lang grep groff grub gstreamer-0_10 gstreamer-0_10-lang
gstreamer-0_10-plugins-base gstreamer-0_10-plugins-base-lang
gstreamer-0_10-plugins-good gstreamer-0_10-plugins-good-lang gtk2 gtk2-32bit
gtk2-lang gtk2-theme-SLED gtkmm2 gtksourceview-lang gucharmap gucharmap-lang gvfs
gvfs-backends gvfs-fuse gvfs-lang gzip hal hal-32bit hdparm hplip hplip-hpijs hwinfo
icedax input-utils insserv inst-source-utils ipmitool iproute2 iptables iputils
irqbalance ivman java-1_6_0-ibm java-1_6_0-ibm-fonts java-1_6_0-ibm-jdbc k3b k3b-lang
kbd kde-susetranslations kde4-filesystem kde4-kgreeter-plugins kde4-kupdateapplet
kdebase4 kdebase4-SLED kdebase4-SLED-lang kdebase4-libkonq kdebase4-runtime
kdebase4-session kdebase4-wallpapers kdebase4-workspace
kdebase4-workspace-branding-SLED kdebase4-workspace-ksysguardd kdelibs3
kdelibs3-default-style kdelibs4 kdelibs4-core kdenetwork4-filesharing kdepim4
kdepim4-wizards kdepimlibs4 kdump kernel-default kernel-default-base kernel-source
kexec-tools klogd kpartx krb5 krb5-32bit ksh lcms libHX13 libHX13-32bit libMagickCore1
libQtWebKit4 libacl libacl-32bit libaio libaio-32bit libaio-devel libaio-devel-32bit
libakonadi4 libakonadiprotocolinternals1 libapparmor1 libart_lgpl libart_lgpl-32bit
libasm1 libasound2 libasound2-32bit libatk-1_0-0 libatk-1_0-0-32bit libavahi-client3
libavahi-client3-32bit libavahi-common3 libavahi-common3-32bit libavahi-glib1
libavahi-glib1-32bit libblkid1 libbluetooth3 libbonobo libbonobo-32bit
libbonobo-lang libbonoboui libbonoboui-32bit libbonoboui-lang libbz2-1
libbz2-1-32bit libcanberra-gtk libcanberra-gtk-32bit libcanberra-gtk0
libcanberra-gtk0-32bit libcanberra0 libcanberra0-32bit libcap2 libcap2-32bit
libcom_err2 libcom_err2-32bit libcryptsetup0 libcurl4 libcurl4-32bit libdns_sd libdrm
libdrm-32bit libdw1 libebl1 libelf0 libelf1 libesd0 libesd0-32bit libesmtp libexpat1
libexpat1-32bit libext2fs2 libfprint0 libfuse2 libgcrypt11 libgcrypt11-32bit
libgimpprint libgio-2_0-0 libgio-2_0-0-32bit libglade2 libglade2-32bit libglib-2_0-0
libglib-2_0-0-32bit libgmime-2_0-3 libgmodule-2_0-0 libgmodule-2_0-0-32bit libgnome
libgnome-32bit libgnome-lang libgnome-menu2 libgnome-menu2-32bit libgnomecanvas
libgnomecanvas-32bit libgnomecanvas-lang libgnomekbd libgnomekbd-lang libgnomeprint
libgnomeprint-lang libgnomeprintui libgnomeprintui-lang libgnomesu libgnomesu-lang
libgnomesu0 libgnomeui libgnomeui-32bit libgnomeui-lang libgnutls26
libgnutls26-32bit libgobject-2_0-0 libgobject-2_0-0-32bit libgpg-error0
libgpg-error0-32bit libgphoto2 libgphoto2-lang libgssglue1 libgstinterfaces-0_10-0
libgstreamer-0_10-0 libgstreamer-0_10-0-32bit libgthread-2_0-0
libgthread-2_0-0-32bit libgtksourceview-2_0-0 libgtop libgtop-2_0-7 libgtop-lang
libgvfscommon0 libgweather libgweather-lang libgweather1 libgweather1-32bit libical0
libicu libidl libidl-32bit libjasper libjasper-32bit libkde4 libkdecore4 libkdepim4
libkdepimlibs4 libkonq5 liblcms1 liblcms1-32bit libldap-2_4-2 libldap-2_4-2-32bit
libldapcpp1 libltdl7 libltdl7-32bit libmysqlclient15 libmysqlclient_r15 libnetpbm10
libnetpbm10-32bit libnotify libnotify1 libnuma1 libopensc2 libopensc2-32bit
libopenssl0_9_8 libopenssl0_9_8-32bit libpangomm-1_4-1 libpcap0 libphonon4
libpng12-0 libpng12-0-32bit libpoppler-glib4 libpoppler-qt4-3 libpulse0
libpulse0-32bit libpython2_6-1_0 libqca2 libqimageblitz4 libqt4 libqt4-32bit
libqt4-qt3support libqt4-sql libqt4-sql-32bit libqt4-sql-mysql libqt4-x11
libqt4-x11-32bit libreadline5 librsvg librsvg-32bit libselinux1 libselinux1-32bit
libsensors4 libsepol1 libsepol1-32bit libsmbclient0 libsmbclient0-32bit libsmbios2
libsndfile libsnmp15 libsoprano4 libsoup-2_4-1 libsoup-2_4-1-32bit libsqlite3-0
libsqlite3-0-32bit libssh2-1 libstdc++43-devel libstdc++43-devel-32bit libstrigi0
libtasn1 libtasn1-3 libtdb1 libtdb1-32bit libtheora0 libtiff3 libtiff3-32bit libtirpc1
libtool libtool-32bit libusb-0_1-4 libuuid1 libuuid1-32bit libvorbis libvorbis-32bit
libwbclient0 libwbclient0-32bit libwnck libwnck-1-22 libwnck-1-22-32bit libwnck-lang
libwsman1 libxcrypt libxcrypt-32bit libxml2 libxml2-32bit libxml2-python libzip1
libzypp limal limal-ca-mgm limal-ca-mgm-perl limal-nfs-server limal-nfs-server-perl
limal-perl linux-kernel-headers login logrotate lsb lsof lsscsi lvm2 makedumpfile
man-pages mcelog mdadm metacity metacity-lang microcode_ctl mkinitrd module-init-tools
mozilla-nspr mozilla-nspr-32bit mozilla-nss mozilla-nss-32bit multipath-tools mutt
mysql mysql-client nautilus nautilus-32bit nautilus-cd-burner
nautilus-cd-burner-32bit nautilus-cd-burner-lang nautilus-lang
nautilus-open-terminal nautilus-open-terminal-lang nautilus-share
nautilus-share-lang net-tools netcfg netpbm nfs-client nfs-doc notification-daemon
notification-daemon-lang nscd ntp numactl openldap2 openldap2-client opensc
opensc-32bit openslp openslp-32bit openslp-server openssh openssh-askpass openssl
openssl-certs openwsman-client openwsman-server opie opie-32bit orarun orbit2
orbit2-32bit oxygen-icon-theme oxygen-icon-theme-scalable pam pam-32bit pam-config
pam-doc pam-modules pam-modules-32bit pam_mount pam_mount-32bit pango pango-32bit
parted parted-32bit patch pciutils pciutils-32bit pciutils-ids pcsc-lite
pcsc-lite-32bit perl perl-32bit perl-Bootloader perl-Crypt-SSLeay perl-HTML-Parser
perl-IO-Socket-SSL perl-base perl-doc perl-libwww-perl perl-satsolver
perl-spamassassin permissions phonon phonon-backend-gstreamer-0_10 pinentry
pinentry-qt plasma-theme-aya pm-profiler pm-utils pmtools poppler-data poppler-tools
popt popt-32bit postfix ppp procmail procps psmisc pulseaudio pulseaudio-esound-compat
pwdutils pwdutils-plugin-audit python python-base python-gnome-menus python-gobject2
python-gtk python-notify python-qt4 python-satsolver python-sip python-xml pyxml quota
rarian readline-doc release-notes-sles rpm rpm-32bit rpm-python rsh rsvg-view rsync
samba samba-32bit samba-client sane-backends sash satsolver-tools sax2 sax2-gui
sax2-ident sax2-libsax sax2-libsax-perl sax2-tools sblim-cmpi-base sblim-sfcb
sblim-sfcc sblim-wbemcli scout screen sg3_utils shared-mime-info sles-admin_en-pdf
sles-deployment_en-pdf sles-installquick_en-pdf sles-manuals_en sles-release
sles-release-DVD sles-security_en-pdf sles-storage_en-pdf smartmontools
smis-providers snmp-mibs soprano soprano-backend-redland spamassassin sqlite3 star
strace strace-32bit sudo supportutils suse-build-key suse-sam suseRegister suspend
sysconfig sysfsutils sysfsutils-32bit syslinux syslog-ng sysstat sysstat-isag
system-config-printer system-config-printer-lang sysvinit t1lib tango-icon-theme tar
tcsh tightvnc timezone timezone-java tk tk-32bit totem-pl-parser totem-pl-parser-lang
udev ulimit unzip usbutils utempter utempter-32bit util-linux util-linux-lang
uuid-runtime vim vim-base vim-data vino vino-lang vlan vsftpd vte vte-doc vte-lang w3m wget
wireless-tools wodim x86info xfsprogs xinetd xkeyboard-config xlockmore xorg-x11
xorg-x11-Xvnc xorg-x11-driver-input xorg-x11-driver-video
xorg-x11-driver-video-radeonhd xorg-x11-driver-video-unichrome xorg-x11-libX11
xorg-x11-libX11-32bit xorg-x11-libXext xorg-x11-libXext-32bit xorg-x11-libs
xorg-x11-libs-32bit xorg-x11-libxcb xorg-x11-libxcb-32bit xorg-x11-server
xorg-x11-server-extra xorg-x11-xauth xscreensaver yast2 yast2-add-on
yast2-add-on-creator yast2-apparmor yast2-audit-laf yast2-autofs yast2-backup
yast2-bootloader yast2-ca-management yast2-control-center
yast2-control-center-gnome yast2-control-center-qt yast2-core yast2-country
yast2-country-data yast2-dhcp-server yast2-dirinstall yast2-dns-server
yast2-fingerprint-reader yast2-firewall yast2-ftp-server yast2-hardware-detection
yast2-http-server yast2-installation yast2-instserver yast2-irda yast2-iscsi-client
yast2-iscsi-server yast2-isns yast2-kdump yast2-kerberos-client
yast2-kerberos-server yast2-ldap yast2-ldap-client yast2-ldap-server yast2-libyui
yast2-mail yast2-mail-plugins yast2-ncurses yast2-ncurses-pkg yast2-network
yast2-nfs-client yast2-nfs-common yast2-nfs-server yast2-nis-client
yast2-ntp-client yast2-online-update yast2-online-update-frontend yast2-packager
yast2-pam yast2-perl-bindings yast2-pkg-bindings yast2-power-management
yast2-printer yast2-profile-manager yast2-python-bindings yast2-qt yast2-qt-pkg
yast2-registration yast2-registration-branding-SLE yast2-repair yast2-restore
yast2-runlevel yast2-samba-client yast2-samba-server yast2-schema yast2-security
yast2-slp-server yast2-sound yast2-squid yast2-storage yast2-storage-lib
yast2-support yast2-theme-SLE yast2-trans-en_US yast2-transfer yast2-update
yast2-users yast2-vm yast2-wagon yast2-x11 yast2-ycp-ui-bindings yelp yelp-lang
yp-tools zenity zenity-lang zip zypper

The following product is going to be upgraded:
SUSE_SLES

The following NEW packages are going to be installed:
PackageKit PackageKit-lang akregator ark augeas-lenses blt brasero brasero-lang
bridge-utils cifs-utils dolphin gnome-doc-utils-lang gwenview haveged kaddressbook
kalarm kcalc kde4-kupdateapplet-packagekit kdebase4-runtime-branding-SLED
kdelibs4-branding-SLED kdepasswd kdepim4-runtime kdessh kdialog kdm kdm-branding-SLED
keditbookmarks kernel-default-devel kernel-firmware kfind kfloppy kgpg kio_sysinfo
kio_sysinfo-branding-SLED kiosktool kmail kmix knotes konqueror konqueror-plugins
konqueror-plugins-lang konsole kontact kopete korganizer ksnapshot ktimetracker
kwalletmanager kwikdisk kwin kwrite libFLAC8-32bit libaugeas0 libblkid1-32bit
libboost_program_options1_36_0 libbrasero-burn0 libbrasero-media0
libcdda_interface0 libcdda_paranoia0 libcolorblind0 libfreebl3 libfreebl3-32bit
libgcc46 libgcc46-32bit libgmime-2_4-2 libgnome-desktop-2-11
libgnome-desktop-2-11-32bit libgnome-window-settings1 libgomp46 libgomp46-32bit
libgstapp-0_10-0 libical0-32bit libjack0 libkexiv2-7 libkipi6
libknotificationitem-1-1 libldb1 liblzma5 liblzma5-32bit libmsn0_1 liborc-0_4-0
libpackagekit-glib10 libpciaccess0 libpciaccess0-32bit libpixman-1-0
libpixman-1-0-32bit libpolkit-qt0 libpoppler5 libproxy0 libproxy0-32bit
libproxy0-config-gnome libproxy0-config-kde4 libpulse-mainloop-glib0
libpython2_6-1_0-32bit libqt4-qt3support-32bit libslab-lang libslab0
libsmbios2-32bit libsndfile-32bit libstdc++46 libstdc++46-32bit libtalloc2
libtalloc2-32bit libtasn1-3-32bit libtelepathy-glib0 libtevent0 libudev0
libudev0-32bit libunique-1_0-0 libusb-1_0-0 libxklavier15 lsb-release meanwhile
mozilla-kde4-integration mozilla-xulrunner192 mozilla-xulrunner192-gnome
mpt-firmware okular perl-Crypt-OpenSSL-RSA perl-IO-Socket-INET6 perl-Mail-DKIM
perl-MailTools perl-NetAddr-IP perl-Socket6 perl-WWW-Curl perl-apparmor
plasma-addons plasmoid-quickaccess pulseaudio-lang python-argparse python-numpy
python-tk re2c samba-client-32bit subscription-tools suse-sam-data tunctl xz xz-lang
yast2-dbus-client yast2-dbus-server zypper-log

The following packages are going to be REMOVED:
PolicyKit-kde PolicyKit-kde-lang cifs-mount gtksourceview kde4-akonadi
kde4-akregator kde4-ark kde4-dolphin kde4-gwenview kde4-kaddressbook kde4-kalarm
kde4-kcalc kde4-kdepasswd kde4-kdessh kde4-kdm kde4-kdm-branding-SLED
kde4-keditbookmarks kde4-kfind kde4-kfloppy kde4-kgpg kde4-kio_sysinfo
kde4-kio_sysinfo-branding-SLED kde4-kiosktool kde4-kmail kde4-kmix kde4-knotes
kde4-konqueror kde4-konqueror-plugins kde4-konqueror-plugins-lang kde4-konsole
kde4-kontact kde4-kopete kde4-korganizer kde4-ksnapshot kde4-ktimetracker
kde4-kupdateapplet-zypp kde4-kwalletmanager kde4-kwikdisk kde4-kwin kde4-kwrite
kde4-okular kde4-plasma-addons kde4-plasmoid-quickaccess
kde4-plasmoid-quicklauncher libgcc43 libgcc43-32bit libgomp43 libgomp43-32bit
libpfm3 libpulsecore7 libsoup libstdc++43 libstdc++43-32bit libxklavier linux32
perl-libapparmor pfmon powerdevil powerdevil-lang qlogic-firmware
x11-input-synaptics

The following packages are going to change architecture:
apparmor-docs apparmor-utils gnome-doc-utils yast2-schema

The following packages are not supported by their vendor:
libmysqlclient15 libmysqlclient_r15 mysql mysql-client

Overall download size: 1002.0 M. After the operation, additional 687.5 M will be used.
Continue? [YES/no]: y

After “downloading” the packages, accept the terms of the license

Do you agree with the terms of the license? [yes/NO]: yes

Advertisements

Creating a jfs2 filesystem in AIX

Listing physical volumes

root@aix:/ # lspv
hdisk0 00c94ad454a2d4c5 rootvg active
hdisk1 00c94ad45808a18f rootvg active
hdisk3 00c94ad4229190d8 tsmpoolvg active
hdisk21 00ce196f4b9604c3 aplicvg active
hdisk22 00ce196f418e3f6d aplicvg active
hdisk44 00c94ad4c75dfb09 aplicvg active
hdisk2 none None
hdisk57 00c94ad481c4f2aa aplicvg active
hdisk55 00c94ad4f99f7480 tsm55dbvg active
hdisk56 00c94ad4f99f2d43 tsm55logvg active

Configures devices

root@aix:/ # cfgmgr

Listing physical volumes

root@aix:/ # lspv
hdisk0 00c94ad454a2d4c5 rootvg active
hdisk1 00c94ad45808a18f rootvg active
hdisk3 00c94ad4229190d8 tsmpoolvg active
hdisk21 00ce196f4b9604c3 aplicvg active
hdisk22 00ce196f418e3f6d aplicvg active
hdisk44 00c94ad4c75dfb09 aplicvg active
hdisk2 none None
hdisk57 00c94ad481c4f2aa aplicvg active
hdisk55 00c94ad4f99f7480 tsm55dbvg active
hdisk56 00c94ad4f99f2d43 tsm55logvg active
hdisk4 none None

Comparing lspv output, the new disk is hdisk4. Checking ID to see if it matches

root@aix:/ # lsattr -El hdisk4 | grep -i 600507680191818C1000000000000C98
unique_id 33213600507680191818C1000000000000C9804214503IBMfcp Device Unique Identification False

Using script to query all disks

for i in `lspv | awk ‘{print $1’}`
do
echo $i `lsattr -El $i | grep unique_id`
done

Creating volume group with PP SIZE 16MB is not possible

root@aix:/ # mkvg -y tsmdbtmp -s 16 hdisk4
0516-1254 mkvg: Changing the PVID in the ODM.
0516-1208 mkvg: Warning, The Physical Partition Size of 16 requires the
creation of 32000 partitions for hdisk4. The system limitation is 16256
physical partitions per disk at a factor value of 16. Specify a larger
Physical Partition Size or a larger factor value in order create a
volume group on this disk.
0516-862 mkvg: Unable to create volume group.

Creating volume group with PP SIZE 32MB.

root@aix:/ # mkvg -y tsmdbtmp -s 32 hdisk4
tsmdbtmp

Listing volume group information

root@aix:/ # lsvg tsmdbtmp
VOLUME GROUP: tsmdbtmp VG IDENTIFIER: 00c94ad400004c000000015d801914eb
VG STATE: active PP SIZE: 32 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 15999 (511968 megabytes)
MAX LVs: 256 FREE PPs: 15999 (511968 megabytes)
LVs: 0 USED PPs: 0 (0 megabytes)
OPEN LVs: 0 QUORUM: 2 (Enabled)
TOTAL PVs: 1 VG DESCRIPTORS: 2
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 1 AUTO ON: yes
MAX PPs per VG: 32512
MAX PPs per PV: 16256 MAX PVs: 2
LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
PV RESTRICTION: none INFINITE RETRY: no
DISK BLOCK SIZE: 512 CRITICAL VG: no

Creating filesystem. Logical volume name is fslvXX

root@aix:/ # smitty crfs

Add a File System

Move cursor to desired item and press Enter.

Add an Enhanced Journaled File System
Add a Journaled File System
Add a CDROM File System

F1=Help F2=Refresh F3=Cancel F8=Image
F9=Shell F10=Exit Enter=Do

Add an Enhanced Journaled File System

Move cursor to desired item and press Enter.

Add an Enhanced Journaled File System
Add an Enhanced Journaled File System on a Previously Defined Logical Volume

F1=Help F2=Refresh F3=Cancel F8=Image
F9=Shell F10=Exit Enter=Do

Add an Enhanced Journaled File System

Move cursor to desired item and press Enter.

Add an Enhanced Journaled File System
Add an Enhanced Journaled File System on a Previously Defined Logical Volume

+————————————————————————–+
| Volume Group Name |
| |
| Move cursor to desired item and press Enter. |
| |
| rootvg |
| aplicvg |
| tsmpoolvg |
| tsm55logvg |
| tsm55dbvg |
| tsmdbtmp |
| |
| F1=Help F2=Refresh F3=Cancel |
| F8=Image F10=Exit Enter=Do |
F1| /=Find n=Find Next |
F9+————————————————————————–+

Add an Enhanced Journaled File System

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

[Entry Fields]
Volume group name tsmdbtmp
SIZE of file system
Unit Size Megabytes +
* Number of units [511900] #
* MOUNT POINT [/tsmdbtmp]
Mount AUTOMATICALLY at system restart? yes +
PERMISSIONS read/write +
Mount OPTIONS [] +
Block Size (bytes) 4096 +
Logical Volume for Log +
Inline Log size (MBytes) [] #
Extended Attribute Format +
ENABLE Quota Management? no +
Enable EFS? no +
Allow internal snapshots? no +
Mount GROUP []

Mount logical volume

root@aix:/ # mount /tsmdbtmp

Check filesystem size

root@aix:/ # df -m /tsmdbtmp
Filesystem MB blocks Free %Used Iused %Iused Mounted on
/dev/fslv08 511904.00 511825.51 1% 4 1% /tsmdbtmp

Linux EXT4-fs: error (device dm-156): ext4_lookup: deleted inode referenced: 1091357

Node : serviceguardnode2.setaoffice.com
Node Type : Intel/AMD x64(HTTPS)
Severity : minor
OM Server Time: 2016-12-22 18:22:32
Message : EXT4-fs: error (device dm-156): ext4_lookup: deleted inode referenced: 1091357
Msg Group : OS
Application : dmsg_mon
Object : EXT4
Event Type :
not_found

Instance Name :
not_found

Instruction : No

Checking which device is complaining. dm-156 is /dev/vgWPJ/lv_orawp0

root@serviceguardnode2:/dev/mapper # ls -l | grep 156
lrwxrwxrwx. 1 root root 9 Dec 14 22:15 vgWPJ-lv_orawp0 -> ../dm-156

The filesystem is currently mounted

root@serviceguardnode2:/dev/mapper # mount | grep lv_orawp0
/dev/mapper/vgWPJ-lv_orawp0 on /oracle/WPJ type ext4 (rw,errors=remount-ro,data_err=abort,barrier=0)

And the logical volume is open

root@serviceguardnode2:~ # lvs vgWPJ
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
lv_ora11264 vgWPJ -wi-ao—- 30.00g
lv_orawp0 vgWPJ -wi-ao—- 5.00g

This is a clustered environment and it is currently running on the other node

root@serviceguardnode2:/dev/mapper # cmviewcl | grep -i wpj
dbWPJ up running enabled serviceguardnode1

There is a Red Hat note referencing the error – “ext4_lookup: deleted inode referenced” errors in /var/log/messages in RHEL 6.

In clustered environments, which is the case, if the other node is mounting the filesystem, it will throw these errors in /var/log/messages

root@serviceguardnode2:~ # cmviewcl -v -p dbWPJ

PACKAGE STATUS STATE AUTO_RUN NODE
dbWPJ up running enabled serviceguardnode1

Policy_Parameters:
POLICY_NAME CONFIGURED_VALUE
Failover configured_node
Failback manual

Script_Parameters:
ITEM STATUS MAX_RESTARTS RESTARTS NAME
Service up 5 0 dbWPJmon
Subnet up 10.106.10.0

Node_Switching_Parameters:
NODE_TYPE STATUS SWITCHING NAME
Primary up enabled serviceguardnode1 (current)
Alternate up enabled serviceguardnode2

Dependency_Parameters:
DEPENDENCY_NAME NODE_NAME SATISFIED
dbWP0_dep serviceguardnode2 no
dbWP0_dep serviceguardnode1 yes

Other_Attributes:
ATTRIBUTE_NAME ATTRIBUTE_VALUE
Style modular
Priority no_priority

Checking the filesystems. I need to unmount /oracle/WPJ but first I need to umount everything under /oracle/WPJ otherwise it will show that /oracle/WPJ is busy

root@serviceguardnode2:~ # df -hP | grep WPJ
/dev/mapper/vgSAP-lv_WPJ_sys 93M 1.6M 87M 2% /usr/sap/WPJ/SYS
/dev/mapper/vgWPJ-lv_orawp0 4.4G 162M 4.0G 4% /oracle/WPJ
/dev/mapper/vgWPJ-lv_ora11264 27G 4.7G 21G 19% /oracle/WPJ/11204
/dev/mapper/vgWPJlog2-lv_origlogb 2.0G 423M 1.4G 23% /oracle/WPJ/origlogB
/dev/mapper/vgWPJlog2-lv_mirrloga 2.0G 404M 1.5G 22% /oracle/WPJ/mirrlogA
/dev/mapper/vgWPJlog1-lv_origloga 2.0G 423M 1.4G 23% /oracle/WPJ/origlogA
/dev/mapper/vgWPJlog1-lv_mirrlogb 2.0G 404M 1.5G 22% /oracle/WPJ/mirrlogB
/dev/mapper/vgWPJdata-lv_sapdata4 75G 21G 55G 28% /oracle/WPJ/sapdata4
/dev/mapper/vgWPJdata-lv_sapdata3 75G 79M 75G 1% /oracle/WPJ/sapdata3
/dev/mapper/vgWPJdata-lv_sapdata2 75G 7.3G 68G 10% /oracle/WPJ/sapdata2
/dev/mapper/vgWPJdata-lv_sapdata1 75G 1.1G 74G 2% /oracle/WPJ/sapdata1
/dev/mapper/vgWPJoraarch-lv_oraarch 20G 234M 19G 2% /oracle/WPJ/oraarch
scsWPJ:/export/sapmnt/WPJ/profile 4.4G 4.0M 4.1G 1% /sapmnt/WPJ/profile
scsWPJ:/export/sapmnt/WPJ/exe 4.4G 2.5G 1.7G 61% /sapmnt/WPJ/exe

Umounting /oracle/WPJ

root@serviceguardnode2:~ # umount /oracle/WPJ/11204
root@serviceguardnode2:~ # umount /oracle/WPJ/origlogB
root@serviceguardnode2:~ # umount /oracle/WPJ/mirrlogA
root@serviceguardnode2:~ # umount /oracle/WPJ/origlogA
root@serviceguardnode2:~ # umount /oracle/WPJ/mirrlogB
root@serviceguardnode2:~ # umount /oracle/WPJ/sapdata4
root@serviceguardnode2:~ # umount /oracle/WPJ/sapdata3
root@serviceguardnode2:~ # umount /oracle/WPJ/sapdata2
root@serviceguardnode2:~ # umount /oracle/WPJ/sapdata1
root@serviceguardnode2:~ # umount /oracle/WPJ/oraarch
root@serviceguardnode2:~ # umount /oracle/WPJ

Samba share without permission. Directory showing as d———

Server is mounting network share being exported using CIFS

root@linux:~ # df -hP /arq/avf/ROT_EFC
Filesystem Size Used Avail Use% Mounted on
//172.20.1.2/Operacao_ROT_EFC$ 43G 40G 3.2G 93% /arq/avf/ROT_EFC

root@linux:~ # mount | grep ROT_EFC
//172.20.1.2/Operacao_ROT_EFC$ on /arq/avf/ROT_EFC type cifs (rw)

Information about the filesystem on /etc/fstab

root@linux:~ # grep Operacao_ROT_EFC /etc/fstab
//172.20.1.2/Operacao_ROT_EFC$ /arq/avf/ROT_EFC cifs _netdev,user=s-ad-USER1468,pass=userpassword,uid=21376,gid=889,file_mode=0775,dir_mode=0775,domain=setaoffice,cifsacl

There is no permission and it can’t be changed by the Linux server brqsb1valeas890

root@linux:~ # ls -ld /arq/avf/ROT_EFVM /arq/avf/ROT_EFC
d——— 7 user1468 admweb 0 Sep 15 15:53 /arq/avf/ROT_EFC

root@linux:~ # chmod 775 /arq/avf/ROT_EFC
chmod: changing permissions of `/arq/avf/ROT_EFC’: Permission denied

No problem mounting manually

mount -t cifs //172.20.1.2/Operacao_ROT_EFC$ /arq/avf/ROT_EFC -o “username=s-ad-USER1468,domain=setaoffice,uid=21376,gid=889,file_mode=0775,dir_mode=0775”

Rewrote entry in /etc/fstab. Must have been a hidden character

root@linux:~ # umount /arq/avf/ROT_EFC
root@linux:~ # mount /arq/avf/ROT_EFC
root@linux:~ # ls -dl /arq/avf/ROT_EFC
drwxrwxr-x 7 user1468 admweb 0 Sep 15 15:53 /arq/avf/ROT_EFC

Linux – command ls or df hangs on /

If you run ls or df -h, these commands will appear that hung

Check if you have NFS shares mounted

root@linux:~ # mount | grep nfs
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
mdmMPC:/export/sapmnt/MPC on /sapmnt/MPC type nfs (rw,nfsvers=3,proto=tcp,noac,soft,sloppy,addr=10.106.10.118)
linuxnfs25:/oracle/HP0/sapdata1/DUMP on /dump type nfs (rw,addr=142.40.81.32)
nfshp0:/export/sapmnt/HP0/exe on /sapmnt/HP0/exe type nfs (rw,nfsvers=3,proto=udp,noac,soft,sloppy,addr=10.106.10.28)
nfshp0:/export/sapmnt/HP0/profile on /sapmnt/HP0/profile type nfs (rw,nfsvers=3,proto=udp,noac,soft,sloppy,addr=10.106.10.28)

I have this share that the server was turned off. So I tried to umount the share

root@linux:~ # umount /dump
umount.nfs: /dump: device is busy
umount.nfs: /dump: device is busy

And even forcing but no luck

root@linux:~ # umount -f /dump
umount2: Device or resource busy
umount.nfs: /dump: device is busy
umount2: Device or resource busy
umount.nfs: /dump: device is busy

umount with -l to do a lazy unmount

root@linux:~ # umount -l /dump
root@linux:~ # df -h /dump
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vgroot-lv_root
7.8G 818M 6.6G 11% /

ORA-00206: error in writing (block 42, # blocks 1) of control file

DBA notified me of this error

Wed Nov 25 13:46:11 BRST 2015
Errors in file /usr/software/oracle/admin/orarvt015/bdump/rvt015_lgwr_2388.trc:
ORA-00206: error in writing (block 42, # blocks 1) of control file
ORA-00202: control file: ‘/usr/oradata/orarvt015/control2/control02.ctl’
ORA-27061: waiting for async I/Os failed
Linux-x86_64 Error: 5: Input/output error

Umount the filesystem

root@linux:~ # umount /usr/oradata/orarvt015

I ran fsck

root@linux:~ # fsck -t ext3 /dev/mapper/oradatavg-dat.orarvt015new
fsck 1.38 (30-Jun-2005)
e2fsck 1.38 (30-Jun-2005)
/dev/mapper/oradatavg-dat.orarvt015new: recovering journal
/dev/mapper/oradatavg-dat.orarvt015new: clean, 137/209715200 files, 318872229/419428352 blocks

Then I mounted the filesystem again

root@linux:~ # mount /usr/oradata/orarvt015

Showing filesystem size

root@linux:~ # df -h /usr/oradata/orarvt015
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/oradatavg-dat.orarvt015new
1.6T 1.2T 304G 80% /usr/oradata/orarvt015

It solved the problem

Exporting directory using NFS on Red Hat Enterprise Linux 6.7 and mounting on other server

I will mount a filesystem called /export/mnt/HD0/global and /export/mnt/HD0/profile being exported on linux01.

Both servers are running Red Hat Enterprise Linux 6.7

Checking filesystem that will be exported

root@linux01:~ # df -h /mnt/HD0/global
Filesystem Size Used Avail Use% Mounted on
linux01:/export/mnt/HD0/global
3.5G 23M 3.3G 1% /mnt/HD0/global

root@linux01:~ # df -h /mnt/HD0/profile
Filesystem Size Used Avail Use% Mounted on
linux01:/export/mnt/HD0/profile
3.5G 3.0M 3.3G 1% /mnt/HD0/profile

Checking which filesystems are being exported from linux01

root@linux02:~ # showmount -e linux01
Export list for linux01:
/export/mnt/HD0/exe linux01.setaoffice.com
/export/mnt/HD0/profile linux01.setaoffice.com
/export/mnt/HD0/global linux01.setaoffice.com
/export/interface/SAP linux01.setaoffice.com
/export/interface/HD0 linux01.setaoffice.com

Edit file /etc/exports on linux01 to export the share to linux02

root@linux01:~ # vi /etc/exports
/export/interface/HD0 linux01(rw,no_root_squash,sync)
/export/interface/SAP linux01(rw,no_root_squash,sync)
/export/mnt/HD0/global linux01(rw,no_root_squash,sync) linux02(rw,no_root_squash,sync)
/export/mnt/HD0/profile linux01(rw,no_root_squash,sync) linux02(rw,no_root_squash,sync)
/export/mnt/HD0/exe linux01(rw,no_root_squash,sync)

I stopped and started NFS

root@linux01:~ # /etc/init.d/nfs stop
Shutting down NFS daemon: [FAILED]
Shutting down NFS mountd: [ OK ]
Shutting down NFS quotas: [ OK ]
Shutting down NFS services: [ OK ]
Shutting down RPC idmapd: [ OK ]
root@linux01:~ # /etc/init.d/nfs start
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS mountd: [ OK ]
Starting NFS daemon: [ OK ]
Starting RPC idmapd: [ OK ]

Mounting and checking the NFS share

root@linux02:~ # mount linux01:/export/mnt/HD0/profile /mnt/HD0/profile
root@linux02:~ #

root@linux02:~ # mount linux01:/export/mnt/HD0/global /mnt/HD0/global
root@linux02:~ #

root@linux02:~ # df -h /mnt/HD0/profile
Filesystem Size Used Avail Use% Mounted on
linux01:/export/mnt/HD0/profile
3.5G 3.0M 3.3G 1% /mnt/HD0/profile

root@linux02:~ # df -h /mnt/HD0/global
Filesystem Size Used Avail Use% Mounted on
linux01:/export/mnt/HD0/global
3.5G 23M 3.3G 1% /mnt/HD0/global

Couldn’t mount AIX file system. First information says that media is not formatted

I had a problem mounting a file system after the server rebooted. At first it reported that the logical volume wasn’t formatted or the format is incorrect. Then it asked to run fsck.

root@aix5:/ # mount /fallback
Replaying log for /dev/fallback.
mount: 0506-324 Cannot mount /dev/fallback on /fallback: The media is not formatted or the format is not correct.
0506-342 The superblock on /dev/fallback is dirty.  Run a full fsck to fix.

I just ran fsck on the logical volume and then mounted the file system.

root@aix5:/ # fsck /dev/fallback

****************
The current volume is: /dev/fallback
**Phase 1 – Check Blocks, Files/Directories, and Directory Entries
**Phase 2 – Count links
**Phase 3 – Duplicate Block Rescan and Directory Connectedness
**Phase 4 – Report Problems
**Phase 5 – Check Connectivity
**Phase 7 – Verify File/Directory Allocation Maps
**Phase 8 – Verify Disk Allocation Maps
15728640 kilobytes total disk space.
63 kilobytes in 30 directories.
7664455 kilobytes in 438 user files.
8061172 kilobytes are available for use.
File system is clean.
Superblock is marked dirty; FIX? y
All observed inconsistencies have been repaired.

root@aix5:/ # mount /fallback

root@aix5:/ # df -g /fallback
Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on
/dev/fallback      15.00      7.69   49%      470     1% /fallback

%d bloggers like this: