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;
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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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