# Synology M2 volume
[](https://www.paypal.com/paypalme/007revad)
[](https://github.com/sponsors/007revad)
[](https://user-badge.committers.top/australia/007revad)
### Description
Easily create an M.2 volume on Synology NAS without a lot of typing and no need for any how-to guides. And you ***don't*** need Synology branded NVMe drives.
This script creates the RAID and storage pool on your NVMe drive(s) so you can then create the volume in the Storage Manager.
All you have to do is run the script and type yes and 1, 2, 3 or 4 to answer some simple questions. Then go to Storage Manager and select Create Volume.
It also allows you to create a storage pool/volume spanning internal NVMe drives and NVMe drives in a Synology M.2 PCIe card.
For Xpenology users the script supports an unlimited number of NVMe drives (except for RAID 1 and Basic).
**Supports DSM 7 and later**
For [DSM 6 use v1](https://github.com/007revad/Synology_M2_volume/releases/tag/v1.3.25) and run **without** the auto update option.
**NEW in v2**
- Now shows "M.2 Drive #" the same as storage manager.
- Now uses synostgpool command which allows the following: (Thanks to Severe_Pea_2128 on reddit)
- Now supports JBOD, SHR, SHR2 and RAID F1.
- Added choice of multi-volume or single-volume storage pool. Multi-volume allows overprovisioning.
- Added option to skip drive check.
- No longer need to reboot after running the script.
- No longer need to do an online assemble.
- Removed drive check progress as it was not possible with synostgpool.
- You can see the drive check progress in Storage Manager.
- Removed dry run mode as it was not possible with synostgpool.
- Removed support for SATA M.2 drives.
- If you have SATA M.2 drives [use v1](https://github.com/007revad/Synology_M2_volume/releases/tag/v1.3.25) and run **without** the auto update option.
### RAID levels supported
| RAID Level | Min Drives Required | Maximum Drives | Script version |
| ----------- |------------------|----------------|----------------|
| SHR 1 | 1 or more drives | Unlimited | v2 and later (DSM 7 only) |
| SHR 2 | 4 or more drives | Unlimited | v2 and later (DSM 7 only) |
| Basic | 1 drive | 1 drive | all |
| JBOD | 1 or more drives | Unlimited | v2 and later (DSM 7 only) |
| RAID 0 | 2 or more drives | Unlimited | all |
| RAID 1 | 2 or more drives | 4 drives | all |
| RAID 5 | 3 or more drives | Unlimited | all |
| RAID 6 | 4 or more drives | Unlimited | v1.3.15 and later |
| RAID 10 | 4 or more drives | Unlimited | v1.3.15 and later |
| RAID F1 | 3 or more drives | Unlimited | v2 and later (DSM 7 only) |
If RAID F1 is selected the script enables RAID F1 on Synology models that don't officially support RAID F1.
### Confirmed working on
Click here to see list
| Model | DSM version | M.2 card | Notes |
| ------------ |--------------------------|-----------|-----------------|
| All | DSM 6 | | [Use v1](https://github.com/007revad/Synology_M2_volume/releases/tag/v1.3.25) run without auto update option |
| RS2423+ | DSM 7.2-64570 Update 1 | |
| DS1823xs+ | DSM 7.2-64561 | M2D20 |
| DS923+ | DSM 7.2.1-69057 Update 2 | |
| DS923+ | DSM 7.1.1-42962 Update 5 | |
| DS723+ | DSM 7.2.1-69057 Update 3 | |
| DS723+ | DSM 7.2-64570 Update 1 | |
| DS723+ | DSM 7.1.1-42962 Update 4 | |
| DS423+ | DSM 7.2.1-69057 Update 3 | |
| DS423+ | DSM 7.2-64570 Update 3 | |
| DS423+ | DSM 7.1.1-42962 Update 4 | |
| DS3622xs+ | DSM 7.2-64216 Beta | E10M20-T1 |
| DS3622xs+ | DSM 7.1.1-42962 Update 1 | |
| DS2422+ | DSM 7.2.1-69057 Update 4 | E10M20-T1 |
| DS1522+ | DSM 7.2.1-69057 Update 4 | |
| DS1522+ | DSM 7.2-64570 | |
| DS1522+ | DSM 7.1.1-42962 Update 4 | |
| DS1821+ | DSM 7.2.1-69057 Update 4 | E10M20-T1 | Also needs [Synology enable_M2_card](https://github.com/007revad/Synology_enable_M2_card) |
| DS1821+ | DSM 7.2.1-69057 Update 4 | M2D20 | Also needs [Synology enable_M2_card](https://github.com/007revad/Synology_enable_M2_card) |
| DS1821+ | DSM 7.2.1-69057 Update 4 | M2D18 | Also needs [Synology enable_M2_card](https://github.com/007revad/Synology_enable_M2_card) |
| DS1821+ | DSM 7.2.1-69057 Update 4 | |
| DS1821+ | DSM 7.2.1-69057 Update 3 | |
| DS1821+ | DSM 7.2.1-69057 Update 2 | |
| DS1821+ | DSM 7.2.1-69057 Update 1 | |
| DS1821+ | DSM 7.2.1-69057 | |
| DS1821+ | DSM 7.2-64570 Update 3 | |
| DS1821+ | DSM 7.2-64570 Update 1 | E10M20-T1 | Also needs [Synology enable_M2_card](https://github.com/007revad/Synology_enable_M2_card) |
| DS1821+ | DSM 7.2-64570 Update 1 | M2D18 | Also needs [Synology enable_M2_card](https://github.com/007revad/Synology_enable_M2_card) |
| DS1821+ | DSM 7.2-64570 Update 1 | |
| DS1821+ | DSM 7.2-64570 | |
| DS1821+ | DSM 7.2-64561 | |
| DS1821+ | DSM 7.2-64216 Beta | |
| DS1821+ | DSM 7.2-64213 Beta | |
| DS1821+ | DSM 7.1.1-42962 Update 4 | |
| DS1621+ | DSM 7.2-64570 Update 1 | E10M20-T1 | Also needs [Synology enable_M2_card](https://github.com/007revad/Synology_enable_M2_card) |
| DS1621+ | DSM 7.2-64570 Update 1 | |
| DS1621+ | DSM 7.1.1-42962 Update 4 | |
| RS1221+ | DSM 7.2-64570 Update 1 | E10M20-T1 |
| RS1221+ | DSM 7.1.1 | E10M20-T1 |
| DS1520+ | DSM 7.2.1-69057 Update 2 | |
| DS1520+ | DSM 7.2-64570 Update 1 | |
| DS1520+ | DSM 7.1.1-42962 Update 4 | |
| DS920+ | DSM 7.2.1-69057 Update 5 | |
| DS920+ | DSM 7.2.1-69057 Update 4 | |
| DS920+ | DSM 7.2.1-69057 Update 3 | |
| DS920+ | DSM 7.2.1-69057 Update 2 | |
| DS920+ | DSM 7.2.1-69057 update 1 | |
| DS920+ | DSM 7.2.1-69057 | |
| DS920+ | DSM 7.2-64570 Update 1 | |
| DS920+ | DSM 7.2-64561 | |
| DS920+ | DSM 7.2-64216 Beta | |
| DS920+ | DSM 7.1.1-42962 Update 1 | |
| DS918+ | DSM 7.2-64570 Update 3 | |
| RS820+ | DSM 7.2-64570 Update 3 | M2D20 |
| DS720+ | DSM 7.2.1-69057 Update 4 | |
| DS720+ | DSM 7.2.1-69057 Update 3 | |
| DS720+ | DSM 7.2.1-69057 Update 2 | |
| DS720+ | DSM 7.2.1-69057 Update 1 | |
| DS720+ | DSM 7.2.1-69057 | |
| DS720+ | DSM 7.2-64570 Update 3 | |
| DS720+ | DSM 7.2-64570 Update 1 | |
| DS720+ | DSM 7.2-64570 | |
| DS720+ | DSM 7.2-64561 | |
| DS720+ | DSM 7.2-64216 Beta | |
| DS420+ | DSM 7.2-64570 Update 1 | |
| DS1819+ | DSM 7.2-64216 Beta | M2D20 |
| DS1819+ | DSM 7.1.1 | M2D20 |
| DS1019+ | DSM 7.2.1-69057 Update 2 | |
| DS1019+ | DSM 7.2-64561 | |
| DS1019+ | DSM 7.1.1-42962 Update 4 | |
| DS1618+ | DSM 7.1.1 | M2D18 |
| DS918+ | DSM 7.2.1-69057 Update 5 | |
| DS918+ | DSM 7.2-64561 | |
| DS918+ | DSM 7.1.1 | |
| DS3617xs | DSM 7.2-64570 | M2D20 |
Create SHR Storage Pool
Create Volume
Volume description
Allocate volume capacity
Select file system
Success!
Enable TRIM