Ignore:
Timestamp:
Oct 9, 2007, 2:27:21 AM (17 years ago)
Author:
tabbott
Message:

1) reworking of lvm stuff into a single python script rather than a pile of shell scripts

2) changing naming for database VMs to always start with d_

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-database/sipb-xen-database/client/etc/xen/sipb-database

    r117 r146  
    55
    66connect('postgres://sipb-xen@sipb-xen-dev.mit.edu/sipb_xen')
     7prefix = "d_"
    78
    89# 'machine_name', and optionally 'cdrom_image', should get passed in
     
    2122maxmem = memory
    2223check(re.match('^[A-Za-z0-9][A-Za-z0-9._-]*$', machine.name))
    23 name = machine.name
     24name = prefix + machine.name
    2425check(re.match('^[0-9a-f-]+$', machine.uuid))
    2526uuid = machine.uuid
     
    5960for d in machine.disks:
    6061    check(re.match('^[A-Za-z0-9]+$', d.guest_device_name))
    61     device = '/dev/xenvg/' + machine.name + '_' + d.guest_device_name
     62    device = '/dev/xenvg/' + prefix + machine.name + '_' + d.guest_device_name
    6263    dspec = 'phy:%s,%s%s,w' % (device, diskioemu, d.guest_device_name)
    6364    disk.append(dspec)
Note: See TracChangeset for help on using the changeset viewer.