99 lines
		
	
	
		
			3.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
		
		
			
		
	
	
			99 lines
		
	
	
		
			3.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
|  | <!-- | ||
|  | This file is part of Linode Manager Classic. | ||
|  | 
 | ||
|  | Linode Manager Classic is free software: you can redistribute it and/or modify | ||
|  | it under the terms of the GNU General Public License as published by | ||
|  | the Free Software Foundation, either version 3 of the License, or | ||
|  | (at your option) any later version. | ||
|  | 
 | ||
|  | Linode Manager Classic is distributed in the hope that it will be useful, | ||
|  | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
|  | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||
|  | GNU General Public License for more details. | ||
|  | 
 | ||
|  | You should have received a copy of the GNU General Public License | ||
|  | along with Linode Manager Classic.  If not, see <https://www.gnu.org/licenses/>. | ||
|  | --> | ||
|  | <!DOCTYPE HTML> | ||
|  | <html lang="en"> | ||
|  | 	<head> | ||
|  | 		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
|  | 		<title>LMC - Volumes</title> | ||
|  | 		<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" /> | ||
|  | 		<link rel="stylesheet" type="text/css" href="settings.css" /> | ||
|  | 		<script src="settings.js" type="module"></script> | ||
|  | 	</head> | ||
|  | 	<body> | ||
|  | 		<!--#include virtual="/include/header.html"--> | ||
|  | 		<div id="main-content" class="wrapper"> | ||
|  | 			<div id="top-links"><a href="/volumes">Volumes</a> » <span id="volume-label" class="top-links-title"></span></div> | ||
|  | 			<div id="settings"> | ||
|  | 				<table class="lmc-table"> | ||
|  | 					<thead> | ||
|  | 						<tr> | ||
|  | 							<td colspan="3">Block Storage Volume Settings</td> | ||
|  | 						</tr> | ||
|  | 					</thead> | ||
|  | 					<tbody> | ||
|  | 						<tr class="lmc-tr3"> | ||
|  | 							<td>Label</td> | ||
|  | 							<td><input id="label" type="text" /></td> | ||
|  | 							<td class="info">A unique name for this volume</td> | ||
|  | 						</tr> | ||
|  | 						<tr class="lmc-tr3"> | ||
|  | 							<td>Status</td> | ||
|  | 							<td id="status"></td> | ||
|  | 							<td class="info">The current status of the volume</td> | ||
|  | 						</tr> | ||
|  | 						<tr class="lmc-tr3"> | ||
|  | 							<td>Attachment</td> | ||
|  | 							<td> | ||
|  | 								<select id="attachment"> | ||
|  | 									<option selected value="0">No attachment</option> | ||
|  | 								</select> | ||
|  | 								<span id="attached"><a id="linode-label"></a> | <a href="/volumes/detach?vid=0">Detach</a></span> | ||
|  | 							</td> | ||
|  | 							<td class="info">The Linode this volume is attached to</td> | ||
|  | 						</tr> | ||
|  | 						<tr class="lmc-tr3"> | ||
|  | 							<td>Size</td> | ||
|  | 							<td><input id="size" type="number" min="10" /></td> | ||
|  | 							<td class="info">The size of the volume in GiB</td> | ||
|  | 						</tr> | ||
|  | 						<tr class="lmc-tr3"> | ||
|  | 							<td>Location</td> | ||
|  | 							<td id="location"></td> | ||
|  | 							<td class="info">The datacenter where this volume is located</td> | ||
|  | 						</tr> | ||
|  | 						<tr class="lmc-tr3"> | ||
|  | 							<td>Filesystem Path</td> | ||
|  | 							<td id="path"></td> | ||
|  | 							<td class="info">The path that this volume is accessible through when attached to a running Linode</td> | ||
|  | 						</tr> | ||
|  | 						<tr class="lmc-tr3"> | ||
|  | 							<td></td> | ||
|  | 							<td><button disabled id="save-button" type="button">Save Changes</button></td> | ||
|  | 							<td></td> | ||
|  | 						</tr> | ||
|  | 					</tbody> | ||
|  | 					<tbody class="lmc-tbody-head"> | ||
|  | 						<tr> | ||
|  | 							<td colspan="3">Instructions</td> | ||
|  | 						</tr> | ||
|  | 					</tbody> | ||
|  | 				</table> | ||
|  | 				<div id="instructions"> | ||
|  | 					<p>To get started with a new volume, you'll want to create a filesystem on it:</p> | ||
|  | 					<code>mkfs.ext4 /dev/disk/by-id/scsi-0Linode_Volume_test_volume</code> | ||
|  | 					<p>Once the volume has a filesystem, you can create a mountpoint for it:</p> | ||
|  | 					<code>mkdir /mnt/test_volume</code> | ||
|  | 					<p>Then you can mount the new volume:</p> | ||
|  | 					<code>mount /dev/disk/by-id/scsi-0Linode_Volume_test_volume /mnt/test_volume</code> | ||
|  | 					<p>If you want the volume to automatically mount every time your Linode boots, you'll want to add a line like the following to your <strong>/etc/fstab</strong> file:</p> | ||
|  | 					<code>/dev/disk/by-id/scsi-0Linode_Volume_test_volume /mnt/test_volume ext4 defaults,noatime,nofail 0 2</code> | ||
|  | 				</div> | ||
|  | 			</div> | ||
|  | 		</div> | ||
|  | 	</body> | ||
|  | </html> |