Quintero - Deploying Linux on IBM E-Server Pseries Clusters

 <  Day Day Up  >  

Task-specific command comparison

Table A-3 compares task-specific commands for AIX and Linux.

Table A-3. Command comparison

Task

AIX

Linux

Listing physical volumes

lspv

pvdisplay

List partitions in a disk

lspv -l <disk>

fdisk -l <disk>

List volume groups

lsvg

vgdisplay

Create volume group

mkvg

vgcreate

Remove volume group

rmvg

vgremove

Add physical volume to volume groups

extendvg

vgextend

Remove VG definition

exportvg

vgexport

Remove physical volume from volume group

reducevg

vgreduce

Import volume groups

importvg

vgimport

Activate volume group

varyonvg

vgchange

List logical volume

lslv

lvdisplay

Create logical volumes

mklv

lvcreate

Grow file systems with LV

chfs

resize_reiserfs, resize2fs

Shrink file system

-

resize_reiserfs, resize2fs

Paging/Swap space

lsps -a

procinfo cat /proc/swaps

OS level

oslevel

uname -a

Run level

who -r

runlevel

Uptime

uptime

uptime

Performance monitoring

vmstat, ps, sar

vmstat, ps, sar

List installed filesets

lslpp -l

rpm -qa

Which fileset a file is in

which_fileset <file_name>

rpm -qf <file_name>

Verify installed filesets

lppchk -v

rpm -V <packagename>

List files in a fileset/package

-

rpm -ql <package_name>

List running kernel modules

genkex

lsmod

Insert module

N/A (dynamic)

insmod, modprobe

Unload modules

N/A (dynamic)

rmmod, modprobe

List memory installed

bootinfo -r

free, procinfo, cat /proc/meminfo

Create users

mkuser

useradd

Change user details

chuser

usermod , chage

Delete users

rmuser

userdel

Create group

mkgrp

groupadd

Change group details

chgrp

groupmod

Delete group

rmgrp

groupdel

Install software

installp, smitty installp, rpm, geninstall

rpm -iv, yast -i, yast2

Update software

smitty update_all, installp, rpm,

rpm -Uv, yast2

Remove software

smitty installp, rpm

rpm -e, yast2

IP configuration

smitty tcpip

config-network (Red Hat) Yast2 network (SuSE)

IP alias

ifconfig en0 alias<IP>

ifconfig eth0:1<IP>

Network interfaces

netstat -ni

ifconfig

Network routes

netstat -nr

netstat -nr

staticroutes

ODM, /etc/staticroutes&/etc/rc.net

/etc/sysconfig/network (Red Hat)

/etc/sysconfig/routes (SuSE)

Network options

no -a

sysctl -a

Error logs

errpt, alog

syslog, evlog , tail /var/log/messages, dmesg

Start daemons

startsrc -s (SRC-controlled subsystems)

rc.svc_name start, chkconfig, /etc/init.d/<svc_name> start

Stop daemons

stopsrc -s

rc.svc_name stop, chkconfig, /etc/init.d/svc_name stop

Refresh daemons

refresh -p

rc.svc_name restart, /etc/init.d/svc_name restart

Shutdown halt

shutdown -h

shutdown -h

Fast reboot

shutdown -Fr

shutdown -r now

System dump

sysdumpdev -l

N/A

Kernel tuning

vmo (virtual memory - was vmtune) schedo (scheduler tuning - was schedtune) no (network options)

sysctl (for all)

Change kernel

Change symlink in /usr/lib/boot/unix_mp

Change in /etc/yaboot.conf

PAM authentication

/etc/pam.conf

/etc/pam.d/*

Boot image

bosboot

ybin (Red Hat) lilo (SuSE)

Change bootlist

bootlist

N/A

System boot messages

alog

dmesg

 <  Day Day Up  >  

Категории