TODAS AS PUBLICAÇÕES
- Classificar por:
- Data
- Título
- Curtir
- Comentários
- Visualizações ▼
Show disk size with getconf DISK_SIZE /dev/hdisk0
Give bootinfo the boot If you want to get the size of a disk (virtual or physical), you can use the AIX getconf command . getconf DISK_SIZE /dev/hdisk0 140013 The size is reported in MB, so the disk above is a 140 GB disk. You could use the bootinfo -s, but that command is deprecated! so I'm not even going to give you a link to its man pages. Maybe you're not exactly sure what "deprecated" means, but it sounds bad, doesn't it? According to Wikipedia , "deprecated" derives from... [More]
Marcações:  mb size lsdev lspv volume_group getconf aix gb deprecated disk "lspv_size" vios bootinfo san physical lun |
UPDATED: Load ISO images via VIO server and AIX
Updated 28 January 2011 A few notes and clarifications : What I call the Virtual Media Library is often also called the Virtual Media Repositor y (VMR). IBM documentation uses both terms. the syntax for creating the virtual optical device was incorrect. Details within the body of the post below. You may also be interested in an article of mine in the IBM Systems Magazine on the Virtual Media Library: Media Release - Keep software and OS backups handy with VIOS virtual media library Using ISO... [More]
Marcações:  recovery dr mkdvd mkcd devices virtual vmlibrary mksysb mkvdev vio file-backed nim disaster mkrep loadopt media aix |
How to remove empty directories (rmdir -r?)
Someone asked me to remove all empty directories in a particular path. Option 1: rm -r You can remove ALL directories and all files using rm
-r You will end up with a nice clean system that way, and a new line on your resumé explaining why you left your job at short notice. DON'T TRY THIS AT WORK! For that matter, don't try any of these "solutions" until you've tried them somewhere which doesn't leave you wishing you'd never heard of AIX Down Under . Whenever I run any command to remove files or directories, I waste two seconds... [More]
Marcações:  mkdirhier mkdir cleanup remove empty_directory yuk rmdir directory |
List file systems in a volume group: lsvgfs
If you've ever needed to list the file systems in a volume group, you've probably done something like this: <!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->
<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->
lsvg
-l rootvg | awk '{ print $NF }' You would then need to strip out the header line and any logical volumes not... [More]
Marcações:  systems list aix awk paste cut volumes lvm lsvgfs putty logical edit lv file |
Understanding AIX levels
What do all those numbers mean on oslevel -s? If you're looking for some guidance on understanding exactly what level of AIX you're running, you may like to read my article in the IBM Systems Magazine on Understanding AIX versions . It answers questions such as: What's a TL? What's a Service Pack? When you run oslevel -s , what do all the numbers mean? Should you run a migration or a smitty update_all? What's the difference between applying and committing updates? Why does my oslevel go backwards after installing new software? Here's an... [More]
Marcações:  sp tl release commit upgrade aix technology_level migration fileset reject service_pack oslevel apply patch update |
UPDATED: Migration to AIX 7.1 in 35 minutes
Virtually converted to AIX 7 I just did my first migration of an LPAR to AIX 7.1. I chose to migrate my AIX 6.1 NIM server. I first downloaded AIX 7.1 from the Entitled Software Support web site . I copied the two ISO images to the Virtual Media Library on the VIO server, and I broadly followed the procedure outlined by my compatriot Chris Gibson in his article AIX Migration with File-Backed VIOS Devices . I gave the two ISO images shorter names when I copied them into /var/vio/VMLibrary. You can also rename them using the VIO server mkvopt or... [More]
Marcações:  vios virtual_media installation upgrade file_backed power aix download vmlibrary migration vio_server iso |
Remove a single failed path (without spitting the dummy)
I noticed that the VIO server (VIOS) error log was reporting some failed paths for LUNs connecting to the SAN. The VIOS command errlog -ls (the equivalent of the AIX command errpt -a ) showed errors on the Fibre Channel adapter fscsi2: Diagnostic
Analysis Diagnostic Log sequence number: 1126130 Resource
tested: fscsi2 Menu
Number:
2603902 Description: Error Log Analysis has detected
multiple communication errors. These errors can be caused by
attached devices, a switch, a hub, or a SCSI-to-FC convertor. If
connected to... [More]
Marcações:  pdev parent device rmpath lspath cfgmgr vios aix cfgdev dev connection odm |
UPDATED: Grow your rootvg on the fly (from 6.1 TL 4)
There are lots of good reasons for having spare disk for rootvg, as I
looked at in the post make
way for rootvg . With virtual disks you can resize your volume group
on the fly: Increase rootvg
dynamically If your rootvg “disk” is actually virtual,
such as a SAN LUN or a logical volume on the VIO server, then it usually
can be expanded on the SAN (or using extendlv on
the VIOS) and then recognised on the AIX LPAR using the -g flag
of the chvg
command : chvg -g
rootvg Note: this is supported for rootvg and... [More]
Marcações:  disk growth chvg resize aix spare volume_group backend lun 7.1 extendlv 6.1 5.3 rootvg san |
Sizing up your file system space (and your worth)
YOUR TIME IS PRECIOUS! When you need to increase a file system, you can use our old friend smitty. But stepping through the SMIT menus could take a good 3 seconds (at least!) And as a good AIX guru, your time is precious. In a perfect world AIX gurus like you should charge your time by the nanosecond! (Just go tell your boss that the bloke who writes AIX Down Under said so.) Alas, the world is not perfect, as you may have discovered after that friendly chat with the boss. Even so, you can save a few seconds when you have to increase a file... [More]
Marcações:  system decrease jfs2 disk nanoseconds guru chfs gigabyte lv space logical_volume increase aix jfs precious block_size file |
UPDATED: Long user names in AIX
User names on AIX used to be restricted to eight characters. That's still the default setting but since AIX 5.3 you can increase the length up to an amazing 256 characters, if users really want to spend the morning logging in. You can view the current maximum login name using: lsattr –El sys0 | grep max_logname Update: I incorrectly had listed the parameter as max_login. The correct parameter is max_logname. Thanks to jabber44 for the correction. or via smit System Environments -> Change / Show Characteristics of... [More]
Marcações:  login long names user max_logname find cut aix permission login_name_max paste truncate chown who tar putty |