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

What did Turing mean when saying that "machines cannot give rise to surprises" is due to a fallacy?

Short story about astronauts fertilizing soil with their own bodies

latest version of QGIS fails to edit attribute table of GeoJSON file

How do Java 8 default methods hеlp with lambdas?

Does the universe have a fixed centre of mass?

Should man-made satellites feature an intelligent inverted "cow catcher"?

Putting class ranking in CV, but against dept guidelines

Why did Bronn offer to be Tyrion Lannister's champion in trial by combat?

Is there a spell that can create a permanent fire?

Does a random sequence of vectors span a Hilbert space?

How to resize main filesystem

How does TikZ render an arc?

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

What does 丫 mean? 丫是什么意思?

How to make an animal which can only breed for a certain number of generations?

Sally's older brother

Why are two-digit numbers in Jonathan Swift's "Gulliver's Travels" (1726) written in "German style"?

systemd and copy (/bin/cp): no such file or directory

Noise in Eigenvalues plot

Why BitLocker does not use RSA

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

Pointing to problems without suggesting solutions

Why weren't discrete x86 CPUs ever used in game hardware?

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



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

          Bett Inhaltsverzeichnis Geschichte | Bettformen | Bettgrößen | Andere Bezeichnungen | Bettenmangel | Betten in der bildenden Kunst | Schlafmedizinische Gesichtspunkte | Siehe auch | Literatur | Weblinks | Einzelnachweise | NavigationsmenüBett, Bettstatt, BettstelleCommons: BettBabybetten: Anwendung, Ausstattungsmerkmale und VergleichskriterienWasserbetten. Vorurteile im TestHapfnNursch10.1007/s11818-012-0584-74006250-8AKS4329276-8

          Luksemburg Sisukord Nimi | Asend | Loodus | Riigikord | Haldusjaotus | Rahvastik | Riigikaitse | Majandus | Taristu | Ajalugu | Eesti ja Luksemburgi suhted | Haridus | Kultuur | Vaata ka | Viited | Välislingid | Navigeerimismenüü50° N, 6° EÜlevaade Luksemburgi kaitsealadest.Luksemburgi rahvaarv. Statistikaamet.World Bank'i andmebaasÜlevaade Luksemburgi loodusest.Ülevaade Luksemburgi metsadest.Guy Colling. "Red List of the Vascular Plants of Luxembourg." Travaux scientifiques du Musée national d’histoire naturelle Luxembourg. 2005.Luxembourg’s biodiversity at risk.Maailma kahepaiksete andmebaas.Denis Lepage. "Luxembourg." Avibase.Ülevaade temperatuuridest. Luksemburgi meteoroloogiateenistus.Ülevaade Luksemburgist. Euroopa Liidu esinduse koduleht.Système politique. TerritoireÜlevaade Luksemburgi rahvastikust. Luksemburgi statistikaamet.Luksemburgi rahvastik. Luksemburgi statistikaamet.The World FactbookMonique Borsenberger, Paul Dickes. "Religions au Luxembourg. Quelle évolution entre 1999-2008". Luksemburgi statistikaamet. 2011.Luksemburgi peapiiskopkond. Catholic-Hierarchy.Luksemburgi armee koduleht.Luksemburgi armee relvastus.Eesti Välisministeerium.Luksemburgi rahvastik. Luksemburgi statistikaamet.Luksemburgi Eesti Seltsi koduleht.Helen Eelrand. "Raadio, mis muutis maailma." Eesti Päevaleht. 13. märts 2004.Ülevaade Luksemburgi haridussüsteemist.Ülevaade Luksemburgi keskkoolidest.Luksemburgr

          Valle di Casies Indice Geografia fisica | Origini del nome | Storia | Società | Amministrazione | Sport | Note | Bibliografia | Voci correlate | Altri progetti | Collegamenti esterni | Menu di navigazione46°46′N 12°11′E / 46.766667°N 12.183333°E46.766667; 12.183333 (Valle di Casies)46°46′N 12°11′E / 46.766667°N 12.183333°E46.766667; 12.183333 (Valle di Casies)Sito istituzionaleAstat Censimento della popolazione 2011 - Determinazione della consistenza dei tre gruppi linguistici della Provincia Autonoma di Bolzano-Alto Adige - giugno 2012Numeri e fattiValle di CasiesDato IstatTabella dei gradi/giorno dei Comuni italiani raggruppati per Regione e Provincia26 agosto 1993, n. 412Heraldry of the World: GsiesStatistiche I.StatValCasies.comWikimedia CommonsWikimedia CommonsValle di CasiesSito ufficialeValle di CasiesMM14870458910042978-6