1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
| 1. fdisk -l |more
2. fdisk /dev/sdb
[proxmox:~]# fdisk /dev/sdb
The number of cylinders for this disk is set to 10011.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sdb: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-10011, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-10011, default 10011): +10000M
Command (m for help): p
Disk /dev/sdb: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 10011 9775521 83 Linux
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 8e
Changed system type of partition 1 to 8e (Linux LVM)
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
3. pvcreate /dev/sdb1
4. vgcreate backup /dev/sdb1
5. vgdisplay -v backup
6. lvcreate -L10000 -n vm101 backup
7. lvdisplay -v /dev/backup/vm101
8. mkfs.ext4 /dev/backup/vm101
9. mkdir -p /backup/vm101 dans [proxmox:~#]
10. mount /dev/backup/vm101 /backup/vm101
Enfin, j'ai ajouté un nouvel emplacement dans le storage GUI avec le chemin /backup/vm101 ainsi qu'un nouveau job pour la sauvegarde automatique. |
Partager