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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem adding new SAN disk

Status
Not open for further replies.

terrywashington

Technical User
Jun 28, 2001
185
US
I just added a 10GB SAN disk to our 7044-270 running 5.1. The disk is hdisk6. I am attempting to add it to an existing volume group called sanvg and mount it as /sanperf. Here is what I did. Am I missing something simple here? I don't have a lot of experience with AIX as we are primarily a Sun shop.

[root@aixdev1:/]# cfgmgr

[root@aixdev1:/]# lsdev -Ccdisk
hdisk0 Available 10-60-00-0,0 16 Bit LVD SCSI Disk Drive
hdisk1 Available 10-60-00-8,0 16 Bit LVD SCSI Disk Drive
hdisk2 Available 10-60-00-9,0 16 Bit LVD SCSI Disk Drive
hdisk3 Available 10-88-00-6,0 16 Bit LVD SCSI Disk Drive
hdisk4 Available 20-58-01 Other FC SCSI Disk Drive
hdisk5 Available 20-58-01 Other FC SCSI Disk Drive
hdisk6 Available 20-58-01 Other FC SCSI Disk Drive

[root@aixdev1:/]# lspv
hdisk0 00068f8c44d6da89 rootvg
hdisk1 00068f8cb17e4db8 None
hdisk2 00068f8cb17f7709 None
hdisk3 0005456f8b1ef088 None
hdisk4 00068f8ced4c8afa sanvg
hdisk5 00068f8ced4c8afa sanvg
hdisk6 none None

[root@aixdev1:/]# chdev -l hdisk6 -a pv=yes
hdisk6 changed

[root@aixdev1:/]# lspv
hdisk0 00068f8c44d6da89 rootvg
hdisk1 00068f8cb17e4db8 None
hdisk2 00068f8cb17f7709 None
hdisk3 0005456f8b1ef088 None
hdisk4 00068f8ced4c8afa sanvg
hdisk5 00068f8ced4c8afa sanvg
hdisk6 00068f8cb7884751 None

[root@aixdev1:/]# lsvg sanvg
VOLUME GROUP: sanvg VG IDENTIFIER: 00068f8c00004c000000010fed578401
VG STATE: active PP SIZE: 128 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 799 (102272 megabytes)
MAX LVs: 256 FREE PPs: 0 (0 megabytes)
LVs: 3 USED PPs: 799 (102272 megabytes)
OPEN LVs: 2 QUORUM: 2
TOTAL PVs: 1 VG DESCRIPTORS: 2
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 1 AUTO ON: yes
MAX PPs per PV: 1016 MAX PVs: 32
LTG size: 128 kilobyte(s) AUTO SYNC: no
HOT SPARE: no

[root@aixdev1:/]# extendvg -f 'sanvg' 'hdisk6'

[root@aixdev1:/]# lsvg sanvg
VOLUME GROUP: sanvg VG IDENTIFIER: 00068f8c00004c000000010fed578401
VG STATE: active PP SIZE: 128 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 878 (112384 megabytes)
MAX LVs: 256 FREE PPs: 79 (10112 megabytes)
LVs: 3 USED PPs: 799 (102272 megabytes)
OPEN LVs: 2 QUORUM: 2
TOTAL PVs: 2 VG DESCRIPTORS: 3
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 2 AUTO ON: yes
MAX PPs per PV: 1016 MAX PVs: 32
LTG size: 128 kilobyte(s) AUTO SYNC: no
HOT SPARE: no

[root@aixdev1:/]# mkdir sanperf

[root@aixdev1:/]# crfs -v jfs2 -g sanvg -m /sanperf -a size=20729856 -A yes
0516-404 allocp: This system cannot fulfill the allocation request.
There are not enough free partitions or not enough physical volumes
to keep strictness and satisfy allocation requests. The command
should be retried with different allocation characteristics.
0516-822 mklv: Unable to create logical volume.
crfs: 0506-902 Cannot create logical volume.
crfs: 0506-944 Execute module "/sbin/helpers/jfs2/crfs" failed
 
I don't have an aix box to try it!

But try this (if you want to assign the whole 10G to /sanperf):

crfs -v jfs2 -g sanvg -m /sanperf -a size=10G -A yes

regards,
Khalid
 
just noticed that the output of your first 'lspv' indicates that hdisk4/5 have the same pvid :

hdisk4 00068f8ced4c8afa sanvg
hdisk5 00068f8ced4c8afa sanvg

could you post the output of 'lsvg -p sanvg' and 'lsvg -l sanvg'

Benno

...it really does get worse than this !!
 
Thanks Khalid. That did it. Now I guess I just need to extend the filesystem.
 
hdisk4 and hdisk5 are just different paths to the same LUN
right?

What you are trying to do is create a JFS2 filesystem occupying the whole extra disk, but you probably don't yet have a JFS2LOG LV in the VG. After creating the FS LV, the crfs decides it is time to create a JFS2LOG LV, but it can't becasue the whole disk is now occupied by the 10GB LV for the JFS2 FS. (A JFSLOG which you might have is not compatible with JFS2 filesystems!)
After finding out a JFS2LOG can't be created, crfs bails out and removes the 10GB LV it just created.

Try creating a FS a bit smaller, leaving room for a 1 LP (128MB) JFS2LOG LV.

i.e.

crfs -v jfs2 -g sanvg -m /sanperf -a size=20447232 -A yes

Or create the JFS2 filesystem with an inline log (part of the JFS2 LV):

crfs -v jfs2 -g sanvg -m /sanperf -a size=20729856 -a logsize=100 -A yes

(the inline logsize is in MB, you can also specify logsize=0, then crfs decides how big the inline log should be)

see man page fro crfs also


HTH,

p5wizard
 
10GB = 10240megabytes

you have only 10112 megabytes free in your VG.
 
Yes. Hdisk4 and hdisk5 are different paths to the same LUN. Thanks for all the additional info. I don't have anything on the fileystem right now and will try recreating it once I bring the SAN unit back online. It is down for maintenance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top