Atelier SysRes SE4 2024/2025 E13
Aller à la navigation
Aller à la recherche
Configuration de la machine de services
/home et /var
root@SE4:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 973M 0 973M 0% /dev
tmpfs 199M 80K 199M 1% /run
/dev/xvda2 9.8G 481M 8.8G 6% /
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 500M 0 500M 0% /dev/shm
/dev/xvda3 9.8G 24K 9.3G 1% /home
/dev/xvdb1 9.8G 147M 9.1G 2% /var
IP a
root@SE4:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:16:3e:b9:b5:cf brd ff:ff:ff:ff:ff:ff
inet 172.16.17.3/24 brd 172.16.17.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::216:3eff:feb9:b5cf/64 scope link
valid_lft forever preferred_lft forever
on s'occupe du disque var :
mkfs -t ext4 /dev/xvdb1
mount /dev/xvdb1 /mnt
mv /var/* /mnt
umount /mnt
mount -a
puis le home
mkfs -t ext4 /dev/xvda3
mount -a
detrez