Results 1 to 8 of 8

Thread: BU script filled / partition log in not possible

  1. #1
    Join Date
    Jun 2008
    Location
    Ballard
    Beans
    2,409
    Distro
    Ubuntu 16.04 Xenial Xerus

    BU script filled / partition log in not possible

    I ran the following B/U script:

    Code:
    # redirect from script --> sends all STDERR to log file
    # run in cron [0 4 * * 1 /home/[scriptpath] >/dev/null 2>&1] Mondays at 4 AM
    
    budate="date +%Y%m%d"
    exec 2> /home/[username]/Desktop/$budate # use dated folder on desktop
    
    
    
    ## backup Tunage
    
    
    if ! mountpoint -q /media/TunageBU
    then
       mount -t [filesystem] -U [UUID] /media/TunageBU
    fi
    
    # Note rsync -a copies permissions but will not copy owner:group if not run as root
    
    rsync -ailS --delete --progress /media/Tunage/iTuna /media/TunageBU
    
    umount /media/TunageBU
    
    
    ## backup Tonage
    
    
    if ! mountpoint -q /media/TonageBU
    then
       mount -t [filesystem] -U [UUID] /media/TonageBU
    fi
    
    # Note rsync -a copies permissions but will not copy owner:group if not run as root
    
    rsync -ailS --delete --progress /media/TonageBU/Zoom /media/TonageBU
    rsync -ailS --delete --progress /media/TonageBU/BB /media/TonageBU
    
    umount /media/TonageBU
    As you can see, / should not be written to at all. However, at some point I received a drive-full error and rebooted the machine. I am now unable to log in through Gnome ("The configuration defaults for GNOME Power Manager have not been installed").

    I am able to ssh into the machine (as root if necessary), but can't find the fat to delete it. I looked in /var/backups (empty) and in /tmp and /var/tmp (also devoid of anything interesting).

    A little help?

    (Is there a problem with my script? Why did / fill itself up? How do I correct the matter at hand? How do I get my script to backup without filling / (none of the backups are for or to the / partition)?)

    Thanks.
    Last edited by jamesisin; August 15th, 2010 at 10:49 PM.
    "We're all in this together, kid." --H. Tuttle (a.k.a. H. Buttle)
    "Maybe it's a layer 8 problem." --thatguruguy
    A High-Tech Blech!

  2. #2
    Join Date
    Jun 2008
    Location
    Ballard
    Beans
    2,409
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: BU script filled / partition log in not possible

    Also, I found a folder called /home/username/T which is loaded with files in folders according to extension (wave, zip, pgn, &c). What is this doing here? Is it something new or perhaps related to this issue?
    "We're all in this together, kid." --H. Tuttle (a.k.a. H. Buttle)
    "Maybe it's a layer 8 problem." --thatguruguy
    A High-Tech Blech!

  3. #3
    Join Date
    Jun 2008
    Location
    Ballard
    Beans
    2,409
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: BU script filled / partition log in not possible

    I successfully moved /home/username/T onto a different partition, but df -hk still shows my / as 100% (which is unlikely).

    I really need to get back on this machine. Can anyone help out?
    "We're all in this together, kid." --H. Tuttle (a.k.a. H. Buttle)
    "Maybe it's a layer 8 problem." --thatguruguy
    A High-Tech Blech!

  4. #4
    Join Date
    Jul 2010
    Beans
    39

    Re: BU script filled / partition log in not possible

    You did check /var/logs right? [Actually, /var/*]

    Can you mount it? Get a shell? [I'm assuming yes, at least via SSH?]

    Then, I guess, "man find" Something like "find / -size gt10000 -print" [That's not right, but it'll give you a heads up on any big files, anywhere under "/" once you get the syntax......]

    However, who is "username/T"?.... Sounds like you've got no idea what (s)he is and/or what all that stuff you just moved actually is?..... I dunno 'bout that

    Cheers,
    Ian

  5. #5
    Join Date
    Jun 2008
    Location
    Ballard
    Beans
    2,409
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: BU script filled / partition log in not possible

    Quote Originally Posted by fast_ian View Post
    You did check /var/logs right? [Actually, /var/*]

    Can you mount it? Get a shell? [I'm assuming yes, at least via SSH?]

    Then, I guess, "man find" Something like "find / -size gt10000 -print" [That's not right, but it'll give you a heads up on any big files, anywhere under "/" once you get the syntax......]

    However, who is "username/T"?.... Sounds like you've got no idea what (s)he is and/or what all that stuff you just moved actually is?..... I dunno 'bout that
    I didn't see anything of interest in the logs. It's possible I overlooked something, of course, but I don't know what I might look for in specific. For example, rsync is not mentioned. I went through other parts of /var by date (looking for activity today) and didn't see anything exciting either.

    The folder called T, it turns out, was related to a recovery operation I performed months ago. It was about 2.5 GB and it is now sitting on a different drive out of the way. However, even after moving those 2.5 GB df still shows / and /var/lib/unreadahead/debugfs at 100% (there is nothing in degubfs, by the way).

    (As a general rule, I sanitize usernames and machinenames.)
    "We're all in this together, kid." --H. Tuttle (a.k.a. H. Buttle)
    "Maybe it's a layer 8 problem." --thatguruguy
    A High-Tech Blech!

  6. #6
    Join Date
    Jun 2008
    Location
    Ballard
    Beans
    2,409
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: BU script filled / partition log in not possible

    Ok, I've figured some of this out.

    This section:

    Code:
    if ! mountpoint -q /media/TunageBU
    then
       mount -t [filesystem] -U [UUID] /media/TunageBU
    fi
    is supposed to check to see if /TunageBU is mounted and if it is not to then mount it. This seems to have failed and thus rsync went ahead and created a folder at /media for the sync operation.

    Can anyone help with this scripting question?
    "We're all in this together, kid." --H. Tuttle (a.k.a. H. Buttle)
    "Maybe it's a layer 8 problem." --thatguruguy
    A High-Tech Blech!

  7. #7
    Join Date
    Jun 2008
    Location
    Ballard
    Beans
    2,409
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: BU script filled / partition log in not possible

    There was an error in my script (in the mount commands). I have corrected that error and my script ought to function as expected. We shall see.

    Thanks, Ian, for helping out. I appreciate it.
    "We're all in this together, kid." --H. Tuttle (a.k.a. H. Buttle)
    "Maybe it's a layer 8 problem." --thatguruguy
    A High-Tech Blech!

  8. #8
    Join Date
    Jun 2008
    Location
    Ballard
    Beans
    2,409
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: BU script filled / partition log in not possible

    For those interested, I have written a blog post on this matter.

    Backup Script: A Love Story
    "We're all in this together, kid." --H. Tuttle (a.k.a. H. Buttle)
    "Maybe it's a layer 8 problem." --thatguruguy
    A High-Tech Blech!

Bookmarks

Posting Permissions

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