How to use newly mounted volume on linux server?
Clash 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?
linux mount
New contributor
add a comment |Â
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?
linux mount
New contributor
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
add a comment |Â
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?
linux mount
New contributor
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
linux mount
New contributor
New contributor
New contributor
asked 12 mins ago
Jason Goal
11
11
New contributor
New contributor
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
add a comment |Â
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
add a comment |Â
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.
New contributor
add a comment |Â
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.
add a comment |Â
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.
New contributor
add a comment |Â
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.
New contributor
add a comment |Â
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.
New contributor
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.
New contributor
New contributor
answered 5 mins ago
sla3k
11
11
New contributor
New contributor
add a comment |Â
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
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.
answered 4 mins ago
Nasir Riley
1,949139
1,949139
add a comment |Â
add a comment |Â
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.
Jason Goal is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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