{"id":351,"date":"2015-12-24T20:30:11","date_gmt":"2015-12-25T04:30:11","guid":{"rendered":"https:\/\/cloudinsidr.com\/content\/?p=351"},"modified":"2022-03-21T09:07:05","modified_gmt":"2022-03-21T16:07:05","slug":"how-to-expand-an-xfs-ebs-volume-on-aws-ec2","status":"publish","type":"post","link":"https:\/\/www.cloudinsidr.com\/content\/how-to-expand-an-xfs-ebs-volume-on-aws-ec2\/","title":{"rendered":"How to expand an (xfs) EBS volume on AWS EC2"},"content":{"rendered":"<p>Expanding an EBS volume is not quite as easy as recreating\u00a0it from a snapshot with\u00a0a larger volume size. It involves a few more steps.<\/p>\n<p><!--more--><\/p>\n<p>&#8220;Elastic&#8221; Block Store is not so elastic after all.<\/p>\n<p>Expanding an EBS volume involves quite a few steps. You may have already tried to:<\/p>\n<ol>\n<li>unmount the EBS volume you want to expand (or freeze write access to it);<\/li>\n<li>write a snapshot;<\/li>\n<li>create a new, larger EBS volume based on the snapshot of the old, smaller volume;<\/li>\n<li>attach the new, larger EBS volume\u00a0to your EC2 instance;<\/li>\n<li>mount the new volume on the instance;<\/li>\n<li>hit a wall: no amount of\u00a0xfs_growfs&#8217;ing seems to get the job done and expand it even a tiny bit.<\/li>\n<\/ol>\n<p>Here is how to fix it (fast-forward to step 5 below).<\/p>\n<h3>Step 1. Unmount your xfs\u00a0volume (or freeze write access to it)<\/h3>\n<p>On EC2, you\u00a0can usually get away with just creating the snapshot without much ado.\u00a0If you are paranoid about data loss, you probably want to unmount the volume (since you may need to do this anyway), or at least lock write access to it.<\/p>\n<p>Unmounting the volume involves the following\u00a0command:<\/p>\n<pre class=\"lang:sh decode:true \">umount\u00a0\/mount\/point<\/pre>\n<p>If you prefer to freeze write access to it, use this command instead:<\/p>\n<pre class=\"lang:sh decode:true\">xfs_freeze -f \/mount\/point<\/pre>\n<p>Once you get to the point of being ready to\u00a0unfreeze it,<\/p>\n<pre class=\"lang:sh decode:true \">xfs_freeze -u\u00a0\/mount\/point<\/pre>\n<p>will do the trick.<\/p>\n<h3>Step 2. Write a snapshot of the EBS volume<\/h3>\n<p>Create a snapshot of your\u00a0EBS volume on AWS EC2. When using the AWS Management Console, navigate to the section Volumes, find your volume, select it, and use the command Create Snapshot from the Actions menu to initiate the process.<\/p>\n<figure id=\"attachment_355\" aria-describedby=\"caption-attachment-355\" style=\"width: 741px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/create_snapshot_from_volume.png\" rel=\"attachment wp-att-355\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-355\" src=\"https:\/\/cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/create_snapshot_from_volume.png\" alt=\"Create a snapshot from an EBS volume on AWS EC2 in the AWS Management Console\" width=\"741\" height=\"332\" srcset=\"https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/create_snapshot_from_volume.png 741w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/create_snapshot_from_volume-600x269.png 600w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/create_snapshot_from_volume-300x134.png 300w\" sizes=\"(max-width: 741px) 100vw, 741px\" \/><\/a><figcaption id=\"caption-attachment-355\" class=\"wp-caption-text\">Create a snapshot from an EBS volume on AWS EC2 in the AWS Management Console<\/figcaption><\/figure>\n<p>The snapshot will be placed in the Snapshots section of the Console and display the size of the original EBS volume from which it was created.<\/p>\n<figure id=\"attachment_354\" aria-describedby=\"caption-attachment-354\" style=\"width: 522px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/create_snapshot.png\" rel=\"attachment wp-att-354\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-354 size-full\" src=\"https:\/\/cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/create_snapshot.png\" alt=\"Creating a snapshot from an EBS volume on AWS EC2 in the Management Console\" width=\"522\" height=\"287\" srcset=\"https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/create_snapshot.png 522w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/create_snapshot-300x165.png 300w\" sizes=\"(max-width: 522px) 100vw, 522px\" \/><\/a><figcaption id=\"caption-attachment-354\" class=\"wp-caption-text\">Creating a snapshot from an EBS volume on AWS EC2 in the AWS Management Console<\/figcaption><\/figure>\n<h3>Step 2. Create a new, larger EBS volume based on\u00a0the snapshot of the original, smaller EBS volume<\/h3>\n<p>Navigate to the section Snapshots of the AWS Management Console for EC2, find your snapshot, select it, and use the command Create Volume from the Actions menu.<\/p>\n<figure id=\"attachment_361\" aria-describedby=\"caption-attachment-361\" style=\"width: 1031px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/create_volume_from_screenshot.png\" rel=\"attachment wp-att-361\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-361\" src=\"https:\/\/cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/create_volume_from_screenshot.png\" alt=\"Create an EBS volume from snapshot\" width=\"1031\" height=\"493\" srcset=\"https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/create_volume_from_screenshot.png 1031w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/create_volume_from_screenshot-600x287.png 600w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/create_volume_from_screenshot-300x143.png 300w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/create_volume_from_screenshot-768x367.png 768w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/create_volume_from_screenshot-1024x490.png 1024w\" sizes=\"(max-width: 1031px) 100vw, 1031px\" \/><\/a><figcaption id=\"caption-attachment-361\" class=\"wp-caption-text\">Create an EBS volume from snapshot<\/figcaption><\/figure>\n<p>In next dialog that appears, set the new size you want to expand to and select an availability zone (AZ) for the new volume so you can attach it to your instance (the new volume must be located in the same AZ as the instance it will attach to).<\/p>\n<p>The new volume appears, quite predictably, in the Volumes section of the ECS Management Console, and has the new, larger size. Hurraaah! (Not so fast&#8230; Son&#8217;t celebrate just yet.)<\/p>\n<h3>Step 3. Attach the new, larger EBS volume\u00a0to your EC2 instance<\/h3>\n<p>Select your shiny new,\u00a0larger\u00a0volume in the Volumes section of the AWS Managment Console and use the command Attach Volume to hook it up to a running instance in the same availability zone.<\/p>\n<figure id=\"attachment_358\" aria-describedby=\"caption-attachment-358\" style=\"width: 819px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/attach_volume.png\" rel=\"attachment wp-att-361\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-358 size-full\" src=\"https:\/\/cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/attach_volume.png\" alt=\"Attaching an EBS volume to a running EC2 instance\" width=\"819\" height=\"283\" srcset=\"https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/attach_volume.png 819w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/attach_volume-600x207.png 600w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/attach_volume-300x104.png 300w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/attach_volume-768x265.png 768w\" sizes=\"(max-width: 819px) 100vw, 819px\" \/><\/a><figcaption id=\"caption-attachment-358\" class=\"wp-caption-text\">Attach an EBS volume to a running EC2 instance<\/figcaption><\/figure>\n<p>Select your instance, confirm the device ID and hit Attach.<\/p>\n<figure id=\"attachment_359\" aria-describedby=\"caption-attachment-359\" style=\"width: 1151px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/attach_volume-2.png\" rel=\"attachment wp-att-359\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-359\" src=\"https:\/\/cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/attach_volume-2.png\" alt=\"Attach an EBS volume to a running EC2 instance: size and az selection\" width=\"1151\" height=\"387\" srcset=\"https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/attach_volume-2.png 1151w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/attach_volume-2-600x202.png 600w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/attach_volume-2-300x101.png 300w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/attach_volume-2-768x258.png 768w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/attach_volume-2-1024x344.png 1024w\" sizes=\"(max-width: 1151px) 100vw, 1151px\" \/><\/a><figcaption id=\"caption-attachment-359\" class=\"wp-caption-text\">Attach an EBS volume to a running EC2 instance: size and az selection<\/figcaption><\/figure>\n<p>Verify that the volume has attached by taking a cursory glance at\u00a0the Description\u00a0tab in the Instances section of the AWS Management Console\u00a0for your EC2 instance. (You may need to\u00a0hit the Reload button at the upper right-hand corner of the Console; don&#8217;t hit\u00a0the browser button&#8211;that one would reload the entire page and deactivate your current selection of your EC2 instance as well as any view filters.)<\/p>\n<figure id=\"attachment_360\" aria-describedby=\"caption-attachment-360\" style=\"width: 635px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/attach_volume-3.png\" rel=\"attachment wp-att-360\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-360\" src=\"https:\/\/cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/attach_volume-3.png\" alt=\"An EBS volume attached to an EC2 instance\" width=\"635\" height=\"317\" \/><\/a><figcaption id=\"caption-attachment-360\" class=\"wp-caption-text\">An EBS volume attached to an EC2 instance<\/figcaption><\/figure>\n<h3>Step 4. Connect to your EC2 instance and mount the volume<\/h3>\n<p>Connect using an ssh\u00a0client such as\u00a0<a href=\"https:\/\/cloudinsidr.com\/content\/tip-of-the-day-how-to-transfer-putty-settings-to-another-computer\/\">PuTTY<\/a>, then switch to root (sudo su).<\/p>\n<h4>View block devices<\/h4>\n<p>For NVMe, see: <a href=\"https:\/\/www.cloudinsidr.com\/content\/how-to-attach-and-mount-an-nvme-ebs-volume-on-ec2\/\">How to attach and mount an NVMe EBS volume on EC2<\/a>.<\/p>\n<p>For legacy SATA drives, the command:<\/p>\n<pre class=\"lang:sh decode:true \">ls \/dev\/x*<\/pre>\n<p>should show something to this effect:<\/p>\n<pre class=\"lang:sh decode:true\">\/dev\/xvda \/dev\/xvda1 \/dev\/xvdf \/dev\/xvdf1<\/pre>\n<p>Your boot volume in the above example is\u00a0\/dev\/xvda; the boot partition is\u00a0\/dev\/xvda1, the newly attached volume is\u00a0\/dev\/xvdf with the data partition being\u00a0\/dev\/xvdf1.<\/p>\n<h4>Repair the xfs file system on the newly mounted volume (optional, but recommended)<\/h4>\n<p>If you need to\u00a0repair the\u00a0XFS file system on the volume, use xfs_repair:<\/p>\n<pre class=\"lang:sh decode:true\">xfs_repair \/dev\/xvdf1<\/pre>\n<h4>Mount the\u00a0xfs\u00a0file system partition<\/h4>\n<p>In order to mount the file system you need a directory that will serve as the mount point. Create a new directory (sudo su makes you root):<\/p>\n<pre class=\"lang:sh decode:true \">sudo su\u00a0\r\n\r\nmkdir \/mnt\/www<\/pre>\n<p>Mount the file system (example mountpoint):<\/p>\n<pre class=\"lang:sh decode:true \">mount \/dev\/xvdf1 \/mnt\/www<\/pre>\n<h4>Verify the capacity of the xfs partition<\/h4>\n<p>The volume will show up at its original capacity stored in the AWS snapshot:<\/p>\n<pre class=\"lang:sh decode:true\">df -h<\/pre>\n<p>Now what?<\/p>\n<h3>Step 5. [OPTION 1] Grow the xfs partition: adjust the partition size using growpart and xfs_growfs<\/h3>\n<p style=\"padding-left: 40px;\">First, use growpart to extend the first partition on the volume:<\/p>\n<pre style=\"padding-left: 40px;\">growpart \/dev\/xvdf 1<\/pre>\n<p style=\"padding-left: 40px;\">Now, you can extend the XFS file system (while still mounted) using the xfs_growfs command (see manpage for options):<\/p>\n<pre class=\"lang:sh decode:true\" style=\"padding-left: 40px;\">xfs_growfs \/mount\/point<\/pre>\n<p style=\"padding-left: 40px;\">(Without the -D size option, xfs_growfs will expand the file system to the maximum size supported by the device).<\/p>\n<h3>Step 5. [OPTION 2] Grow the xfs partition: adjust the partition size using fdisk<\/h3>\n<p>You can also grow the partition using fdisk.<\/p>\n<h4>Call\u00a0fdisk on the newly mounted block device<\/h4>\n<p style=\"padding-left: 40px;\">Call fdisk on the block device that represents the new EBS volume that needs resizing:<\/p>\n<pre class=\"lang:sh decode:true\" style=\"padding-left: 40px;\"># fdisk \/dev\/xvdf\r\n\r\nWelcome to fdisk (util-linux 2.23.2).\r\n\r\nChanges will remain in memory only, until you decide to write them.\r\nBe careful before using the write command.<\/pre>\n<p style=\"padding-left: 40px;\">Print the partition table of the disk you selected above using the command p:<\/p>\n<pre class=\"lang:sh decode:true\" style=\"padding-left: 40px;\">Command (m for help):\u00a0p\r\n\r\nDisk \/dev\/xvdf: 53.7 GB, 53687091200 bytes, 104857600 sectors\r\nUnits = sectors of 1 * 512 = 512 bytes\r\nSector size (logical\/physical): 512 bytes \/ 512 bytes\r\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\r\nDisk label type: dos\r\nDisk identifier: 0x9e5f5b78\r\n\r\nDevice Boot Start End Blocks Id System\r\n\/dev\/xvdf1 2048 41943039 20970496 83 Linux<\/pre>\n<p style=\"padding-left: 40px;\">All of a sudden, fdisk has just confirmed your desired new volume size.<\/p>\n<h4>Delete the data partition in fdisk (but\u00a0don&#8217;t write the changes yet!)<\/h4>\n<p style=\"padding-left: 40px;\">Delete the data partition on your volume (don&#8217;t worry, your data\u00a0will be preserved, just make sure you select the right partition, which is partition 1 in the example):<\/p>\n<pre class=\"lang:sh decode:true \" style=\"padding-left: 40px;\">Command (m for help): d\r\nSelected partition 1\r\nPartition 1 is deleted<\/pre>\n<p style=\"padding-left: 40px;\">How does it feel now?<\/p>\n<p style=\"padding-left: 40px;\">Still worried? Why don&#8217;t you create a new partition (see below).<\/p>\n<h4>Create a new partition on the newly mounted block device in fdisk<\/h4>\n<p style=\"padding-left: 40px;\">Create a new partition in fdisk by using the n command\u00a0with option p for primary and all other options confirmed at their default values. This is how it\u00a0looks in\u00a0our example:<\/p>\n<pre class=\"lang:sh decode:true \" style=\"padding-left: 40px;\">Command (m for help): n\r\nPartition type:\r\np primary (0 primary, 0 extended, 4 free)\r\ne extended\r\nSelect (default p): p\r\nPartition number (1-4, default 1):\r\nFirst sector (2048-104857599, default 2048):\r\nUsing default value 2048\r\nLast sector, +sectors or +size{K,M,G} (2048-104857599, default 104857599):\r\nUsing default value 104857599\r\nPartition 1 of type Linux and of size 50 GiB is set<\/pre>\n<p style=\"padding-left: 40px;\">Here you have your partition back.<\/p>\n<h4>Write changes to the\u00a0device in fdisk<\/h4>\n<p style=\"padding-left: 40px;\"><span style=\"line-height: 1.6471;\">So far, no changes have been written to the disk as of yet. To do this, use the w command (for write):<\/span><\/p>\n<pre class=\"lang:sh decode:true\" style=\"padding-left: 40px;\">Command (m for help): w\r\nThe partition table has been altered!\r\n\r\nCalling ioctl() to re-read partition table.\r\nSyncing disks.<\/pre>\n<h4>Mount the newly expanded data partition<\/h4>\n<p style=\"padding-left: 40px;\">Now is the time to mount the newly expanded data partition:<\/p>\n<pre class=\"lang:sh decode:true \" style=\"padding-left: 40px;\">mount \/dev\/xvdf1 \u00a0\/mnt\/www\/<\/pre>\n<p style=\"padding-left: 40px;\">Verify that your data is still on it:<\/p>\n<pre class=\"lang:sh decode:true\" style=\"padding-left: 40px;\">ls -l \/mnt\/www\/<\/pre>\n<p style=\"padding-left: 40px;\">The volume size remained unchanged:<\/p>\n<pre class=\"lang:sh decode:true\" style=\"padding-left: 40px;\"># df -h\r\nFilesystem Size Used Avail Use% Mounted on\r\n\/dev\/xvda1 10G 2.5G 7.6G 25% \/\r\n(...)\r\n\/dev\/xvdf1 20G 246M 20G 2% \/mnt\/www<\/pre>\n<h4>Expand the xfs\u00a0file system on the newly expanded partition<\/h4>\n<p style=\"padding-left: 40px;\">To expand the xfs data partition to the maximum size supported by the device, use this command:<\/p>\n<pre class=\"lang:sh decode:true \" style=\"padding-left: 40px;\"># xfs_growfs -d \/mnt\/www<\/pre>\n<p style=\"padding-left: 40px;\">You should see roughly this output as a result:<\/p>\n<pre class=\"lang:sh decode:true\" style=\"padding-left: 40px;\">meta-data=\/dev\/xvdf1 isize=256 agcount=4, agsize=1310656 blks\r\n= sectsz=512 attr=2, projid32bit=0\r\n= crc=0 finobt=0\r\ndata = bsize=4096 blocks=5242624, imaxpct=25\r\n= sunit=0 swidth=0 blks\r\nnaming =version 2 bsize=4096 ascii-ci=0 ftype=0\r\nlog =internal bsize=4096 blocks=2560, version=2\r\n= sectsz=512 sunit=0 blks, lazy-count=1\r\nrealtime =none extsz=4096 blocks=0, rtextents=0\r\ndata blocks changed from 5242624 to 13106944<\/pre>\n<figure id=\"attachment_378\" aria-describedby=\"caption-attachment-378\" style=\"width: 780px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/volume_size_after.png\" rel=\"attachment wp-att-378\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-378 size-full\" src=\"https:\/\/cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/volume_size_after.png\" alt=\"Expanding the xfs-formatted EBS volume with xfs_growfs and the result after expansion\" width=\"780\" height=\"363\" srcset=\"https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/volume_size_after.png 780w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/volume_size_after-600x279.png 600w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/volume_size_after-300x140.png 300w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/volume_size_after-768x357.png 768w\" sizes=\"(max-width: 780px) 100vw, 780px\" \/><\/a><figcaption id=\"caption-attachment-378\" class=\"wp-caption-text\">Expanding the xfs-formatted EBS volume with xfs_growfs and the result after expansion<\/figcaption><\/figure>\n<p style=\"padding-left: 40px;\">Now you can finally get to admire the new, larger volume size:<\/p>\n<pre class=\"lang:sh decode:true\" style=\"padding-left: 40px;\"># df -h\r\nFilesystem Size Used Avail Use% Mounted on\r\n(...)\r\n\/dev\/xvdf1 50G 247M 50G 1% \/mnt\/www<\/pre>\n<p style=\"padding-left: 40px;\">How&#8217;s that for\u00a0a reason to celebrate!<\/p>\n<h4>Adjust \/etc\/fstab<\/h4>\n<p style=\"padding-left: 40px;\">If you would like the volume to mount automatically after each reboot, enter this line into\u00a0\/etc\/fstab (add spaces as you see fit):<\/p>\n<pre class=\"\" style=\"padding-left: 40px;\">\/dev\/xvdf1 \/your\/mountpoint xfs  defaults  0 0<\/pre>\n<p style=\"padding-left: 40px;\">Reboot your system to verify that the volumes mount correctly, and you are done.<\/p>\n<p style=\"padding-left: 40px;\">Why don&#8217;t you subscribe to our newsletter to receive solutions to your problems, tips, and special offers,\u00a0straight to your email box, for free :<\/p>\n<p style=\"padding-left: 40px;\">[wysija_form id=&#8221;1&#8243;]<\/p>\n<p><strong>Alert:<\/strong> With the <a href=\"https:\/\/aws.amazon.com\/efs\/\" target=\"_blank\" rel=\"noopener noreferrer\">Elastic File System (Amazon EFS)<\/a>,\u00a0AWS has created what EBS should have been from the get go: network-attached EC2 volumes-as-a-service that grow as your data grows. They can be accessed from more than one EC2 instance at a time, but they are a bit more expensive than EBS.<\/p>\n<p><strong>Related:<\/strong> <a href=\"https:\/\/www.cloudinsidr.com\/content\/how-to-restore-your-instance-data-from-a-backup-using-snapshots-on-aws-ec2ebs\/\">How to Restore Your Instance Data from a Backup using Snapshots on AWS EC2\/EBS &#8211; Cloud Insidr.<\/a><\/p>\n<p><a href=\"https:\/\/www.cloudinsidr.com\/content\/a-cyber-security-showdown-aws-versus-microsoft-azure\/\">Cyber security showdown: AWS versus Microsoft Azure<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Expanding an EBS volume is not quite as easy as recreating\u00a0it from a snapshot with\u00a0a larger volume size. It involves a few more steps.<\/p>\n","protected":false},"author":101011,"featured_media":355,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[16,17],"tags":[58,78,63,77,79,280,80],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v14.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to expand an (xfs) EBS volume on AWS EC2 - CloudInsidr<\/title>\n<meta name=\"robots\" content=\"index, follow\" \/>\n<meta name=\"googlebot\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta name=\"bingbot\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.cloudinsidr.com\/content\/how-to-expand-an-xfs-ebs-volume-on-aws-ec2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to expand an (xfs) EBS volume on AWS EC2 - CloudInsidr\" \/>\n<meta property=\"og:description\" content=\"Expanding an EBS volume is not quite as easy as recreating\u00a0it from a snapshot with\u00a0a larger volume size. It involves a few more steps.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.cloudinsidr.com\/content\/how-to-expand-an-xfs-ebs-volume-on-aws-ec2\/\" \/>\n<meta property=\"og:site_name\" content=\"CloudInsidr\" \/>\n<meta property=\"article:published_time\" content=\"2015-12-25T04:30:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-21T16:07:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/create_snapshot_from_volume.png\" \/>\n\t<meta property=\"og:image:width\" content=\"741\" \/>\n\t<meta property=\"og:image:height\" content=\"332\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.cloudinsidr.com\/content\/#website\",\"url\":\"https:\/\/www.cloudinsidr.com\/content\/\",\"name\":\"CloudInsidr\",\"description\":\"Cyber security, infotech\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.cloudinsidr.com\/content\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.cloudinsidr.com\/content\/how-to-expand-an-xfs-ebs-volume-on-aws-ec2\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2015\/12\/create_snapshot_from_volume.png\",\"width\":741,\"height\":332,\"caption\":\"Create a snapshot from an EBS volume on AWS EC2 in the AWS Management Console\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.cloudinsidr.com\/content\/how-to-expand-an-xfs-ebs-volume-on-aws-ec2\/#webpage\",\"url\":\"https:\/\/www.cloudinsidr.com\/content\/how-to-expand-an-xfs-ebs-volume-on-aws-ec2\/\",\"name\":\"How to expand an (xfs) EBS volume on AWS EC2 - CloudInsidr\",\"isPartOf\":{\"@id\":\"https:\/\/www.cloudinsidr.com\/content\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.cloudinsidr.com\/content\/how-to-expand-an-xfs-ebs-volume-on-aws-ec2\/#primaryimage\"},\"datePublished\":\"2015-12-25T04:30:11+00:00\",\"dateModified\":\"2022-03-21T16:07:05+00:00\",\"author\":{\"@id\":\"https:\/\/www.cloudinsidr.com\/content\/#\/schema\/person\/21ce63bea726ea64da1beed97e63ba84\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.cloudinsidr.com\/content\/how-to-expand-an-xfs-ebs-volume-on-aws-ec2\/\"]}]},{\"@type\":[\"Person\"],\"@id\":\"https:\/\/www.cloudinsidr.com\/content\/#\/schema\/person\/21ce63bea726ea64da1beed97e63ba84\",\"name\":\"Anna E Kobylinska\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.cloudinsidr.com\/content\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7a3e9bd152f9d5cd41bf2b92df649857?s=96&d=mm&r=g\",\"caption\":\"Anna E Kobylinska\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/posts\/351"}],"collection":[{"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/users\/101011"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/comments?post=351"}],"version-history":[{"count":28,"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/posts\/351\/revisions"}],"predecessor-version":[{"id":2840,"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/posts\/351\/revisions\/2840"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/media\/355"}],"wp:attachment":[{"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/media?parent=351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/categories?post=351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/tags?post=351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}