next

 http://www.opvps.com/?p=180

vgcreate leif /dev/sda5

root@sysu-w-desktop:~# lvcreate -L 10G -nvm1_root leif
  Logical volume "vm1_root" created
root@sysu-w-desktop:~# lvcreate -L 2G -nvm1_swap leif

  Logical volume "vm1_swap" created

root@sysu-w-desktop:~# mkfs.ext3 /dev/leif/vm1_root
mke2fs 1.41.3 (12-Oct-2008)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
655360 inodes, 2621440 blocks
131072 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2684354560
80 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Writing inode tables: done                            
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 26 mounts or

180 days, whichever comes first.  Use tune2fs -c or -i to override.

 

root@sysu-w-desktop:/mnt/etc# xm create -c /etc/xen/vm1.cfg
ERROR Internal error: Could not obtain handle on privileged command interface (2 = No such file or directory)
Traceback (most recent call last):
  File "/usr/sbin/xm", line 8, in <module>
    from xen.xm import main
  File "/usr/lib/python2.5/site-packages/xen/xm/main.py", line 61, in <module>
    xc = xen.lowlevel.xc.xc()
xen.lowlevel.xc.Error: (1, 'Internal error', 'Could not obtain handle on privileged command interface (2 = No such file or directory)')




posted @ 2009-04-13 15:58  雨纷飞  阅读(529)  评论(0)    收藏  举报