Resizing a logical volume

I backup my photos from an iMac to a Ubuntu linux box with a simple rsync command.

rsync --exclude=".*" -ave ssh /my/masters userId@x.x.x.y:/media/pictures

This will copy everything new from /my/masters to the backup machine at /media/pictures without copying any “dot” files. This also does not delete anything from the new machine.

Anyway, I was doing the rsync, but ran out of space on the backup box. A ctrl-z, and now I need to make more space. I am running ext3, so it should be just a few commands. First I unmounted (umount) the filesystems just to be sure. Then :

lvextend -L +40G /dev/vg/pictures

This will grow the logical volume by 40 gig. Next we need to resize the filesystem to fill up the space.

resize2fs /dev/vg/pictures

I have done this before, but this time I got a message to run e2fsck first.

e2fsck -f /dev/vg/pictures

This finished without issue, and I then ran the resize2fs command and it finished after a couple of minutes. Remount the filesystem, a “df” and it confirms that there is more space available.

I removed the last file copied to make sure it wasn’t wrecked somehow, and then kicked off the rsync again. It just picked up where it left off.

New storage needed.

I am getting tired of my linux based setup. It just doesn’t work well enough. The biggest issue I have is that everytime it gets powered down (vacation, storm, etc) and comes back up, it doesn’t quite. I always have to execute some command line magic to get everything recognised. I have tried Gentoo, Ubuntu, Mythbuntu, all with the same issue. I think it is the add in SATA card I have in there, but I don’t want to swap out more computer hardware this time.

Continue reading

Delicious 2

Delicious 2, an update to the del.icio.us web site is now out. They are now just delicious.com thank you very much. Delicious is a web site that allows you to store bookmarks out in the cloud (apparently our new word for server) so you and anyone else (if you want them public) can access your bookmarks.

I decided to enter this yummy new world, and uploaded my list of bookmarks. Fast. Looks neat. I have been using the foxmarks plugin for firefox to store and sync my bookmarks, so I am not sure how much I will use this. I haven’t used social sites very much in the past, but who knows.

Check your backups

In my backup strategy, I mentioned, like Scott, I had a small 2.5 inch drive that I could use to keep a backup of my data when on the road. I don’t use it much. I don’t travel often, and I am not allowed to use it at work.

So, with a trip coming up in July, I thought I would test it out. From a short trip to Rochester MN last weekend, I had some images on my laptop. (I hadn’t deleted the cards before getting the images to the main computer though) I copied the masters to the portable, then imported them into Aperture from the external drive. Oops. Several garbled images. Reformated the drive and I tried again. Same thing, different images. Dead drive, or housing. Guess I am going shopping.

I need more space.

So after I talked about my backup strategy, I went and started my command to sync my pictures. I went to checkup on it, and it was stuck. I checked, and I was out of space. Oh oh. I stopped the sync. Now what? Well, the drives are sporting LVM2, and I had extra space available, so I just added some.

First add some more space to the volume:
# lvextend -L +1G /dev/vgnas/pictures

Then tell ext3 about the extra space.
# resize2fs /dev/vgnas/pictures

Thats it. I did it live, without unmounting. I then went back to my rsync command, and it continued right where it left off. Sometimes I really like linux.

Backup Strategy

Scott Kelby just posted his backup strategy, and I thought I would follow up with mine.

The thing that is really interresting about Scott and my solutions, is that there are a lot of similarities. But mine cost a lot less.

His first step is to save on location to an Epson P-500 (link). That would be cool. I have looked at those wistfully before. I don’t have anything comparable. I don’t travel as much as he does, so I just have to put in my empty card and go from there.
Continue reading