3.9 storage. (Storage)
Before use
| The Distinction | Content |
|---|---|
| I need permission. | Storage creation, modification, and deletion are management functions that require administrator permissions. |
| External IT Facts | NFS, SMB/CIFS, iSCSI are interacting with external storage servers, so server addresses, authentication information, export/share/target settings must be prepared in advance. |
| The range of impact | The story is VM/CT The disc, ISO It affects the location of the backup, the template storage, and it determines the resource that is being used before deleting or disabling. |
| I'm working on the classified information. | The external storage passwords, such as SMB/CIFS, are for screen input and do not include the source code in the submission form. |
3.9.1 Storage list monitoring
- Storage name : Specified storage name
- Type of(Type) Storage type:
- The route/response : target value for storage generation location and object
- Type of data stored (Content) : The type of data stored in the storage (Contents)
- The capacity. (Used) Current storage usage:
- Shared Shared storage: ( Check mark )
- It's active. Storage is active ( On / Off )
- The management : Modify the storage(I'm going to fix the icon.) > Delete(Icon of the garbage can.) Function
- When you double-click an item in the list, the Modify Modeling window will appear.
- When you click the Create Storage button on the top right, the Create Modeling window will appear.
- You can re-write it with the arrow icon next to the Storage Generate button.
3.9.2 Filtering and sorting of the storage list
- Search by name or content
- Storage type and active state filtering
- Name, type, capacity, share, active or not, drop-down sequence sorted
3.9.3 Creating new storage
Storage generation depends on the type of storage you choose, so you type in the common element first, and then you add the type-by-type element.
3.9.3.1 Creating new storage - common
The default settings item that is common to all storage types
- Storage name (The required input value) : to identify the storage His own name.Enter the (You can't create a storage with the same name.)
- Type of(Type) (The required input value) Specify the type of storage to be generated, depending on the type selected. Additional input items are different
- The node.(Optional) I'm using the storytelling. Proxmox The range of nodesSo, the default value is The whole node. (No restrictions.), If you want to use only a specific node, select the node.
- Type of data stored (Content) (The required input value): The type of data stored in the storage (Contents) The default values and the list of configurable types may vary.
- If you don't enter the required input value for each type, it's impossible to generate.
Common input summary
| Items | The input/selection criteria |
|---|---|
| Storage name | It's a unique name that's not duplicated. |
| Type of(Type) | You can choose the type that fits your operating environment from Directory, LVM, LVM-Thin, NFS, SMB/CIFS, iSCSI. |
| The node. | You select the whole node or just a specific node, and local storage is limited to the actual existing node. |
| Content | ISO You choose the type of data you want to store, like backup, disk image, container template. |
3.9.3.2 Create a new storage - Directory
Create local directory-based storage, use the file system path of the host as storage
- The route/response (The required input value)It's for storage. The host's directory path.You need to specify that path to actually exist in the node, and you need to write permission.
- Activate the storage Storage is active ( On / Off ) Checkbox.
- Activate the(On): Available immediately
- Deactivation(Off) Setup is maintained and unusable
- Shared storage. : Checkbox for sharing storage
- The advanced settings are described in the section.
3.9.3.3 Creating new storage - LVM
LVM(Local Volume Manager) We create a database, we manage the disk connected to the host as a logical volume. VM Use it as disk storage
- Volume group (The required input value) There are several physical disks:(PV) LVM storage must be generated on the basis of a single volume group, You need to specify the node to search for, so you can check the volume group list.
- The node to search for. (The required input value) : Search the volume group. Proxmox Select the node. Show the volume group that actually exists in the selected node in the list
- Remove the volume when permanently deleted When you delete the volume from the storage,
- Check this out: Delete all data from the disk completely (It's not recoverable.)
- Solution: Only the volume is removed, and the actual disk data is kept.
- Recommendations: In the operating environment, It's basically disabled for data protection.It is recommended
- Shared storage. The LVM storage. Set to shared storage shared by multiple nodesWhether or not, the LVM is the average. The node local storage.So, actually, the shared storage environment is(For example, SAN, iSCSI, FC.) If it's not, you shouldn't check.
- The advanced settings are described in the section.
3.9.3.4 Creating new storage - LVM-Thin
LVM-Thin is L.VM Based on scene provisioning(Thin Provisioning) You can use the storage space, you can use the space on the disk, you can use the space on the disk, you can use the space on the disk, you can use the space on the disk, you can use the space on the disk, you can use the space on the disk, you can use the space on the disk, you can use the space on the disk, you can use the space on the disk, you can use the space on the disk, you need. VM You can create a disk.
- Volume group (The required input value) LVM-Thin storage will be generated. Volume group(VG) Select the selected volume group List of VGs that actually exist in the specified nodeIt works the same way as LVM storage.
- The node to search for. (The required input value) : It's the same as LVM.
- Scene pool. (The required input value) : The volume group that exists in the selected volume group LVM Thin PoolThe Thin Pool is a real disk space management tool. The logic pool.And that's what we're doing. VM The disk is generated over this thin pool (If Thin Pool doesn't exist, You have to create LVM Thin Pool in advance.)
- You have to specify the node to search and select the volume group to check the scene-full list.
3.9.3.5 Creating new storage - NFS
NFS(Network File System) The Storage that uses directories of external NFS servers mounted over a network
It's accessible from multiple nodes at the same time. Configuring shared storageMainly used in
- Address of the server (The required input value) NFS services are provided IP address or host name of the serverEnter the
- Shared directory - export route (The required input value) : I'm running it on the NFS server. Sharing it with the outside world.(export) The directory path.Enter the (The NFS server is set to the corresponding path.(
/etc/exports) The E You have to be registered in advance.), Proxmox The node uses this directory as storage. - The advanced settings are described in the section.
3.9.3.6 Creating new storage - SMB/CIFS
SMBs and CIFS are The way you use file sharing folders on a Windows server or NAS as storage, It's mostly Windows file server, synology or QNAP NASUse when you're running
- Address of the server (The required input value) : SMB(CIFS) We're providing services IP address or host name of the serverEnter the
- Username - SMB (The required input value) : SMB server(Windows or NAS) The E The account name you use when you log in
- Password - SMB (The required input value) : I'm just going to type in the above. Password for SMB user account
- Shared folder - SMB (The required input value) : Top shared names shared externally on SMB servers(Share Name) Enter the SMB server's user and password, and if the server address is correct, the list will appear.
- Domain: Windows Domain Environment or Workgroup NameEnter, empty or default if the domain environment is not(Yes, the working group.) Use the
- Subdirectory route: From inside the shared folder. The subdirectory path you actually useIf you don't enter, you can specify The top of the shared folderUse it
- The advanced settings are described in the section.
3.9.3.7 Creating a new storage - iSCSI
The iSCSI is a Block device of remote server over network(LUN) The storage method that you use as a local disk, It's mainly used in high-performance storage or SAN environments.
- Address of the portal (The required input value) : iSCSI services provided by The server.(Target server) IP address or host nameEnter the Proxmox Find and connect to iSCSI Target through this address. (Enter the correct value and the target list is output.)
- Target (The required input value) : The iSCSI server provides iSCSI Target name(IQN) Select or enter, defined on the iSCSI server Logical storage unitAnd, in it, there's more than one LUN.
- Use LUN directly to map: It's in the iSCSI Target. Use LUN directly as separate storage.The option to set whether or not
- If you haven't checked, (Basic recommended)
- Use the entire iSCSI Target as one storage.
- Proxmox Go and manage LUN internally.
- Common VM/CT Suitable for storage configuration
- If you check it out,
- I'm on the target. Directly mapping each LUN to individual storage
- Advanced users or The existing SAN environment and interactionUse when you do
- If you set it wrong, The risk of data collisionsThis is why we need to be careful.
- If you haven't checked, (Basic recommended)
3.9.3.8 Create new storage - Advanced settings
The advanced settings are Storage performance, space usage, how snapshots work.In general use, the environment is not the same.
Recommended to use default valuesAnd they change it only when they need to.
- NFS version : Advanced settings used only in NFS storage, I'm going to communicate with the NFS server. NFS protocol versionDirectly designate
- The default value is automatically negotiated with the server, Only activate if there are specific server compatibility or performance issues.
- Pre-booked (Preallocation) When you create a disk image, you set the way you allocate storage space in advance, affecting storage performance and actual disk usage.
- Default: Depending on the storage type Automatically applying the recommended default values, If you don't have any special requirements, This option is recommended
- Off: Only when the actual data is recorded is space allocated, the initial generation speed is faster. The possibility of disk shortening and performance reduction There is.
- Metadata: It's all about pre-allocating metadata, space efficiency and performance. And the middle choice is Often used in thin provisioning environments
- Full (Posix-Fallocate) The POSIX fallocate mode: All the space is pre-allocated. It's fast I/O performance and the file system needs to support fallocate.
- Full: Allotment of the full disk capacity immediately, with the most stable performance Take up disk space instantly, regardless of the actual usage.
- Allow a snapshot (The volume-chain method) In storage: Whether to use the snapshot featureSet up the volume-chain method Record the changes on the existing volume in a chain formThe structure (LVM, LVM-Thin, some file-based storage is mainly used)
- When it's activated.
- VM- Container snapshot is available.
- Back up, roll back work glass
- Some types of storage have The potential for performance decline There is.
- The Deactivation Poem
- Snapshot feature is not available
- It's a simple storage configuration.
- If you prioritize performance and stability, choose
- When it's activated.
3.9.4 Storage modification
- Directory: You can activate storage, change shared storage, upgrade settings, change the type of data you store.
- LVMYou can: Activate storage, set up nodes, check permanently deletion when you remove volume, change shared storage, upgrade settings, change the type of data you store.
- LVM-ThinYou can activate storage, set up nodes, change the type of data you store.
- CIFSYou can activate storage, set up nodes, set up advanced, change the type of data you store.
- iSCSIYou can activate storage, set up nodes, change LUN mapping settings.
- NFSStorage activation, advanced settings, and changing the type of data you store.
3.9.5 Delete the storage
- When you click the delete button, the delete mode comes out and when you click the delete button, it's deleted.
- I'm using the storage before deleting it. VM/CT The disc, ISO I'm going to check if there's a backup, a template.
How to solve problems
| The symptoms. | Check the item | How to take action |
|---|---|---|
| Failure to generate storage | Essentials, name duplication, node selection | Check the input and see if the storage is the same name. |
| Failed to create directory | Whether the path exists, authorization to write | There's a directory on the target node. Proxmox I'm going to make sure that it's accessible. |
| The LVM/LVM-Thin list is empty. | The search node, VG/Thin Pool or not. | First, select the node and check if there's a volume group or scene pool in that node. |
| NFS connection failure | Address of the server, export path, firewall. | Check the NFS server export settings and network access. |
| SMB/CIFS connection failure | Account/password, shared folder, domain name | SMB identifiers and shared names, and the source code is not managed. |
| iSCSI Target visit failed | Portal address, target server status | Check if the iSCSI server is working and enter the Portal address again. |
| Deleting failed | Volume, power, and power | VM/CT I'm going to check if the backup, the template, is using the storage. |