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

Can't create new LV - Not enough free partitions

Status
Not open for further replies.

neuralnode

Technical User
Sep 12, 2007
59
PL
Hi All,

I want to create an LV, but end up with the following error:

Code:
[indent][COLOR=green]# mklv -y mylv01 -e x -t jfs2 myvg01 736G
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.[/color][/indent]

Coming from Solaris/ZFS background, I'm a total noob when it comes to AIX logical volume handling. What is this business with PPs and LPs?
How can I overcome this problem, and successfully create a new LV?



FYI, below some useful info about the VG:

Code:
[indent][COLOR=green]# lsvg -p myvg01
myvg01:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk1            active            719         718         144..143..143..144..144
hdisk2            active            719         719         144..144..143..144..144
hdisk3            active            719         719         144..144..143..144..144
hdisk4            active            719         719         144..144..143..144..144[/color][/indent]


--
 
Hi neuralnode,

the problem might be that your exceeding the maximum number of logical partitions here (Default is 512) ...

You might try the following:

Code:
mklv -y mylv01 -e x -x <max LP number> -t jfs2 myvg01 736G

Note: The max. LP value is depending on your VG's PP size. You have to calculate manually how many LPs you need for your LV ...

Example: If your PP size (lsvg myvg01) is 256 megabytes then you need 4 PP per GB and that makes 4*736GB = 2944 or 736GB*1024/256. So in this example you need a max. LP value of at least (!) 2944 ...

Note: If you need to increase the LV later on you also need to increase the max. LP value again ...

Regards,
Thomas
 
Hi Neuralnode,
First, When you are creating a LV you specify the space with no of PP and NOT with GB or MB. (so remove 'G' after 736)

Secondly try the below command
mklv -t jfs2 -y mylv01 myvg01 736

mklv -t jfs2 -y mylv01 myvg01 736 hdiskX (if you want to specify a particular disk)

SARFARAZ AHMED SYED,
Sr. Systems Engineer
 
This chart may help you understand how PPs are used to calculate the filesystem size. I have a hard copy and I also created a C program to calculate the same data.

Code:
GB	MB	KB	512byte 4MB PP	8MB PP	16MB PP	32MB PP	64MB PP	128MB PP  
0.125	128	131072	262144	32	16	8	4	2	1
0.25	256	262144	524288	64	32	16	8	4	2
0.375	384	393216	786432	96	48	24	12	6	3
0.5	512	524288	1048576	128	64	32	16	8	4
0.625	640	655360	1310720	160	80	40	20	10	5
0.75	768	786432	1572864	192	96	48	24	12	6
0.875	896	917504	1835008	224	112	56	28	14	7
1	1024	1048576	2097152	256	128	64	32	16	8
1.125	1152	1179648	2359296	288	144	72	36	18	9
1.25	1280	1310720	2621440	320	160	80	40	20	10
1.375	1408	1441792	2883584	352	176	88	44	22	11
1.5	1536	1572864	3145728	384	192	96	48	24	12
1.625	1664	1703936	3407872	416	208	104	52	26	13
1.75	1792	1835008	3670016	448	224	112	56	28	14
1.875	1920	1966080	3932160	480	240	120	60	30	15
2	2048	2097152	4194304	512	256	128	64	32	16
2.125	2176	2228224	4456448	544	272	136	68	34	17
2.25	2304	2359296	4718592	576	288	144	72	36	18
2.375	2432	2490368	4980736	608	304	152	76	38	19
2.5	2560	2621440	5242880	640	320	160	80	40	20
2.625	2688	2752512	5505024	672	336	168	84	42	21
2.75	2816	2883584	5767168	704	352	176	88	44	22
2.875	2944	3014656	6029312	736	368	184	92	46	23
3	3072	3145728	6291456	768	384	192	96	48	24
3.125	3200	3276800	6553600	800	400	200	100	50	25
3.25	3328	3407872	6815744	832	416	208	104	52	26
3.375	3456	3538944	7077888	864	432	216	108	54	27
3.5	3584	3670016	7340032	896	448	224	112	56	28
3.625	3712	3801088	7602176	928	464	232	116	58	29
3.75	3840	3932160	7864320	960	480	240	120	60	30
3.875	3968	4063232	8126464	992	496	248	124	62	31
4	4096	4194304	8388608	1024	512	256	128	64	32
4.125	4224	4325376	8650752	1056	528	264	132	66	33
4.25	4352	4456448	8912896	1088	544	272	136	68	34
4.375	4480	4587520	9175040	1120	560	280	140	70	35
4.5	4608	4718592	9437184	1152	576	288	144	72	36
4.625	4736	4849664	9699328	1184	592	296	148	74	37
4.75	4864	4980736	9961472	1216	608	304	152	76	38
4.875	4992	5111808	10223616	1248	624	312	156	78	39
5	5120	5242880	10485760	1280	640	320	160	80	40
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top