How to use newly mounted volume on linux server?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I'm really new to Linux, the question makes me struggle for half a day may be super easy, But I just can't fix it so far. Anyway, here is the problem:
I'm using a cloud-based Linux server:
Linux seller-huge.novalocal 3.10.0-862.11.6.el7.x86_64 #1 SMP Tue Aug 14 21:49:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux.



I use this to do data scraping, it worked well it the past, but all my python3 scripts break down today with the following error:



Traceback (most recent call last):
File "feedback_1.py", line 82, in main
scrape_wr.writerow(result_scrape)
OSError: [Errno 28] No space left on device

During handling of the above exception, another exception occurred:

OSError: [Errno 28] No space left on device

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "feedback_1.py", line 85, in <module>
main(0, 200000, 0)


I thought this should be caused by unavailable disk space, So I searched online and figured how to mount new volumes to my instance:



[gaojia@seller-huge feedback_scrape]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 20G 20G 20K 100% /
devtmpfs 32G 0 32G 0% /dev
tmpfs 32G 0 32G 0% /dev/shm
tmpfs 32G 33M 32G 1% /run
tmpfs 32G 0 32G 0% /sys/fs/cgroup
tmpfs 6.3G 0 6.3G 0% /run/user/1000
/dev/vdc 197G 61M 187G 1% /myspace3
/dev/vdb 50G 53M 47G 1% /myspace2


vdc and vdb are newly added volumes, judging on the result of df-h, I think they are mounted correctly, but how could I use them then? I mean how could I put data into these volumes?










share|improve this question







New contributor




Jason Goal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • go to the directory that is named in the last column
    – jsotola
    9 mins ago










  • Then what? like I put all my scraping scripts, like scraping.py under this directory and run it from there?
    – Jason Goal
    5 mins ago










  • you asked how to put data into the mounted volumes ..... you can put whatever you want into those directories ..... it seems like you are using comments to ask a question that is unrelated to your original question ..... or your original question is misleading and does not ask the true question
    – jsotola
    50 secs ago















up vote
0
down vote

favorite












I'm really new to Linux, the question makes me struggle for half a day may be super easy, But I just can't fix it so far. Anyway, here is the problem:
I'm using a cloud-based Linux server:
Linux seller-huge.novalocal 3.10.0-862.11.6.el7.x86_64 #1 SMP Tue Aug 14 21:49:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux.



I use this to do data scraping, it worked well it the past, but all my python3 scripts break down today with the following error:



Traceback (most recent call last):
File "feedback_1.py", line 82, in main
scrape_wr.writerow(result_scrape)
OSError: [Errno 28] No space left on device

During handling of the above exception, another exception occurred:

OSError: [Errno 28] No space left on device

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "feedback_1.py", line 85, in <module>
main(0, 200000, 0)


I thought this should be caused by unavailable disk space, So I searched online and figured how to mount new volumes to my instance:



[gaojia@seller-huge feedback_scrape]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 20G 20G 20K 100% /
devtmpfs 32G 0 32G 0% /dev
tmpfs 32G 0 32G 0% /dev/shm
tmpfs 32G 33M 32G 1% /run
tmpfs 32G 0 32G 0% /sys/fs/cgroup
tmpfs 6.3G 0 6.3G 0% /run/user/1000
/dev/vdc 197G 61M 187G 1% /myspace3
/dev/vdb 50G 53M 47G 1% /myspace2


vdc and vdb are newly added volumes, judging on the result of df-h, I think they are mounted correctly, but how could I use them then? I mean how could I put data into these volumes?










share|improve this question







New contributor




Jason Goal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • go to the directory that is named in the last column
    – jsotola
    9 mins ago










  • Then what? like I put all my scraping scripts, like scraping.py under this directory and run it from there?
    – Jason Goal
    5 mins ago










  • you asked how to put data into the mounted volumes ..... you can put whatever you want into those directories ..... it seems like you are using comments to ask a question that is unrelated to your original question ..... or your original question is misleading and does not ask the true question
    – jsotola
    50 secs ago













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm really new to Linux, the question makes me struggle for half a day may be super easy, But I just can't fix it so far. Anyway, here is the problem:
I'm using a cloud-based Linux server:
Linux seller-huge.novalocal 3.10.0-862.11.6.el7.x86_64 #1 SMP Tue Aug 14 21:49:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux.



I use this to do data scraping, it worked well it the past, but all my python3 scripts break down today with the following error:



Traceback (most recent call last):
File "feedback_1.py", line 82, in main
scrape_wr.writerow(result_scrape)
OSError: [Errno 28] No space left on device

During handling of the above exception, another exception occurred:

OSError: [Errno 28] No space left on device

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "feedback_1.py", line 85, in <module>
main(0, 200000, 0)


I thought this should be caused by unavailable disk space, So I searched online and figured how to mount new volumes to my instance:



