cfgmgr and hdisk number allocation


 
Thread Tools Search this Thread
Operating Systems AIX cfgmgr and hdisk number allocation
# 1  
Old 11-06-2006
cfgmgr and hdisk number allocation

Hi - can anybody tell me what the default behaviour is for cfgmgr when it allocates hdisk numbers to newly discovered disks in the ODM ? I want to add a disk from our FAStT700 SAN disk array and import it on our p-series (AIX 5.2). Problem is we import and export Flashcopy devices fror scripted backups there too.

If my Flashcopies are mounted when I introduce the new disk, I'm guessing it will just get the next available id (in our case hdisk27). However, if I subsequently disable the Flashcopies (hdisks17-26) then reintroduce them at a later date, will they still get id's 17-26 or will the system start numbering them from hdisk28 ?? If so I might have to change all our scripts.

Essentially I just need to know does the system always use the lowest available id; or just the next (incremental) one to the one it just allocated ?

Thanks in advance.
# 2  
Old 11-06-2006
the flashcopy devices should still exist in your system as "defined" when you remove them from your system (check with lsdev -Ccdisk) when they are defined its ok and they keep their hd number even if they are deleted and there are new disks

if they are not defined, check your "disable" script
you have to remove them with rmdev -l and not with rmdev -dl which removes them completely from the odm

Last edited by funksen; 11-06-2006 at 03:16 PM..
# 3  
Old 11-06-2006
I second funksen.
Once AIX has seen a device, unless you rmdev -'d'l or diag -a and delete them, they will persist as defined devices and AIX will not reuse the device names.
# 4  
Old 11-07-2006
thats exactly what I wanted to say, my english is not the best Smilie
# 5  
Old 11-07-2006
Thanks a million guys; I think you have got to the 'nub' of this particular problem. Our FC scripts currently call rmdev with a '-d' flag when they disable the FC volumes, completely removing the definitions each time. I guess this needs changing.

Do you have any links or good examples of FC enable/disable scripts for AIX ? I'm thinking ours may be lacking in other areas too.

Don't worry Funksen; I understood exactly what you were saying - thanks again.
# 6  
Old 11-16-2006
Flashcopy Scripts

Hello again,

Further to my original post; I'm looking at our existing Flashcopy scripts and the related changes prior to adding our new disks. Can anybody ratify the following scripted processes (in principal) ?

Recreate Flashcopies :

(Shutdown database - quiesce i/o)

1. SMcli -n "FAStT700" -c 'recreateFlashcopy logicalDrive ["FC VOL 1-1"];
2. SMcli -n "FAStT700" -c 'create mapping logicalDrive="FC VOL 1-1" logicalUnitNumber=xx host="AIX HOST";
3.hot_add (actually cfmgr -l deviceclass)
4. chdev -l hdiskxx -a pv=clear;
5. recreatevg -y fc_vgname hdiskxx hdiskxx hdiskxx etc
6. mount /fc_filesystem

Disable Flashcopies :

1. umount /fc_filesystem
2. varyoffvg fc_vgname
3. export fc_vgname
4. rmdev -l hdiskxx (omitting -d which we run currently)
5. Smcli -n "FAStT700" -c 'delete mapping logicalDrive="FC VOL 1-1" host ="AIX HOST";
6. SMcli -n "FAStT700" -c 'disableFlashCopy logicalDrive ["FC VOL 1-1"];

Do I need to do 'chdev -l hdiskxx -a pv=yes' after the clear (step 4) in the recreate to switch the pv from defined to available again; or will the 'hot_add' do that anyway?

Also we got an error with a dirty jfs2 superblock the other night when we mounted the FC volumes. I was wondering about (a) adding a 'sync;sync;sync' call before creating the FCs to flush the buffers and (b) adding a full fsck of the FC volumes before they are mounted; I'm not sure what the policy is on this ??

Thanks in advance.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Cfgmgr Error

Hi, My AIX server able to detect the LUN's which is mapped from IBM v7k storage, And i allocated one more LUN from HP storage but it's appear two hdisk instead of one and it's showing incorrect LUN ID. SDDPCM driver already installed on this server. During cfgmgr, Im getting this message :... (1 Reply)
Discussion started by: xinuadmin
1 Replies

2. AIX

Time taking for cfgmgr on dual VIO

Hi, From the man page, cfgmgr configures devices and optionally installs device software by running the programs specified in the Configuration Rules object class and it is not dependent on platform . Are there any fundamental differences impacting the speed of cfgmgr on a stand-alone and... (5 Replies)
Discussion started by: Sachin1987
5 Replies

3. Solaris

Block-based allocation and Extent-based allocation in Solaris

Hi guys! Could you tell me what's this figure about? (See the attached figure below.) This is a representation of block allocation filesystem and extent allocation filesystem in Solaris. Does this mean that in a block-based allocation, data are placed in individual blocks while in... (0 Replies)
Discussion started by: arah
0 Replies

4. AIX

cfgmgr: 0514-621 WARNING

Dear all i have a sun SL500 tape library attached to my AIX box while issue the command cfgmgr i have the below issue test>cfgmgr cfgmgr: 0514-621 WARNING: The following device packages are required for device support but are not currently installed. devices.fcp.changer please... (3 Replies)
Discussion started by: thecobra151
3 Replies

5. AIX

cfgmgr in my aix box

Hi When I run cfgmgr -v in my aix box I get the below error : cfgmgr: 0514-621 WARNING: The following device packages are required for device support but are not currently installed. devices.loopback My oslevel is 6100-06-02-1044 Please assist. Please use and tags when... (3 Replies)
Discussion started by: samsungsamsung
3 Replies

6. Programming

dynamic allocation vs static allocation in c

i wrote a tiny version of tail command using a large buffer statically allocated but, in a second time, i found another version in which i use a bidimensional array dynamically allocated. here is the first version /*my tiny tail, it prints the last 5 line of a file */ #include<stdio.h>... (4 Replies)
Discussion started by: lucasclaus
4 Replies

7. AIX

Dual port NIC, cfgmgr

OS: AIX 6.1 The host has a dual port NIC installed and when I went to run `cfgmgr -v` to configure it I got an error showing device packages are missing from the install: `cfgmgr -v` on 10.15.xx.xxx cfgmgr: 0514-621 WARNING: The following device packages are required for device support but... (3 Replies)
Discussion started by: b1f30
3 Replies

8. AIX

cfgmgr: Filesets missing

Hi all, I have a System i server with a couple of AIX LPARs. One of the LPARs owns a dual-channel scsi adapter to which I connect a tape library (IBM TS3100) and a DVD Drive. I had some problems to get the Tape Library detected but finally I got it: rmt0 Available 03-08-01-4,0 IBM 3580... (1 Reply)
Discussion started by: wendelalexis
1 Replies

9. AIX

cfgmgr

Hi All, I remember my old senior mentor in AIX that cfgmgr should not be terminated on your console. Because if it's terminated in the middle, the odm might get corrupted. Is that true for AIX 5.x? Regards, itik (1 Reply)
Discussion started by: itik
1 Replies

10. AIX

LPAR and CFGMGR

I have a P570 that for some reason is not allowing the P1-T6 NIC to be recognized. I have confirmed from the HMC that it is set for the LPAR, but when I do a cfgmgr, it won't recognize it. It though is recognizing the slot cards just fine which are P1-C3 for one shelf and P1-C3 of another shelf.... (1 Reply)
Discussion started by: LegendMan
1 Replies
Login or Register to Ask a Question