Installation XEN : Différence entre versions
(→Augmenter la taille d'un serveur :) |
|||
| Ligne 1 : | Ligne 1 : | ||
| − | |||
== Commandes principales == | == Commandes principales == | ||
| Ligne 24 : | Ligne 23 : | ||
first create an extra image with the desired size (here 1GB) that will be added to the current image | first create an extra image with the desired size (here 1GB) that will be added to the current image | ||
| − | dd if=/dev/zero of=extra.img bs=1M count=1024 | + | # dd if=/dev/zero of=extra.img bs=1M count=1024 |
1024+0 records in | 1024+0 records in | ||
1024+0 records out | 1024+0 records out | ||
| Ligne 32 : | Ligne 31 : | ||
Make sure domU is not running. Then just add extra.img to your domU image file (here domU.img). Yes just as simple Very Happy | Make sure domU is not running. Then just add extra.img to your domU image file (here domU.img). Yes just as simple Very Happy | ||
| − | cat domU.img extra.img > domU.resize.img | + | # cat domU.img extra.img > domU.resize.img |
You also need to enlarge your filesystem. I've test it with ext3 but not with ReiserFS - it seems ReiserFS needs resize_reiserfs instead of resize2fs -. | You also need to enlarge your filesystem. I've test it with ext3 but not with ReiserFS - it seems ReiserFS needs resize_reiserfs instead of resize2fs -. | ||
| − | + | # ef2fsck -f domU.resize.img | |
| − | + | # resize2fs domU.resize.img | |
Finally modify your domU config file or move domU.resize.img over domU.img. | Finally modify your domU config file or move domU.resize.img over domU.img. | ||
Version du 7 novembre 2007 à 13:59
Commandes principales
Les fichiers d'images sont dans /home/xen/domains
pour voir les serveurs en cours sur un hôte :
# xm list
pour démarrer un serveur :
# xm create nom_du_serveur.cfg
pour le reste :
# xm
vous donnera les autres commandes dispos
Augmenter la taille d'un serveur :
first create an extra image with the desired size (here 1GB) that will be added to the current image
# dd if=/dev/zero of=extra.img bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 5.09034 seconds, 211 MB/s
Make sure domU is not running. Then just add extra.img to your domU image file (here domU.img). Yes just as simple Very Happy
# cat domU.img extra.img > domU.resize.img
You also need to enlarge your filesystem. I've test it with ext3 but not with ReiserFS - it seems ReiserFS needs resize_reiserfs instead of resize2fs -.
# ef2fsck -f domU.resize.img
# resize2fs domU.resize.img
Finally modify your domU config file or move domU.resize.img over domU.img.