VMWare – Le stockage du pauvre
# Créer une VM linux (Debian de préférence) avec 3 disques :
* 50Go <- OS
* 100Go <- NFS
* 100Go <- ISCSI
#VMWare Tools
apt-get install build-essential apt-get install iscsitarget iscsitarget-dkms nfs-kernel-server
# NFS
cfdisk /dev/sdb mke2fs /dev/sdb1 mkdir /nfs echo /dev/sdb1 /nfs auto rw,user,auto 0 0 >> /etc/fstab mount /nfs echo /nfs *\(rw,sync,no_subtree_check\) >> /etc/exports exportfs -a
#ISCSI
cfdisk /dev/sdc mke2fs /dev/sdc1 mkdir /iscsi echo /dev/sdc1 /iscsi auto rw,user,auto 0 0 >> /etc/fstab mount /iscsi echo ISCSITARGET_ENABLE=true>/etc/default/iscsitarget echo Target iqn.2011-04.Stockage.SNAKENET:partage1 >>/etc/iet/ietd.conf echo Lun 0 Path=/iscsi/partage0,Type=fileio >>/etc/iet/ietd.conf echo Lun 1 Path=/iscsi/partage1,Type=fileio >>/etc/iet/ietd.conf # Lun 4Go dd if=/dev/zero of=/iscsi/partage0 seek=1M bs=4096 count=1 # Lun 10Go dd if=/dev/zero of=/iscsi/partage1 count=0 obs=1 seek=10G # expand lun of 1000Mo dd oflag=append conv=notrunc if=/dev/zero of=/iscsi/partage0 bs=1MB count=1000 /etc/init.d/iscsitarget restart
That’s it 🙂
Laisser un commentaire