Increase/Extend Root Filesystem Online Without Downtime & Without Losing Data Using fdisk In Linux

Поделиться
HTML-код
  • Опубликовано: 29 июн 2020
  • Learn the step by step process of how to resize a standard partition In Linux without unmounting a filesystem and without downtime. This Video showed the step by step process of increasing the root filesystem/partition online without downtime & without the loss of data :
    Tutorial Documentation tekneed.com/increase-standard...
    RHCSA exam practice questions: tekneed.com/ex200-rhcsa-9-exa...
    RHCE/ex294 exam practice questions:
    tekneed.com/rhce-ex294-exam-p...
    tekneed.com/rhce-ex294-v9-exa...
    #rhcsa #ex200 #linux
  • НаукаНаука

Комментарии • 96

  • @nas8r567
    @nas8r567 2 года назад +1

    Perfect tutorial for resizing/increasing partition size in Linux virtual machine using fdisk.

    • @tekneed
      @tekneed  2 года назад

      Glad it was helpful!

  • @agentzla
    @agentzla 2 года назад

    hello friend, how could i do a similar process with RAIDs ? i had a RAID 1 mounted with two 200gb HDs, now I'm replacing them with two 500gb ones, but as the RAID's being recovered, it's still stuck on the 200gb partitions (sda1-sdb1/sda2-sdb2). could you please help me increase these partitions so it'll match the 500gb ? thank you

  • @tedescojunior
    @tedescojunior 2 года назад +1

    You help me a lot !!!! After seeing your site I was able to increase the fuc ... xfs partition !!!

    • @tekneed
      @tekneed  2 года назад +1

      I am glad I was able to help. You are welcome

  • @joaocssilva
    @joaocssilva 2 года назад +2

    Thank you! Finally I could do that. It works fine.

    • @tekneed
      @tekneed  2 года назад

      You are welcome. Glad it helped

  • @drewskip
    @drewskip 2 года назад +2

    Thank you so much! saved me a ton of time

    • @tekneed
      @tekneed  2 года назад

      You're welcome!

  • @krunalmistry8
    @krunalmistry8 2 года назад +3

    it helped me a lot, thanks man!

    • @tekneed
      @tekneed  2 года назад +1

      Glad it helped!

  • @vohoangphuong2784
    @vohoangphuong2784 3 года назад

    can not using to incease root fs. it only using to extend

  • @galrickgak9615
    @galrickgak9615 Год назад +1

    You are a blessing!

    • @tekneed
      @tekneed  Год назад

      Thank you. You are welcome

  • @umrana5946
    @umrana5946 Год назад +2

    THANK YOU BROTHER, MY BOSS IS SATISFIED

    • @tekneed
      @tekneed  Год назад +1

      Glad I was able to help. You are welcome

  • @tineshkumarb5864
    @tineshkumarb5864 Год назад

    Hi,
    while installing cent os I have done the manual partition and give more space to the/var directory as per company requirements.
    but now the space got filled with data so I am planning to add one more HDD drive,
    hence my question is
    is that possible to increase the size of /var?
    or
    i need to mount the partition to diff directory
    Thank you
    please guide me in this case.

    • @tekneed
      @tekneed  Год назад

      Yes you can increase /var if you have space on the same disk but I am not sure about adding another disk since you did standard partitioning.

  • @paulooandree
    @paulooandree Год назад +1

    Awesome, man my macbook created a partition called EFI on my external hard drive, how do I delete it?
    /dev/disk1 (external, physical):
    #: TYPE NAME SIZE IDENTIFIER
    0: GUID_partition_scheme *1.0 TB disk1
    1: EFI EFI 209.7 MB disk1s1
    2: Microsoft Basic Data ENG PAULO 999.9 GB disk1s2

  • @systemadministrator5319
    @systemadministrator5319 Год назад +2

    Hi,
    If the root and boot partition is same in that scenario can extend the partition in same manner

    • @tekneed
      @tekneed  Год назад +2

      Yes, you can. Infact, I have had instances where my boot partition got filled up and this is the exact thing I did.

  • @robertoamarillas
    @robertoamarillas 2 года назад

    Mister, if i do this into a VPS with a cpanel like plesk installed, its possible that data loss occurs?
    i say this because you remove a partition in the video, and that looks like a potential data loss cause
    please, i need your help

    • @tekneed
      @tekneed  2 года назад +1

      It should work but please have your data backed-up just in case

  • @6uou
    @6uou Год назад

    Thank you dude, a really good tutorial. I have got the [mtd device must be supplied (device name is empty)] error in my vmware linux host machine and this video helps me to increase the size of the machine. 😅😅😅

    • @tekneed
      @tekneed  Год назад

      lol...Glad it helped

  • @thelaundryman9287
    @thelaundryman9287 3 года назад +5

    I keep getting value out of range when I try to resize?

    • @jammyy22
      @jammyy22 Год назад +3

      the disk likely doesn't have any free space. while using fdisk, press F, it should show you if there's any free space
      it's been a year, hopefully this helps lol

  • @EliasDEBS
    @EliasDEBS Год назад +1

    on Fedora at step 5, in order to grow the size I used `sudo btrfs filesystem resize max /` instead of `xfs_growfs` or `resize2fs`

    • @tekneed
      @tekneed  Год назад +1

      Thanks for the information

  • @matt1696
    @matt1696 Год назад +1

    thank you so muchj man rlly appreciate itl

    • @tekneed
      @tekneed  Год назад

      Glad I could help. You are welcome

  • @GabrielBallardin
    @GabrielBallardin 2 месяца назад

    If the idea is not to lose files, why did you delete the partition? As far as I know, deleting is losing files

  • @mohamudahmed6548
    @mohamudahmed6548 7 месяцев назад

    Hi tekneed,
    I have this method but not worked,
    I have installed oracle linux by creating 2 partitions like /u01 having 20GB and /Dir1 having 20G the rest was given to the /
    Later on i needed to increase the size of /u01 with +30G without data loss and i have a free space in my / that is 100G so.
    Please assist

    • @tekneed
      @tekneed  7 месяцев назад

      You said this method is not working. What is the exact error you are getting?

  • @chromerims
    @chromerims Год назад

    Thank you. Does not *gparted* do the same thing with equal performance regarding zero downtime and data loss? Kindest regards.

    • @tekneed
      @tekneed  Год назад

      I haven't tried gparted with it though but it should be able to do the same thing as fdisk. The pointer is making sure the information is still in memory.

    • @chromerims
      @chromerims Год назад

      @@tekneed 👍

  • @uttamkumarkumar3171
    @uttamkumarkumar3171 Год назад +1

    Well demonstrated video

    • @tekneed
      @tekneed  Год назад +1

      Thank you. Glad you liked it

  • @prapulkrishna
    @prapulkrishna 6 месяцев назад

    This is very well explained

    • @tekneed
      @tekneed  6 месяцев назад

      Glad it was helpful. You are welcome

  • @TheAmit990
    @TheAmit990 Год назад

    Hi ,
    Can extending a drive that contains MySQL be corrupted after the process?
    My drive is sda5 and it /var/lib/mysql
    thanks!!

    • @TheAmit990
      @TheAmit990 Год назад

      works!!! thanks!!!

    • @tekneed
      @tekneed  Год назад

      I am glad I could help. Thanks for subscribing in advance. lol.

  • @colsonswope351
    @colsonswope351 Месяц назад

    Thanks!

    • @tekneed
      @tekneed  Месяц назад

      you are welcome!

  • @oneman29
    @oneman29 2 года назад +2

    Can you also decrease the file system partition using this method?
    I tried to make 4 seperate partitions on my 2tb NVMe before installing Zorin but I struggled with the file settings for the partitioning so I did a clean install.
    I was hoping you could resize partitions quite easily like in Windows but I'm struggling so far... 😅

    • @tekneed
      @tekneed  2 года назад +1

      Yes, you can also decrease this way. Windows is straight forward. Linux too is with LVM and not standard partitioning

  • @merisskenderovic1030
    @merisskenderovic1030 Год назад

    for me it says permission denied when I try to do smth , my root file system is full its a 100% I cant login to my linux idk what should I do

    • @tekneed
      @tekneed  Год назад

      You said you can't login, so how are you getting permission denied? Try to login as root or a sudo user. You can add sudo at the beginning of your commands.
      Secondly, if you can't login because your root filesystem is full, create a rescue vm/server, attach the old one (disk) to the rescue vm as an external disk, delete some files from the root file system, and then attach it back to the main server.

    • @boku-no-pico
      @boku-no-pico Год назад

      sudo fdisk ? i didnt go into sudo su so try sudo fdisk because you probably didnt do sudo su

  • @Jarotganten
    @Jarotganten Месяц назад

    Keren bang, mama kamu pasti bangga

  • @wildpantsxd5189
    @wildpantsxd5189 Год назад

    yo man why it shows This disk is currently in use - repartitioning is probably a bad idea.
    It's recommended to umount all file systems, and swapoff all swap
    partitions on this disk.
    Can you give help me in doing what it says

    • @tekneed
      @tekneed  Год назад

      You are probably in the filesystem's/mount point directory of the disk you are trying to resize.

    • @wildpantsxd5189
      @wildpantsxd5189 Год назад

      How do I do it then, bro

    • @gamesred2549
      @gamesred2549 7 месяцев назад

      ​@@wildpantsxd5189u can use a live usb

    • @c0nsp739
      @c0nsp739 6 месяцев назад

      same question here @@wildpantsxd5189

  • @pedroluiz6498
    @pedroluiz6498 2 года назад

    TY!!!!

    • @tekneed
      @tekneed  2 года назад

      You are welcome

  • @withrejkapermana6087
    @withrejkapermana6087 Год назад

    I'm trying to figure it out on My own. But, I worried that it didn't work properly :". IDK

    • @tekneed
      @tekneed  Год назад +1

      What was the issue/error?

    • @withrejkapermana6087
      @withrejkapermana6087 Год назад

      @@tekneed the memory size seems got a limit. '/' with 440G and the '/home/' with 50G. So any document inside home path there's no longer receive more data. :".

  • @boku-no-pico
    @boku-no-pico Год назад

    You earned a sub also I had to use a ext command

    • @tekneed
      @tekneed  Год назад +1

      I am glad I could help. Thank you for subscribing.

    • @boku-no-pico
      @boku-no-pico Год назад

      @@tekneed sudo resize2fs /dev/sdd2 this is the resize command

    • @boku-no-pico
      @boku-no-pico Год назад

      @@tekneed ext4 was my file format

  • @mmmsheri6545
    @mmmsheri6545 Год назад

    thank you

    • @tekneed
      @tekneed  Год назад

      You're welcome 😊

  • @sriharsha6151
    @sriharsha6151 10 месяцев назад

    What if my filesystem is not xfs and is lvm?

    • @tekneed
      @tekneed  10 месяцев назад

      Then you use the lvm method(lvextend, vgextend, pvcreate, etc) to expand your partition.
      This link is an example: tekneed.com/how-to-extend-or-reduce-lvm-partition-in-linux/ The video to the link is at the end of the article.
      I hope this helps

  • @a.s1711
    @a.s1711 Год назад

    after typing n in 2:43 it showed
    Command (m for help): n
    Partition number (3-128, default 3):
    i tried typing p but it said value out of range

    • @tekneed
      @tekneed  Год назад

      Probably because you need to select an extended partition. Though, I see that you are trying to extend partition 3 which should still fall within a primary partition. Select "e", i.e extended & see if it will work for you

  • @zombiecrafter0758
    @zombiecrafter0758 10 месяцев назад

    tyvm

  • @Jarotganten
    @Jarotganten Месяц назад

    Keren bang

  • @dronefilmsgermany
    @dronefilmsgermany 2 года назад

    u deleted sda3 won't that cause any data loss?

    • @tekneed
      @tekneed  2 года назад

      it won't, as far as you haven't written/saved it yet.

    • @boku-no-pico
      @boku-no-pico Год назад

      I had zero loss. I had a clone of my drive my server was out of space. Had to use the ext4 command but yeah. Very easy. If you're worried use clonezilla in case

  • @ghostflyer17
    @ghostflyer17 3 года назад

    Will this work on Oracle Linux?

    • @tekneed
      @tekneed  3 года назад

      It should work

    • @rewardyonkeu8387
      @rewardyonkeu8387 2 года назад

      No it's not working. I try to and follow all steps. and after some research i found that Oracle has lock the options to extend the partition size

    • @rewardyonkeu8387
      @rewardyonkeu8387 2 года назад

      @@tekneed No it's not working. I try to and follow all steps. and after some research i found that Oracle has lock the options to extend the partition size

  • @chellenta1175
    @chellenta1175 2 года назад

    Have you deleted partition and not lost the data?

    • @tekneed
      @tekneed  2 года назад +1

      yes, but this way

    • @boku-no-pico
      @boku-no-pico Год назад +2

      nothing is deleted when it is doing this in ram. until your write the changes nothing is changed so you wont lose anything unless you mess up bad and w write at the end

  • @ShahidQureshi-ee6wz
    @ShahidQureshi-ee6wz 4 месяца назад

    Welldone boy

  • @charlesklein7232
    @charlesklein7232 Год назад +1

    very nice video but you need a new microphone you sound like your talking in a tin can. its difficult to hear what your saying, also could you zoom in the printing is very small.

    • @tekneed
      @tekneed  Год назад

      Thanks for the tip

  • @mistervinzz926
    @mistervinzz926 Год назад

    a cause de toi j'ai plus de VM !!

  • @simounibarra1514
    @simounibarra1514 9 месяцев назад

    Your procedures are pretty dangerous. If this is in production, I have to ensure I have another job to go to when this blow over :)

    • @tekneed
      @tekneed  9 месяцев назад

      loool...I laughed very hard. Well, I did this in production. As a matter of fact, it was a multinational organization, and the regional data were sitting on that server. It was actually running SAP..Like I mentioned, YOU MUST DO A BACKUP OF THE SERVER , which is the right thing to do anyway ;)

  • @abenezerseyoum4144
    @abenezerseyoum4144 3 года назад +4

    It props an error on the final step
    root@etisp:~# xfs_growfs /
    xfs_growfs: specified file ["/"] is not on an XFS filesystem

    • @tekneed
      @tekneed  3 года назад +4

      check the type of filesystem it is. try "resize2fs /" if it's ext(n) type of filesystem.

    • @nas8r567
      @nas8r567 2 года назад +1

      @@tekneed This was perfect. THANKS!

  • @cgme9535
    @cgme9535 9 месяцев назад

    Thanks!

    • @tekneed
      @tekneed  9 месяцев назад

      You are welcome