Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AIX, how to configure disks and filesystems 1

Status
Not open for further replies.

robotdave

Technical User
Apr 1, 2003
14
GB
Hi There

I have been admisistating Linux, SUN and HP-UX for some time now and have always found adding a new disk, creating and mount a file system quite straight forward. However AIX seems to want to everything differntly. Any quick tips to how to do this.

All i'm trying to do is add an external disk and create and mount a filesystem.

Thanks in advance

RD :eek:|
 

External means what? SCSI disk?

# cfgmgr (unless rebooted)

# extendvg rootvg hdisk# (# starts from 0. You can see the disks with 'lspv')

That adds your disks to the rootvg. The easy way (?) is then to go to 'smitty filesystems' and 'add new filesystem'.

Cheers

Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
hi,

You can do all those using smit

to add a volume group issue the command
smit mkvg
to add filesystems to that volume group
smit fs

regards
 
Hi robotdave

prior to adding external disk u need to consider several points...also u didn't mention clearly whether or not u want to add logically after adding physicallly...
If u want to add logically ...u want to add to existing vg
orelse u want to create new vg ...If u are determined...
creating fs or mounting is not a point...u can proceed as
other members suggested in this forum...
If u want detailed step by step procedure...I don't mind to
furnish those steps...but before that please answer to my queries.Make me more crystal clear...
so that I can give u right steps to fullfill your task

sushveer
IBM certified specialist-p-series AIX5L System Administration
AIX/SOLARIS/WEBSPHERE-MQ/TIVOLI Administrator
 
Cheers

I want to add a new SCSI or SCSI over Fibre Channel disk, probably as new volume group. Then create a file system the full size of the disk (if possible) and then mount.

BTW

What would you suggest as a file system benchmark tool for AIX?
 
Hi Robotdave

Here is my step by step approach to accomplish your task:

Assuming that it is not possible to shutdown or power off
before adding the scsi disk

STEP1:prior attaching physical scsi disk ...please run these commands with root account to have crystal clarity of your pv's(physical volume)
#lspv
#lsdev -C -c disk (for existing disk devices list)

STEP2: After adding disk dynamically please run
#cfgmgr (to configure new disk on the system)
for instance hdisk3 is a new scsi disk drive added to system

STEP3:please run 'lspv'command
Now u can see the output something like

hdisk3 none none

STEP4:If u get output as shown in step3
Make the hdisk3 a PV by issuing following command syntax:
#chdev -l hdisk3 -a pv=yes

STEP5:#lspv
Now the output with sysntax as
hdisk3 <hexdecimal pv id> none

Also you can use lsdev -C -c disk to find new scsi disk drive available


STEP6:Creating a new volume group
#mkvg -s 32 -y newvg hdisk3

Here 32mb is the partition size
STEP7:Create a directory
#mkdir /mnt

STEP 8:create a JFS file system
#crfs -v jfs -g newvg -m /mnt A yes -a size=<512 byte blocks>

file system size u can give up to the size of disk

STEP 9: mounting the file system
#mount /dev/<logical volume>
OR
#mount /mnt

STEP9:Verification:
#df -k
#cat /etc/filesystems

Here you GO...!!!!!!!!!!!!


sushveer
IBM certified specialist-p-series AIX5L System Administration
AIX/SOLARIS/WEBSPHERE-MQ/TIVOLI Administrator
 
if i am allowed some vanity, i have a script which makes this somewhat more streamlined:


note that it does not create a vg for you, but i'm sure you can modify it to do so. i create many, many fs and this helps me avoid carpal tunnel at an early age. but, as usual, sushveer has a very complete explanation.

IBM Certified -- AIX 4.3 Obfuscation
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top