zfsnotes:notes_sur_zfs
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
zfsnotes:notes_sur_zfs [2018/09/21 15:28] – créée ghusson | zfsnotes:notes_sur_zfs [2023/04/04 13:22] (Version actuelle) – ghusson | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
**List disks by ID** | **List disks by ID** | ||
- | < | + | < |
+ | ls -alh / | ||
+ | </ | ||
Help : make correspondances with disks by-path : | Help : make correspondances with disks by-path : | ||
- | < | + | < |
+ | ls -alh / | ||
+ | </ | ||
An other view : | An other view : | ||
- | < | + | < |
+ | lsblk -o NAME, | ||
+ | </ | ||
+ | **Create zpool of RAIDZ1 type**, named " | ||
+ | Notes : The ashift needs to be set at least to the sector-size of the underlying disks (2 to the power of ashift is the sector-size), | ||
- | + | < | |
- | **Create zpool of RAIDZ1 type**, named " | + | |
- | < | + | |
zpool create -f zp1 raidz1 -o ashift=12 / | zpool create -f zp1 raidz1 -o ashift=12 / | ||
</ | </ | ||
**Get some info about it :** | **Get some info about it :** | ||
- | < | + | < |
+ | zpool list | ||
zpool status -Pv zp1 | zpool status -Pv zp1 | ||
zpool get all | zpool get all | ||
Ligne 24: | Ligne 31: | ||
RQ : by default, it is mounted over /zp1 | RQ : by default, it is mounted over /zp1 | ||
- | < | + | < |
+ | zfs get all | ||
# You see the mount point here ! | # You see the mount point here ! | ||
</ | </ | ||
Ligne 31: | Ligne 39: | ||
- 1 partition, size = memory size / 2 | - 1 partition, size = memory size / 2 | ||
- 1 partition with the lefting space | - 1 partition with the lefting space | ||
- | < | + | < |
+ | zpool add zp1 log / | ||
zpool add zp1 cache / | zpool add zp1 cache / | ||
zpool status -Pv zp1 | zpool status -Pv zp1 | ||
</ | </ | ||
- | |||
- | |||
**REVERT :** | **REVERT :** | ||
- | < | + | < |
zpool remove zp1 / | zpool remove zp1 / | ||
zpool remove zp1 / | zpool remove zp1 / | ||
zpool destroy zp1 | zpool destroy zp1 | ||
</ | </ | ||
- | |||
**TESTS** | **TESTS** | ||
- | < | + | < |
+ | apt-get install fio | ||
echo 3 > / | echo 3 > / | ||
Ligne 61: | Ligne 68: | ||
# 3 SAS 10k disks, 80GB, SLOG 20GB, CACHE 120GB | # 3 SAS 10k disks, 80GB, SLOG 20GB, CACHE 120GB | ||
# before each test, run : echo 3 > / | # before each test, run : echo 3 > / | ||
- | < | + | < |
READ: io=272184KB, | READ: io=272184KB, | ||
WRITE: io=64730KB, aggrb=2014KB/ | WRITE: io=64730KB, aggrb=2014KB/ | ||
Ligne 67: | Ligne 74: | ||
# remove CACHE | # remove CACHE | ||
- | < | + | < |
zpool remove zp1 / | zpool remove zp1 / | ||
Ligne 75: | Ligne 82: | ||
# remove SLOG | # remove SLOG | ||
- | < | + | < |
zpool remove zp1 / | zpool remove zp1 / | ||
Ligne 81: | Ligne 88: | ||
WRITE: io=50655KB, aggrb=1489KB/ | WRITE: io=50655KB, aggrb=1489KB/ | ||
</ | </ | ||
+ | |||
+ | |||
+ | **Compare to MD (soft raid) RAID5 over same 3 disks :** | ||
+ | Run status group 0 (all jobs): | ||
+ | READ: io=139365KB, | ||
+ | WRITE: io=34421KB, aggrb=981KB/ | ||
zfsnotes/notes_sur_zfs.1537543707.txt.gz · Dernière modification : 2018/09/21 15:28 de ghusson