|
01/20/2013, 12:58 AM
#171
 Originally Posted by tyh2o
Any solution to this error?
Assuming you have Preware installed this is the only premanent solution, there is no patch yet; it uses Xecutah/XTerm; Tailor is useful to view results but not essential to the solution. It should work on a TouchPad also. TouchPads have twice the memory allocated to the MojoDB compared to a Pre3, so are less likely to get the error. You will need a magnifying glass to read the XTerm screen results and command lines. Type carefully and inspect each command line before pressing Return. I also recommend cutting the E-Mail tracking down to only 1-Day to help avoid this problem, if you do not do this procedure.
Original Credit to Dkirker; modified, clarified and enhanced by jrwolff; tested succesfully on a Pre3 by jrwolff:
MojoDB (Application Database) Partition Resize - Pre3
For Command Lines Use Xecutah, From there: Start XTerm.
#Pre3 File System Mount Point Size/Used Called/Purpose
#/dev/mapper/store-root / 559.1M/428.3M
#/dev/root /boot 31.0M/13.4M
#/dev/mapper/store-media /media/interval 12.8G/1.4G <== (Source of Space) (Fat32 File System - USB Drive)
#/dev/mapper/store-cryptodb /var/db 135.0M/116.1M<== (Expansion Target) /dev/mapper/mojodb (db8: Application Database)
#/dev/mapper/store-cryptofilecache /var/file-cache 127.5M/67.3M (Stores Contact Pictures & E-Mail Attachments)
#/dev/mapper/store-log /var/log 23.2M/15.8M
#/dev/mapper/store-var /var 62.0M/19.2M
#/dev/mapper/store-update /var/lib/update 62.0M/19.2M (Mounted on /var)
#/dev/loop0 /opt 124.0M/80.2M
# BEGIN
# Make sure that the Battery is Fully Charged for this Procedure.
# Turn Off All Radios and Place the Phone in Airplane Mode to Prevent Interruptions and Data File corruption.
# Check Current Partition Usage (Pipe to "more" to Control the Display):
df -h | more (To Enter the Pipe "|" Symbol On the Pre3 Keyboard: Sym P)
# OR
df -h /dev/mapper/store-media
df -h /dev/mapper/store-cryptodb
# Resize & Increase the /var/db (/dev/mapper/mojodb) MojoDB Partition from 135MB to >=768MB:
## Part 1 - Shrink the /media/internal (/dev/mapper/store-media) "USB Drive" File System Partition Size from 12.8G
# Stop the cryptofs Service; i.e., "pause" it.
pkill -SIGUSR1 cryptofs
# Unmount the /media/internal (/dev/mapper/store-media) "USB Drive" File System Partition.
umount /media/internal
# Check the /media/internal (/dev/mapper/store-media) USB File System for Errors.
f s c k.vfat -r /dev/mapper/store-media
# Eliminate spaces for the "f s c k" command name; added to get past the mechanized moderator.
# If there are any Differences between Boot Sector and Backup, then Copy Original to Backup (Option 1).
# Shrink the USB Partition (Replace "12.8G" with the new reduced amount of space, Recommend 12.0G; the Partition is 12.8G by Default)
# Note: Wait for the 100% Complete message and a prompt.
resizefat -v /dev/mapper/store-media 12.0G
# Reduce the USB Logical Volume Size; i.e., Make the "Physical" Disk Smaller. (12.0G is the **SAME** number as above.)
# Note: Type "y" after Reduce Media WARNING and prompt.
lvreduce -L 12.0G /dev/mapper/store-media
# Remount the /media/internal (/dev/mapper/store-media) "USB Drive" File System Partition.
mount /media/internal
# Restart the cryptofs Service.
pkill -SIGUSR2 cryptofs
# Recommended: Do A Full Device Restart; after Rebooting Continue with Part 2 below.
## Part 2 - Increase the /var/db (Application Database) Encrypted File System Partition Size
# Recommended: Use Tailor to easily Confirm the actual amount of Unused Memory Space & Use that Number less 8MB with lvextend below.
# [Optional: After Rebooting and using Tailor, Use Xecutah, From there: Start XTerm.]
# Stop the MojoDB Service.
/sbin/stop mojodb
# Unmount the /var/db (/dev/mapper/store-cryptodb = /dev/mapper/mojodb) Encrypted File System Partition.
umount /dev/mapper/store-cryptodb
# Extend the (/dev/mapper/store-mojodb) MojoDB File System By Adding 768MB (12.8G-12.0G).
# The Plus sign (+) is important because it Adds the newly available space to the existing space.
lvextend -L +768M /dev/mapper/store-mojodb
# Extend the /var/db (/dev/mapper/store-cryptodb) Encrypted File System Size Up To the New Limit Now Available.
cryptsetup resize /dev/mapper/store-cryptodb
# Resize the Underlying /var/db (/dev/mapper/store-cryptodb) Encrypted File System.
resize2fs -f -p /dev/mapper/store-cryptodb
# Remount the /var/db (/dev/mapper/store-cryptodb = /dev/mapper/mojodb) Encrypted File System and Partition.
mount /dev/mapper/store-cryptodb
# Restart the MojoDB Service.
/sbin/start mojodb
# Exit XTerm/Xecutah
exit
# Do A Full Device Restart.
## Part 3 - After Rebooting, Use Xecutah, From there: Start XTerm.
# Verify that the New File System/Partition Size of /var/db (/dev/mapper/store-cryptodb) is >= 971.9M.
df -h /dev/mapper/store-cryptodb
df -h /var/db
# Check the /var/db (/dev/mapper/store-cryptodb = /dev/mapper/mojodb) Encrypted File System for Errors.
f s c k.ext3 -n -f /dev/mapper/store-cryptodb
# Exit XTerm/Xecutah
exit
# Use Tailor to Confirm that there is minimal Unused Memory Space, like 8MB.
## Part 4 - Increase the mojodb Quota Limit to reflect the new additional space available in the Partition.
# Use Internalz Pro to Open and edit the quota limit in the mojodb Configuration File located at:
# /etc/palm/mojodb.conf
# Look for: {"owner":"com.palm.*","size":78643200}
# Increase the quota limit from 78643200 (75MB *1024*1024) to about 53% of the new Partition size.
# For example, If the new Partition size is 971.9MB, then set the new quota to: 512*1024*1024 = 536870912
# Do A Full Device Restart.
# Turn Off Airplane Mode and Turn On Radios (Wi-Fi, Data Connection, etc.).
# FINISHED.
=======================================================================================
My TouchPad Info Before Changes:
#TouchPad File System Mount Point Size/Used Called/Purpose
#/dev/mapper/store-root / 559.1M/453.2M
#/dev/root /boot 31.0M/22.5M
#/dev/mapper/store-media /media/interval 27.6G/1.9G <== (Source of Space) (USB Drive)
#/dev/mapper/store-cryptodb /var/db 247.0M/50.3M <== (Expansion Target) /dev/mapper/mojodb (db8: Application Database)
#/dev/mapper/store-cryptofilecache /var/file-cache 127.5M/117.0M (Stores Contact Pictures & E-Mail Attachments)
#/dev/mapper/store-log /var/log 23.2M/8.1M
#/dev/mapper/store-var /var 62.0M/48.0M
#/dev/mapper/store-update /var/lib/update 62.0M/48.0M (Mounted on /var)
#/dev/loop0 /opt 124.0M/80.2M
---------------------------------------
Good Luck!
|
|
|