[gaojia@seller-huge feedback_scrape]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 20G 20G 20K 100% /
devtmpfs 32G 0 32G 0% /dev
tmpfs 32G 0 32G 0% /dev/shm
tmpfs 32G 33M 32G 1% /run
tmpfs 32G 0 32G 0% /sys/fs/cgroup
tmpfs 6.3G 0 6.3G 0% /run/user/1000
/dev/vdc 197G 61M 187G 1% /myspace3
/dev/vdb 50G 53M 47G 1% /myspace2


vdc and vdb are newly added volumes, judging on the result of df-h, I think they are mounted correctly, but how could I use them then? I mean how could I put data into these volumes?










share|improve this question







New contributor




Jason Goal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I'm really new to Linux, the question makes me struggle for half a day may be super easy, But I just can't fix it so far. Anyway, here is the problem:
I'm using a cloud-based Linux server:
Linux seller-huge.novalocal 3.10.0-862.11.6.el7.x86_64 #1 SMP Tue Aug 14 21:49:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux.



I use this to do data scraping, it worked well it the past, but all my python3 scripts break down today with the following error:



Traceback (most recent call last):
File "feedback_1.py", line 82, in main
scrape_wr.writerow(result_scrape)
OSError: [Errno 28] No space left on device

During handling of the above exception, another exception occurred:

OSError: [Errno 28] No space left on device

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "feedback_1.py", line 85, in <module>
main(0, 200000, 0)


I thought this should be caused by unavailable disk space, So I searched online and figured how to mount new volumes to my instance:



[gaojia@seller-huge feedback_scrape]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 20G 20G 20K 100% /
devtmpfs 32G 0 32G 0% /dev
tmpfs 32G 0 32G 0% /dev/shm
tmpfs 32G 33M 32G 1% /run
tmpfs 32G 0 32G 0% /sys/fs/cgroup
tmpfs 6.3G 0 6.3G 0% /run/user/1000
/dev/vdc 197G 61M 187G 1% /myspace3
/dev/vdb 50G 53M 47G 1% /myspace2


vdc and vdb are newly added volumes, judging on the result of df-h, I think they are mounted correctly, but how could I use them then? I mean how could I put data into these volumes?







linux mount






share|improve this question







New contributor




Jason Goal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




Jason Goal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




Jason Goal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 12 mins ago









Jason Goal

11




11




New contributor




Jason Goal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Jason Goal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Jason Goal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











  • go to the directory that is named in the last column
    – jsotola
    9 mins ago










  • Then what? like I put all my scraping scripts, like scraping.py under this directory and run it from there?
    – Jason Goal
    5 mins ago










  • you asked how to put data into the mounted volumes ..... you can put whatever you want into those directories ..... it seems like you are using comments to ask a question that is unrelated to your original question ..... or your original question is misleading and does not ask the true question
    – jsotola
    50 secs ago

















  • go to the directory that is named in the last column
    – jsotola
    9 mins ago










  • Then what? like I put all my scraping scripts, like scraping.py under this directory and run it from there?
    – Jason Goal
    5 mins ago










  • you asked how to put data into the mounted volumes ..... you can put whatever you want into those directories ..... it seems like you are using comments to ask a question that is unrelated to your original question ..... or your original question is misleading and does not ask the true question
    – jsotola
    50 secs ago
















go to the directory that is named in the last column
– jsotola
9 mins ago




go to the directory that is named in the last column
– jsotola
9 mins ago












Then what? like I put all my scraping scripts, like scraping.py under this directory and run it from there?
– Jason Goal
5 mins ago




Then what? like I put all my scraping scripts, like scraping.py under this directory and run it from there?
– Jason Goal
5 mins ago












you asked how to put data into the mounted volumes ..... you can put whatever you want into those directories ..... it seems like you are using comments to ask a question that is unrelated to your original question ..... or your original question is misleading and does not ask the true question
– jsotola
50 secs ago





you asked how to put data into the mounted volumes ..... you can put whatever you want into those directories ..... it seems like you are using comments to ask a question that is unrelated to your original question ..... or your original question is misleading and does not ask the true question
– jsotola
50 secs ago











2 Answers
2






active

oldest

votes

















up vote
0
down vote













By saying "put data into these volumes" I am guessing you just want your script to write data to these newly added disks. In that case, you'd need to edit your script to point the destination directory to the mount points to which these disks are mounted on. From the output of 'df -h', /dev/vdc is mounted on /myspace3 and /dev/vdb is mounted on /myspace2.



/myspace2,3 are just like any other directory on your linux filesystem.




$ cp something.txt /myspace3




will copy 'something.txt' file in '/myspace3' directory; and




cp something1.txt /myspace2




will copy 'something1.txt' in /myspace2 directory.





share








New contributor




