Create an empty disk with a large block
By default, the block size of all created disks is 4 KB, but that's not enough for disks larger than 8 TB. You can set the block size when creating an empty disk. You can't change the block size after the disk is created.
The maximum disk size depends on the chosen block size.
Block size | Maximum disk size |
---|---|
4 KB | 8 TB |
8 KB | 16 TB |
16 KB | 32 TB |
32 KB | 64 TB |
64 KB | 128 TB |
128 KB | 256 TB |
CLI
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
-
See the description of the CLI's create disk commands:
yc compute disk create --help
-
Create a disk in the default folder:
yc compute disk create \ --name big-disk \ --block_size 8K \ --size 40G \ --description "my 8k blocksize disk via yc"
This command will create a 40 GB disk with an 8 KB block size, named
big-disk
, and described asmy 8k blocksize disk via yc
.- Length — from 3 to 63 characters.
- The name may contain lowercase Latin letters, numbers, and hyphens.
- The first character must be a letter. The last character can't be a hyphen.
-
Get a list of disks in the default folder:
yc compute disk list
Result:
+----------------------+--------------+-------------+---------------+--------+----------------------+-------------------------+ | ID | NAME | SIZE | ZONE | STATUS | INSTANCE IDS | DESCRIPTION | +----------------------+--------------+-------------+---------------+--------+----------------------+-------------------------+ | a7lqgbt0bb9s40tifuhc | first-disk | 20401094656 | ru-central1-a | READY | a7lcvu28njbhnkcteb5n | | | a7lv5j5hm1p1hppprga7 | second-disk | 21474836480 | ru-central1-a | READY | | | +----------------------+--------------+-------------+---------------+--------+----------------------+-------------------------+
Get the same list with more details in YAML format:
yc compute disk list --format yaml
Result:
- id: fhmm0br99mig46rc0em0 folder_id: b1gb9jeqoiordtmv1lbo created_at: "2021-01-11T09:35:05Z" name: big-disk description: 8k blocksize disk type_id: network-hdd zone_id: ru-central1-a size: "42949672960" block_size: "8192" status: READY disk_placement_policy: {}