This is part of our series on building a NAS. In this article we will get the box set up with a static IP address, and get your drives set up for RAID 1.
We are assuming that at this point you have Ubuntu installed. We are gong to install software raid in a moment. The first thing I want to do is make sure we have a static ip address. Usually Ubuntu will start up with a dynamic ip address. This can make it more difficult to transfer files to this box, so lets make it static.
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.