How to SUCCESSFULLY transfer SQL and HEM to new partition??
Results 1 to 4 of 4
  1. #1
    Senior Member
    Join Date
    Feb 2009
    Posts
    297

    Default How to SUCCESSFULLY transfer SQL and HEM to new partition??

    Hey ---- I just got a new 250gig HDD -- I put the image of my original HDD on it. For some reason it didnt use the whole partition--- but instead the size of the original 80 gig drive -- with a new 160 gig partition.

    All is fine and dandy - but the reason for the new HDD is SQL folder was getting quite large (About 20 gigs right now) and out of 80 - thats too much! Now I want to transfer my PostSQL and HEM to the extra partition so that I can re-format the first one. (I plan on using the 160 gig 2nd partition for HEM and SQL only - but dont wanna go thorugh re-install process! Anyway to do this? This way everytime I format (I typically do a lot) I dont have to ever do anything with HEM and SQL cuz it will be on its own partition

  2. #2
    *** HM3! *** fozzy71's Avatar
    Join Date
    Jun 2005
    Location
    HM Support
    Posts
    32,814

    Default

    I've recently bought a new hard drive and I would like to transfer my Holdem Manager database to the new hard drive, as it is taking up too much space on my old one. How would I go about doing this?


    Make sure you have turned off logging and deleted your SQL pg_log files, as they may be taking up a substantial portion of your DB size.


    Logging:

    I would suggest you turn off logging on your new SQL installation as well as these other performance improvements - Top 10: HEM performance increase tips


    To turn off logging, follow these instructions. This is the first thing I do anytime I install SQL for someone.

    - Start > My Computer > Tools > Folder Options > View > UnCheck 'Hide Extensions for known file types' > OK

    - C:\Program Files\PostgreSQL\data\postgresql.conf > Right-Click > Open With.. > NotePad > Check 'Always use this program'

    - Scroll about half way down to ~Lines 245 - 260:

    - The last line of this block of code, for the 'logging_collector', must be changed from On to Off.

    PHP Code:
    ------------------------------------------------------------------------------
    # ERROR REPORTING AND LOGGING
    #------------------------------------------------------------------------------

    # - Where to Log -

    log_destination 'stderr'        # Valid values are combinations of
                        # stderr, csvlog, syslog and eventlog,
                        # depending on platform.  csvlog
                        # requires logging_collector to be on.

    # This is used when logging to stderr:
    logging_collector off        # Enable capturing of stderr and csvlog 
    File > Save; File > Close

    Start > Programs > PostgreSQL 8.3 > Reload Configuration.

    *edit:
    - Start > My Computer > C:\Program Files\PostgreSQL\data\pg_log, or C:\Program Files (x86)\PostgreSQL\data\pg_log, if you have 64 bit Vista. Delete all files in that folder. And it might be a good idea to empty your recycle bin at that point, or use a 3rd party utility like CCleaner to clean up all your junk/temporary files. You want to do this before you get to the vacuum and defrag process.

  3. #3
    Senior Member
    Join Date
    Feb 2009
    Posts
    297

    Default

    logging is off - I have a 7 million hand DB - still has a huuuuuuuge folder in programfiles \ postgreSQL\8.4\DATA --- theres a folder in there "base" that has 5 folders - one of which is 26 gigs.

    Regardless - dont realyl care how big it gets - I need to know how to move it to a new partition. (I want to transfer it from C to D: without having to re-install everything or mess with crappy 8.4 SQL again from scratch

  4. #4
    *** HM3! *** fozzy71's Avatar
    Join Date
    Jun 2005
    Location
    HM Support
    Posts
    32,814

    Default

    Quote Originally Posted by 4entourage View Post
    ..............
    Regardless - dont realyl care how big it gets - I need to know how to move it to a new partition. (I want to transfer it from C to D: without having to re-install everything or mess with crappy 8.4 SQL again from scratch
    I already told you how to do it.


Similar Threads

  1. Replies: 1
    Last Post: 05-08-2009, 06:21 PM
  2. Postgres on Partition
    By madlion in forum Manager General
    Replies: 1
    Last Post: 04-12-2009, 04:37 PM
  3. Can't successfully install HoldemManager
    By davew in forum Manager General
    Replies: 10
    Last Post: 04-07-2009, 06:00 PM
  4. Move a db to another partition
    By florinel26 in forum Manager General
    Replies: 1
    Last Post: 12-19-2008, 11:00 AM
  5. can't import successfully
    By MSUPokerGod in forum Manager General
    Replies: 1
    Last Post: 09-21-2008, 06:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •