shacker23

Well-Known Member
Feb 20, 2005
263
1
168
We're set to track Automatic RELEASE. Last night after an automatic update to the latest release, all of our disk quota customizations were lost and they were reset to default values.

Any idea what could cause this or how we can prevent it from happening in the future? Thanks.
 

garrettp

Well-Known Member
PartnerNOC
Jun 18, 2004
312
1
166
cPanel Access Level
DataCenter Provider
Can you clarify "disk quota customiations"? Are you referring to having changed a user's quota in the WHM under Main >> Account Functions >> Quota Modification?
 

garrettp

Well-Known Member
PartnerNOC
Jun 18, 2004
312
1
166
cPanel Access Level
DataCenter Provider
Quotas may not be initialized on your drive, try:
Code:
/scripts/initquotas
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,544
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
We're set to track Automatic RELEASE. Last night after an automatic update to the latest release, all of our disk quota customizations were lost and they were reset to default values.

Any idea what could cause this or how we can prevent it from happening in the future? Thanks.
Were any system administration tasks performed before or close to the time when the quotas were reset?

Does the system have a pre or post script setup that runs before or after a cPanel update?

Please let us know the output from the following commands:
Code:
# stat /scripts/preupcp /scripts/postupcp
# cat -en /scripts/preupcp
# cat -en /scripts/postupcp
For future-proofing the desired modifications, I recommend ensuring that all disk quotas are defined in packages, where each package defines a specific disk quota while multiple accounts may share the same package. WebHost Manager (WHM) can be used to define packages and assign them to accounts via the following menu paths (with linked documentation):
 

shacker23

Well-Known Member
Feb 20, 2005
263
1
168
On this particular server, we use only a single package for all accounts, and it does have a quota set. Accounts that need different quotas are modified individually.

I'm not positive about administrative commands running at the same time, but we do have a fairly lengthy backup process running in the middle of the night, in case that could be related.

Here is the output of those commands:

# stat /scripts/preupcp /scripts/postupcp
stat: cannot stat `/scripts/preupcp': No such file or directory
File: `/scripts/postupcp'
Size: 34 Blocks: 8 IO Block: 4096 regular file
Device: fd00h/64768d Inode: 458756 Links: 1
Access: (0700/-rwx------) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2009-12-22 02:18:20.000000000 -0800
Modify: 2008-05-30 05:25:18.000000000 -0700
Change: 2010-09-08 02:17:03.000000000 -0700


# cat -en /scripts/preupcp
cat: /scripts/preupcp: No such file or directory

# cat -en /scripts/postupcp
1 #!/bin/sh$
2 /scripts/compilers off$
3 $
 

shacker23

Well-Known Member
Feb 20, 2005
263
1
168
On this particular server, we use only a single package for all accounts, and it does have a quota set. Accounts that need different quotas are modified individually.

I'm not positive about administrative commands running at the same time, but we do have a fairly lengthy backup process running in the middle of the night, in case that could be related.

Here is the output of those commands:

Code:
# stat /scripts/preupcp /scripts/postupcp
stat: cannot stat `/scripts/preupcp': No such file or directory
  File: `/scripts/postupcp'
  Size: 34        	Blocks: 8          IO Block: 4096   regular file
Device: fd00h/64768d	Inode: 458756      Links: 1
Access: (0700/-rwx------)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2009-12-22 02:18:20.000000000 -0800
Modify: 2008-05-30 05:25:18.000000000 -0700
Change: 2010-09-08 02:17:03.000000000 -0700


# cat -en /scripts/preupcp
cat: /scripts/preupcp: No such file or directory

# cat -en /scripts/postupcp
     1	#!/bin/sh$
     2	/scripts/compilers off$
     3	$
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,544
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
On this particular server, we use only a single package for all accounts, and it does have a quota set. Accounts that need different quotas are modified individually.

I'm not positive about administrative commands running at the same time, but we do have a fairly lengthy backup process running in the middle of the night, in case that could be related.

Here is the output of those commands:

Code:
# stat /scripts/preupcp /scripts/postupcp
stat: cannot stat `/scripts/preupcp': No such file or directory
  File: `/scripts/postupcp'
  Size: 34        	Blocks: 8          IO Block: 4096   regular file
Device: fd00h/64768d	Inode: 458756      Links: 1
Access: (0700/-rwx------)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2009-12-22 02:18:20.000000000 -0800
Modify: 2008-05-30 05:25:18.000000000 -0700
Change: 2010-09-08 02:17:03.000000000 -0700


# cat -en /scripts/preupcp
cat: /scripts/preupcp: No such file or directory

# cat -en /scripts/postupcp
     1	#!/bin/sh$
     2	/scripts/compilers off$
     3	$
The content of the custom postupcp script appears OK; I believe that should not reset quotas. I recommend creating a package for each unique disk quota limit that is desired, and then use the new packages to have customized disk quotas applied to cPanel accounts. As a long-term solution, using packages to store and assign disk quotas will help to ensure they remain intact and are not inadvertently reset.

If the difficulty with disk quotas being reset is persistently recurring or recurring frequently, I would consider submitting a support request so that the issue may be investigated further.