Monday, March 30, 2009

Virtual Machines II

The FreeNas option I talked about in my previous post about virtual machines seemed like a fun thing to try. So I downloaded a FreeNas VMware image and added it to my inventory. After setting it up and adding a 10Gb disk, I wanted to auto mount it in my Linux VM. Took me a bit of googling, but I got it done:

> mkdir /u01/freenas_10gb

Then I added this line to /etc/fstab (see http://nfs.sourceforge.net/nfs-howto/ar01s04.html ):

10.10.10.10:/mnt/FreeNas_10Gb /u01/freenas_10gb nfs rw 0 0

where 10.10.10.10 is the ip address of my FreeNas server (VM). after reboot I was happy to see:

[root@rac1 ~]# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00 16067440 7416848 7826604 49% /
/dev/sda1 147764 11940 128195 9% /boot
tmpfs 1037800 0 1037800 0% /dev/shm
10.10.10.10:/mnt/FreeNas_10Gb 10154144 1920 9339904 1% /u01/freenas_10gb

[root@rac1 ~]# ls /u01/freenas_10gb
FreeNAS-SUG.pdf

Nice!

No comments: