Archive for December, 2007

I have moved this to an article, which can be accessed here.

This is a very good talk about current copyright law here

I finally got a workable VMware Server backup script, at least for VMware Server running on Linux. It currently only dumps the currently running VMs into a series of compressed tar files. It defaults to using snapshots so the VMs don’t actually become unavailable.

I put it up at here (this link has been corrected)

I’ll probably move it later if I do a newer version.

  • Do the following on the system that is exporting the storage (iscsi target)
    • Install Ubunty Hardy (prior versions do not properly install the iscsitarget package)
    • If you have only one drive, I recommending installing with LVM. This allows creating multiple iscsi luns a bit easier.
    • aptitude install iscsitarget
    • aptitude install iscsitarget-source
    • module-assistant
      • Update
      • Prepare (answer yes at the prompt)
      • Select
      • Choose iscsitarget
      • Build and answer yes to install
      • Hit ESC-ESC to exit
    • Set up a partition or Logical Volume (example below assumes that the OS was installed using LVM and that the volume group is called rootvg)
      • lvcreate -n datastore01 -L 50G /dev/mapper/rootvg
    • Set up a iscsi target
      • Use the command “cat /proc/net/iet/session” to see what tid values are already in use.
      • ietadm –op new –tid=tidnum –params Name=iqn.hostname.com:targetname
      • Example: ietadm –op new –tid=2 –params Name=iqn.155.64.37.91:datastore01
    • Set up an iscsi lun
      • ietadm –op new –tidnum –params Path=devpath,Type=blockio or ietadm –op new tidnum –params Path=devfile,Type=fileio
      • Example: ietadm –op new –tid=2 –params Path=/dev/mapper/rootvg-datastore01,Type=blockio
    • Skip this step for now, I’ve been unable to get it to work properly… Set up username/password on the lun
      • ietadm –op new –tid=tidnum –user –params IncomingUser=userid,Password=password
  • Do the following on the system that is accessing the storage
    • If the system is running Linux
      • Install the open-iscsi package
        • aptitude install open-iscsi
      • iscsiadm -m node –targetname iqn.155.64.37.91:datastore01 –portal 155.64.37.91:3260 –login
    • If the system is running VMware ESX
      • vmkiscsi-tool -D -a 155.64.37.91 vmhba40
      • vmkiscsi-tool -l -T vmhba40
      • use fdisk to create a single partition that uses the entire disk and has a type of fd
      • vmkfstools -C vmfs3 -S devname /vmfs/devices/disks/vmhba40:0:0:1