Skip to content

[Feature suggestion] Merge storage related 合并存储相关 #1200

@LSP0123

Description

@LSP0123

It is recommended that the actual storage location of AppData and other directories (Downloads Gallery Media) can be set separately after the storage is merged.
Store AppData separately to SSD (or on a specific hard disk) and set other directories to the merged location on the mechanical hard disk to reduce unnecessary mechanical hard disk operation, reading and writing.

我当前的设置:

> admin@casaos:~$ df -hl
> Filesystem             Size  Used Avail Use% Mounted on
> tmpfs                  1.2G  3.1M  1.2G   1% /run
> /dev/sdb2              111G  8.3G  101G   8% /
> tmpfs                  5.7G     0  5.7G   0% /dev/shm
> tmpfs                  5.0M     0  5.0M   0% /run/lock
> /dev/sdb1              1.1G  6.1M  1.1G   1% /boot/efi
> tmpfs                  1.2G  4.0K  1.2G   1% /run/user/1000
> /dev/sda1              916G   12K  907G   1% /mnt/Storage1
> /dev/sdc1              2.7T   11G  2.7T   1% /mnt/Storage2
> /dev/sdd1              916G   12K  907G   1% /mnt/Storage3
> /var/lib/casaos/files  111G  8.3G  101G   8% /DATA

其中sdb为ssd,其他为机械硬盘
当使用合并存储后:

> admin@casaos:~$ df -h
> Filesystem                                                       Size  Used Avail Use% Mounted on
> tmpfs                                                            1.2G  3.6M  1.2G   1% /run
> /dev/sdb2                                                        111G  8.3G  101G   8% /
> tmpfs                                                            5.7G     0  5.7G   0% /dev/shm
> tmpfs                                                            5.0M     0  5.0M   0% /run/lock
> /dev/sdb1                                                        1.1G  6.1M  1.1G   1% /boot/efi
> tmpfs                                                            1.2G  4.0K  1.2G   1% /run/user/1000
> /dev/sda1                                                        916G   12K  907G   1% /mnt/Storage1
> /dev/sdc1                                                        2.7T   11G  2.7T   1% /mnt/Storage2
> /dev/sdd1                                                        916G   12K  907G   1% /mnt/Storage3
> /var/lib/casaos/files:/mnt/Storage1:/mnt/Storage2:/mnt/Storage3  4.6T   19G  4.6T   1% /DATA

此时,docker程序的config数据存储于/DATA/AppData,实际会有数据存储到机械硬盘上,如下:

> admin@casaos:/mnt/Storage2/AppData$ ls -al
> total 32
> drwxrwxrwx 8 root root 4096 Jun 21 08:53 .
> drwxr-xr-x 7 root root 4096 Jun 21 07:11 ..
> drwxr-xr-x 3 root root 4096 Jun 21 04:17 Jackett
> drwxr-xr-x 3 root root 4096 Jun 21 08:53 Jellyfin
> drwxr-xr-x 3 root root 4096 Jun 21 03:12 Nextcloud
> drwxr-xr-x 3 root root 4096 Jun 21 03:08 PhotoPrism
> drwxr-xr-x 3 root root 4096 Jun 21 03:07 qBittorrent
> drwxr-xr-x 3 root root 4096 Jun 21 03:28 Syncthing
> admin@casaos:/mnt/Storage2/AppData$ 

建议在合并存储后,可单独设置AppData和其他目录(Downloads Gallery Media)的实际存储位置。
将AppData单独存储至SSD(或特定硬盘上),将其它目录设置到机械硬盘的合并位置上,减少不必要的机械硬盘运行、读写。

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

Status
Future

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions