How to resize main filesystem Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Come Celebrate our 10 Year Anniversary!Mounting both /dev/sda and /dev/sda1 - how can this be?What is the best method to add a new hard drive in RHEL 5.4? /tmp has changed to read onlyLinux missing disk spaceXFS: No space left on device/tmp used 100% where is files?Where did my memory go on linux (no cache/slab/shm/ipcs)“Operation not permitted” on files over 2GB on ext4 filesystemLogical Volume /dev/centos/root is extended but /dev/mapper/centos-root is notubuntu 18.04 lamp stack installed in root partition taking full space

How to ask rejected full-time candidates to apply to teach individual courses?

newbie Q : How to read an output file in one command line

Random body shuffle every night—can we still function?

Short story about astronauts fertilizing soil with their own bodies

Fit odd number of triplets in a measure?

Weaponising the Grasp-at-a-Distance spell

Why BitLocker does not use RSA

NIntegrate on a solution of a matrix ODE

Releasing Patch File for BSD3 Licensed Project

How to resize main filesystem

.bashrc alias for a command with fixed second parameter

Putting class ranking in CV, but against dept guidelines

The bible of geometry: Is there a modern treatment of geometries from the most primitive to the most advanced?

Does the transliteration of 'Dravidian' exist in Hindu scripture? Does 'Dravida' refer to a Geographical area or an ethnic group?

2018 MacBook Pro won't let me install macOS High Sierra 10.13 from USB installer

Order between one to one functions and their inverses

How can I prevent/balance waiting and turtling as a response to cooldown mechanics

Did John Wesley plagiarize Matthew Henry...?

One-one communication

Is there a spell that can create a permanent fire?

What is the proper term for etching or digging of wall to hide conduit of cables

Why complex landing gears are used instead of simple, reliable and light weight muscle wire or shape memory alloys?

"Destructive power" carried by a B-52?

Are there any irrational/transcendental numbers for which the distribution of decimal digits is not uniform?



How to resize main filesystem



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Come Celebrate our 10 Year Anniversary!Mounting both /dev/sda and /dev/sda1 - how can this be?What is the best method to add a new hard drive in RHEL 5.4? /tmp has changed to read onlyLinux missing disk spaceXFS: No space left on device/tmp used 100% where is files?Where did my memory go on linux (no cache/slab/shm/ipcs)“Operation not permitted” on files over 2GB on ext4 filesystemLogical Volume /dev/centos/root is extended but /dev/mapper/centos-root is notubuntu 18.04 lamp stack installed in root partition taking full space



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








3















on my centos server I mounted a new volume /dev/sdb. I would like to add space to root filesystem /dev/vda1.



[user@prod current]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 30G 11G 18G 37% /
devtmpfs 488M 0 488M 0% /dev
tmpfs 497M 0 497M 0% /dev/shm
tmpfs 497M 50M 447M 11% /run
tmpfs 497M 0 497M 0% /sys/fs/cgroup
tmpfs 100M 0 100M 0% /run/user/1000
/dev/sdb 50G 53M 47G 1% /mnt/volume_nyc3_01



Is there any way to decrease /dev/sdb and increase /dev/vda1? If possible without losing data on /dev/vda1.










share|improve this question




























    3















    on my centos server I mounted a new volume /dev/sdb. I would like to add space to root filesystem /dev/vda1.



    [user@prod current]$ df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/vda1 30G 11G 18G 37% /
    devtmpfs 488M 0 488M 0% /dev
    tmpfs 497M 0 497M 0% /dev/shm
    tmpfs 497M 50M 447M 11% /run
    tmpfs 497M 0 497M 0% /sys/fs/cgroup
    tmpfs 100M 0 100M 0% /run/user/1000
    /dev/sdb 50G 53M 47G 1% /mnt/volume_nyc3_01



    Is there any way to decrease /dev/sdb and increase /dev/vda1? If possible without losing data on /dev/vda1.










    share|improve this question
























      3












      3








      3








      on my centos server I mounted a new volume /dev/sdb. I would like to add space to root filesystem /dev/vda1.



      [user@prod current]$ df -h
      Filesystem Size Used Avail Use% Mounted on
      /dev/vda1 30G 11G 18G 37% /
      devtmpfs 488M 0 488M 0% /dev
      tmpfs 497M 0 497M 0% /dev/shm
      tmpfs 497M 50M 447M 11% /run
      tmpfs 497M 0 497M 0% /sys/fs/cgroup
      tmpfs 100M 0 100M 0% /run/user/1000
      /dev/sdb 50G 53M 47G 1% /mnt/volume_nyc3_01



      Is there any way to decrease /dev/sdb and increase /dev/vda1? If possible without losing data on /dev/vda1.










      share|improve this question














      on my centos server I mounted a new volume /dev/sdb. I would like to add space to root filesystem /dev/vda1.



      [user@prod current]$ df -h
      Filesystem Size Used Avail Use% Mounted on
      /dev/vda1 30G 11G 18G 37% /
      devtmpfs 488M 0 488M 0% /dev
      tmpfs 497M 0 497M 0% /dev/shm
      tmpfs 497M 50M 447M 11% /run
      tmpfs 497M 0 497M 0% /sys/fs/cgroup
      tmpfs 100M 0 100M 0% /run/user/1000
      /dev/sdb 50G 53M 47G 1% /mnt/volume_nyc3_01



      Is there any way to decrease /dev/sdb and increase /dev/vda1? If possible without losing data on /dev/vda1.







      linux filesystems






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 8 hours ago









      mike927mike927

      1161




      1161




















          1 Answer
          1






          active

          oldest

          votes


















          7














          If we consider /dev/vda and /dev/sdb as different (physical) disks, this is not easily achievable, to the point that it would be much easier to reinstall the server from scratch and put / into a LVM volume from the start.



          If absolutely necessary, this could be done with a lengthy downtime and lots of knowledge about what you need to do. It would be quite error-prone though and I would not recommend to even try.



          /dev/vda suggests this is some kind of virtual system. Depending on what the underlying system allows, it might be possible to resize the disk image providing /dev/vda (and if necessary, delete/shrink the image providing /dev/sdb). Talk to your admin/provider. In that case, after the system picks of the larger size of /dev/vda, you could extend /dev/vda1 and then grow the / file system.






          share|improve this answer























          • Thank you for your reply. Not sure if you are familiar with digitalocean hosting but /dev/sdb it is just an additional volume I bought to my app. As it is an separate space I need to pass it to my root filesystem. Not sure if it is possible at all.

            – mike927
            3 hours ago











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "2"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f963974%2fhow-to-resize-main-filesystem%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          7














          If we consider /dev/vda and /dev/sdb as different (physical) disks, this is not easily achievable, to the point that it would be much easier to reinstall the server from scratch and put / into a LVM volume from the start.



          If absolutely necessary, this could be done with a lengthy downtime and lots of knowledge about what you need to do. It would be quite error-prone though and I would not recommend to even try.



          /dev/vda suggests this is some kind of virtual system. Depending on what the underlying system allows, it might be possible to resize the disk image providing /dev/vda (and if necessary, delete/shrink the image providing /dev/sdb). Talk to your admin/provider. In that case, after the system picks of the larger size of /dev/vda, you could extend /dev/vda1 and then grow the / file system.






          share|improve this answer























          • Thank you for your reply. Not sure if you are familiar with digitalocean hosting but /dev/sdb it is just an additional volume I bought to my app. As it is an separate space I need to pass it to my root filesystem. Not sure if it is possible at all.

            – mike927
            3 hours ago















          7














          If we consider /dev/vda and /dev/sdb as different (physical) disks, this is not easily achievable, to the point that it would be much easier to reinstall the server from scratch and put / into a LVM volume from the start.



          If absolutely necessary, this could be done with a lengthy downtime and lots of knowledge about what you need to do. It would be quite error-prone though and I would not recommend to even try.



          /dev/vda suggests this is some kind of virtual system. Depending on what the underlying system allows, it might be possible to resize the disk image providing /dev/vda (and if necessary, delete/shrink the image providing /dev/sdb). Talk to your admin/provider. In that case, after the system picks of the larger size of /dev/vda, you could extend /dev/vda1 and then grow the / file system.






          share|improve this answer























          • Thank you for your reply. Not sure if you are familiar with digitalocean hosting but /dev/sdb it is just an additional volume I bought to my app. As it is an separate space I need to pass it to my root filesystem. Not sure if it is possible at all.

            – mike927
            3 hours ago













          7












          7








          7







          If we consider /dev/vda and /dev/sdb as different (physical) disks, this is not easily achievable, to the point that it would be much easier to reinstall the server from scratch and put / into a LVM volume from the start.



          If absolutely necessary, this could be done with a lengthy downtime and lots of knowledge about what you need to do. It would be quite error-prone though and I would not recommend to even try.



          /dev/vda suggests this is some kind of virtual system. Depending on what the underlying system allows, it might be possible to resize the disk image providing /dev/vda (and if necessary, delete/shrink the image providing /dev/sdb). Talk to your admin/provider. In that case, after the system picks of the larger size of /dev/vda, you could extend /dev/vda1 and then grow the / file system.






          share|improve this answer













          If we consider /dev/vda and /dev/sdb as different (physical) disks, this is not easily achievable, to the point that it would be much easier to reinstall the server from scratch and put / into a LVM volume from the start.



          If absolutely necessary, this could be done with a lengthy downtime and lots of knowledge about what you need to do. It would be quite error-prone though and I would not recommend to even try.



          /dev/vda suggests this is some kind of virtual system. Depending on what the underlying system allows, it might be possible to resize the disk image providing /dev/vda (and if necessary, delete/shrink the image providing /dev/sdb). Talk to your admin/provider. In that case, after the system picks of the larger size of /dev/vda, you could extend /dev/vda1 and then grow the / file system.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 6 hours ago









          SvenSven

          87.8k10148200




          87.8k10148200












          • Thank you for your reply. Not sure if you are familiar with digitalocean hosting but /dev/sdb it is just an additional volume I bought to my app. As it is an separate space I need to pass it to my root filesystem. Not sure if it is possible at all.

            – mike927
            3 hours ago

















          • Thank you for your reply. Not sure if you are familiar with digitalocean hosting but /dev/sdb it is just an additional volume I bought to my app. As it is an separate space I need to pass it to my root filesystem. Not sure if it is possible at all.

            – mike927
            3 hours ago
















          Thank you for your reply. Not sure if you are familiar with digitalocean hosting but /dev/sdb it is just an additional volume I bought to my app. As it is an separate space I need to pass it to my root filesystem. Not sure if it is possible at all.

          – mike927
          3 hours ago





          Thank you for your reply. Not sure if you are familiar with digitalocean hosting but /dev/sdb it is just an additional volume I bought to my app. As it is an separate space I need to pass it to my root filesystem. Not sure if it is possible at all.

          – mike927
          3 hours ago

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Server Fault!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f963974%2fhow-to-resize-main-filesystem%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          名間水力發電廠 目录 沿革 設施 鄰近設施 註釋 外部連結 导航菜单23°50′10″N 120°42′41″E / 23.83611°N 120.71139°E / 23.83611; 120.7113923°50′10″N 120°42′41″E / 23.83611°N 120.71139°E / 23.83611; 120.71139計畫概要原始内容臺灣第一座BOT 模式開發的水力發電廠-名間水力電廠名間水力發電廠 水利署首件BOT案原始内容《小檔案》名間電廠 首座BOT水力發電廠原始内容名間電廠BOT - 經濟部水利署中區水資源局

          格濟夫卡 參考資料 导航菜单51°3′40″N 34°2′21″E / 51.06111°N 34.03917°E / 51.06111; 34.03917ГезівкаПогода в селі 编辑或修订