# BeeGFS Storage Pool Tests From [BeeGFS Architecture Overview](https://doc.beegfs.io/latest/architecture/overview.html): > The most intuitive way to present the **storage pools** to a user is by using **a single directory per pool**. This gives the user a straightforward way to assign files to different pools just by placing them into different directories. Add a **storage target** to create a new **storage pool**: ``` beegfs-ctl --addstoragepool --desc="<pool description>" --targets=<target id> ``` Instruct BeeGFS to place everything under a **directory** to a specific **storage pool**: ``` beegfs-ctl --setpattern --storagepoolid=<pool id> <directory path> ``` Example: ``` [root@vm-master ~]# beegfs-df METADATA SERVERS: TargetID Cap. Pool Total Free % ITotal IFree % ======== ========= ===== ==== = ====== ===== = 2 normal 3.9GiB 3.6GiB 93% 0.3M 0.2M 75% STORAGE TARGETS: TargetID Cap. Pool Total Free % ITotal IFree % ======== ========= ===== ==== = ====== ===== = 31 normal 28.0GiB 27.8GiB 99% 14.7M 14.7M 100% 32 normal 32.0GiB 31.7GiB 99% 16.8M 16.8M 100% [root@vm-master ~]# beegfs-ctl --liststoragepools Pool ID Pool Description Targets Buddy Groups ======= ================== ============================ ============================ 1 Default 31,32 [root@vm-master ~]# beegfs-ctl --addstoragepool --desc="Warm pool consisting SSDs" --targets=31 Successfully created storage pool. ID: 2; Description: Warm pool consisting SSDs [root@vm-master ~]# beegfs-ctl --addstoragepool --desc="Cool pool consisting HDDs" --targets=32 Successfully created storage pool. ID: 3; Description: Cool pool consisting HDDs [root@vm-master ~]# beegfs-ctl --liststoragepools Pool ID Pool Description Targets Buddy Groups ======= ================== ============================ ============================ 1 Default 2 Warm pool consisting SSDs 31 3 Cool pool consisting HDDs 32 [root@vm-master ~]# cd /mnt/beegfs [root@vm-master beegfs]# mkdir warm cool [root@vm-master beegfs]# beegfs-ctl --setpattern --storagepoolid=2 /mnt/beegfs/warm New storage pool ID: 2 [root@vm-master beegfs]# beegfs-ctl --setpattern --storagepoolid=3 /mnt/beegfs/cool New storage pool ID: 3 [root@vm-master beegfs]# ll total 0 drwxr-xr-x 2 root root 0 Jul 17 03:40 cool drwxr-xr-x 2 root root 0 Jul 17 03:40 warm [root@vm-master beegfs]# cd cool [root@vm-master cool]# dd if=/dev/zero of=./cool.bin bs=1024 count=102400 102400+0 records in 102400+0 records out 104857600 bytes (105 MB, 100 MiB) copied, 0.600183 s, 175 MB/s [root@vm-master cool]# ll total 102400 -rw-r--r-- 1 root root 104857600 Jul 17 03:44 cool.bin [root@vm-master cool]# beegfs-ctl --getentryinfo cool.bin Entry type: file EntryID: 0-60F1E168-2 Metadata node: vm-storage.localdomain [ID: 2] Stripe pattern details: + Type: RAID0 + Chunksize: 512K + Number of storage targets: desired: 4; actual: 1 + Storage targets: + 32 @ vm-storage.localdomain [ID: 3] [root@vm-master cool]# cd ../warm [root@vm-master warm]# dd if=/dev/zero of=./warm.bin bs=1024 count=102400 102400+0 records in 102400+0 records out 104857600 bytes (105 MB, 100 MiB) copied, 0.574062 s, 183 MB/s [root@vm-master warm]# ll total 102400 -rw-r--r-- 1 root root 104857600 Jul 17 03:46 warm.bin [root@vm-master warm]# beegfs-ctl --getentryinfo warm.bin Entry type: file EntryID: 0-60F1E1E0-2 Metadata node: vm-storage.localdomain [ID: 2] Stripe pattern details: + Type: RAID0 + Chunksize: 512K + Number of storage targets: desired: 4; actual: 1 + Storage targets: + 31 @ vm-storage.localdomain [ID: 3] ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up