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;
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
add a comment |
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
add a comment |
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
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
linux filesystems
asked 8 hours ago
mike927mike927
1161
1161
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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.
Thank you for your reply. Not sure if you are familiar with digitalocean hosting but/dev/sdbit 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
add a comment |
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
);
);
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
Required, but never shown
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
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.
Thank you for your reply. Not sure if you are familiar with digitalocean hosting but/dev/sdbit 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
add a comment |
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.
Thank you for your reply. Not sure if you are familiar with digitalocean hosting but/dev/sdbit 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
add a comment |
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.
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.
answered 6 hours ago
Sven♦Sven
87.8k10148200
87.8k10148200
Thank you for your reply. Not sure if you are familiar with digitalocean hosting but/dev/sdbit 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
add a comment |
Thank you for your reply. Not sure if you are familiar with digitalocean hosting but/dev/sdbit 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
add a comment |
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.
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
Required, but never shown
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
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
Required, but never shown
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
Required, but never shown
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
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