How to resize main filesystem Announcing the arrival of Valued Associate #679: Cesar Manara ...
How to use bash to create a socket server and allow multiple clients in the same port?
.bashrc alias for a command with fixed second parameter
malloc in main() or malloc in another function: allocating memory for a struct and its members
Can haste grant me and my beast master companion extra attacks?
What does Turing mean by this statement?
Is it OK to use the testing sample to compare algorithms?
Is there a spell that can create a permanent fire?
Twin's vs. Twins'
Simple Line in LaTeX Help!
Statistical analysis applied to methods coming out of Machine Learning
Updates not showing on Software Updater?
2018 MacBook Pro won't let me install macOS High Sierra 10.13 from USB installer
How will be cipher selected when Client is running on version TLS 1.3 and server is running on TLS 1.2?
By what mechanism was the 2017 General Election called?
Inverse square law not accurate for non-point masses?
Where and when has Thucydides been studied?
Does the main washing effect of soap come from foam?
Should a wizard buy fine inks every time he want to copy spells into his spellbook?
Keyboard layout stuck into CZ_german no english layout after update, restore into original EN_us and EL_Gr ones
Short story about astronauts fertilizing soil with their own bodies
What does the writing on Poe's helmet say?
Why can't fire hurt Daenerys but it did to Jon Snow in season 1?
As a dual citizen, my US passport will expire one day after traveling to the US. Will this work?
Fit odd number of triplets in a measure?
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 6 hours ago
mike927mike927
1111
1111
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
2 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
2 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
2 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 4 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
2 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
2 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
2 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
2 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