Lvmraid
De SME Server Wiki
Révision de 30 juillet 2007 à 23:28 par 192.168.1.100 (discussion)
grace a lvm et raid1 par defaut sur sme vous pouvez gerer facilement les disques, voir meme changer un disque ou deux et retoucher la taille des partitions.
voir http://forums.ixus.fr/viewtopic.php?t=38235&start=15 http://wiki.contribs.org/Raid#Upgrading_the_Hard_Drive_Size
resumé Upgrading the Hard Drive Size
* CAUTION MAKE A FULL BACKUP! * Ensure you have e-smith-base-4.16.0-33 or newer installed. [or Update to at least 7.1.3]
1. Shut down and install larger drive in system. 2. Boot up and manage raid to add new (larger) drive to system. 3. Wait for raid to fully sync. 4. Repeat steps 1-3 until all drives in system are upgraded to larger capacity. 5. Ensure all drives have been replace with larger drives and array is in sync and redundant! 6. Issue the following commands: 1. mdadm --grow /dev/md2 --size=max 2. pvresize /dev/md2 3. lvresize -l +$(vgdisplay -c main | cut -d: -f16) main/root ou lvresize -l +$(vgdisplay -c vg_primary | cut -d: -f16) vg_primary/lv_root
[-l (lower case L)]
4. ext2online -C0 /dev/main/root
[is -C0 (zero)]
Notes :
* All of this can be done while the server is up and running with the exception of #1. * These instructions should work for any raid level you have as long as you have >= 2 drives * If you have disabled lvm
1. you don't need the pvresize or lvresize command 2. the final line becomes ext2online -C0 /dev/md2 (or whatever / is mounted to)
resize machine vmware
d'abord:
C:\Program Files\VMware\VMware Server>vmware-vdiskmanager -x 8GB "F:\Documents\M
y Virtual Machines\VMWP-SME7\sme7pre1.vmdk"
C:\Program Files\VMware\VMware Server>vmware-vdiskmanager -c -s 8GB -a ide -t 1 "F:\Documents\My Virtual Machines\VMWP-SME7\sme7pre2.vmdk"
puis modifier le fichier de la machine pour ajouter le disque
ensuite meme chose que ajout de disque