sla3k is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    up vote
    0
    down vote













    You can write data to those volumes at /myspace2 and /myspace3 as normal.



    The issue is that /dev/vda, which is mounted at / and contains the operating system itself, is completely full.



    You need to clear space off of / first or else you're going to have a ton of problems which includes updates and installing and running software which will need to write to it.





    share




















      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "106"
      ;
      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',
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      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
      );



      );






      Jason Goal is a new contributor. Be nice, and check out our Code of Conduct.









       

      draft saved


      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f479237%2fhow-to-use-newly-mounted-volume-on-linux-server%23new-answer', 'question_page');

      );

      Post as a guest






























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      0
      down vote













      By saying "put data into these volumes" I am guessing you just want your script to write data to these newly added disks. In that case, you'd need to edit your script to point the destination directory to the mount points to which these disks are mounted on. From the output of 'df -h', /dev/vdc is mounted on /myspace3 and /dev/vdb is mounted on /myspace2.



      /myspace2,3 are just like any other directory on your linux filesystem.




      $ cp something.txt /myspace3




      will copy 'something.txt' file in '/myspace3' directory; and




      cp something1.txt /myspace2




      will copy 'something1.txt' in /myspace2 directory.





      share








      New contributor




      sla3k is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





















        up vote
        0
        down vote













        By saying "put data into these volumes" I am guessing you just want your script to write data to these newly added disks. In that case, you'd need to edit your script to point the destination directory to the mount points to which these disks are mounted on. From the output of 'df -h', /dev/vdc is mounted on /myspace3 and /dev/vdb is mounted on /myspace2.



        /myspace2,3 are just like any other directory on your linux filesystem.




        $ cp something.txt /myspace3




        will copy 'something.txt' file in '/myspace3' directory; and




        cp something1.txt /myspace2




        will copy 'something1.txt' in /myspace2 directory.





        share








        New contributor




        sla3k is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.



















          up vote
          0
          down vote










          up vote
          0
          down vote









          By saying "put data into these volumes" I am guessing you just want your script to write data to these newly added disks. In that case, you'd need to edit your script to point the destination directory to the mount points to which these disks are mounted on. From the output of 'df -h', /dev/vdc is mounted on /myspace3 and /dev/vdb is mounted on /myspace2.



          /myspace2,3 are just like any other directory on your linux filesystem.




          $ cp something.txt /myspace3




          will copy 'something.txt' file in '/myspace3' directory; and




          cp something1.txt /myspace2




          will copy 'something1.txt' in /myspace2 directory.





          share








          New contributor




          sla3k is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          By saying "put data into these volumes" I am guessing you just want your script to write data to these newly added disks. In that case, you'd need to edit your script to point the destination directory to the mount points to which these disks are mounted on. From the output of 'df -h', /dev/vdc is mounted on /myspace3 and /dev/vdb is mounted on /myspace2.



          /myspace2,3 are just like any other directory on your linux filesystem.




          $ cp something.txt /myspace3




          will copy 'something.txt' file in '/myspace3' directory; and




          cp something1.txt /myspace2




          will copy 'something1.txt' in /myspace2 directory.






          share








          New contributor




          sla3k is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.








          share


          share






          New contributor




          sla3k is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          answered 5 mins ago









          sla3k

          11




          11




          New contributor




          sla3k is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





          New contributor





          sla3k is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.






          sla3k is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.






















              up vote
              0
              down vote













              You can write data to those volumes at /myspace2 and /myspace3 as normal.



              The issue is that /dev/vda, which is mounted at / and contains the operating system itself, is completely full.



              You need to clear space off of / first or else you're going to have a ton of problems which includes updates and installing and running software which will need to write to it.





              share
























                up vote
                0
                down vote













                You can write data to those volumes at /myspace2 and /myspace3 as normal.



                The issue is that /dev/vda, which is mounted at / and contains the operating system itself, is completely full.



                You need to clear space off of / first or else you're going to have a ton of problems which includes updates and installing and running software which will need to write to it.





                share






















                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  You can write data to those volumes at /myspace2 and /myspace3 as normal.



                  The issue is that /dev/vda, which is mounted at / and contains the operating system itself, is completely full.



                  You need to clear space off of / first or else you're going to have a ton of problems which includes updates and installing and running software which will need to write to it.





                  share












                  You can write data to those volumes at /myspace2 and /myspace3 as normal.



                  The issue is that /dev/vda, which is mounted at / and contains the operating system itself, is completely full.



                  You need to clear space off of / first or else you're going to have a ton of problems which includes updates and installing and running software which will need to write to it.






                  share











                  share


                  share










                  answered 4 mins ago









                  Nasir Riley

                  1,949139




                  1,949139




















                      Jason Goal is a new contributor. Be nice, and check out our Code of Conduct.









                       

                      draft saved


                      draft discarded


















                      Jason Goal is a new contributor. Be nice, and check out our Code of Conduct.












                      Jason Goal is a new contributor. Be nice, and check out our Code of Conduct.











                      Jason Goal is a new contributor. Be nice, and check out our Code of Conduct.













                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f479237%2fhow-to-use-newly-mounted-volume-on-linux-server%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Popular posts from this blog

                      How to check contact read email or not when send email to Individual?

                      Bahrain

                      Postfix configuration issue with fips on centos 7; mailgun relay