trioes.blogg.se

Extfs terminal commands
Extfs terminal commands








extfs terminal commands

Extfs terminal commands update#

To make the disk driver update its knowledge of the disk size and shape. The size of the disk in blocks had grown from 15623782400 to 23435673600 (512-byte) blocks, but the value of /sys/block/sdb/size was still at the lower value.The server continued to work with lower disk speeds during the reconstruction of the RAID disk. This took several days to complete, but involved no further human effort. Growing the physical RAID volume was done by adding two new disks to the server and using the OpenManage Server Administrator tool to add them to the existing RAID volume.I just used Linux commands (and Dell's RAID tools): This is how I did this without dismounting, rebooting or interrupting operations on the system. This would work for an ext4 partition in almost exactly the same way - see later. This was an XFS partition on a RAID 0 disk with a normal GPT disklabel. I was asked to grow a disk mounted as /scratch on a Dell server running CentOS 7 without interrupting current users. I have never lost files or corrupted the drive using this method. df -m (I check /home to verify it resized) Enter last sector of resize = "-1" (minus 1 means 1 sector from end of disk)ģ resize2fs /dev/sda"x" (x = partition to be resized. resize x (x = partition you want to resize, use "p" to get a list of partitions)ī. umount /home (I retry this command if it fails for up to 30 seconds, then go look at other sessions to see if I am "cd /home/xxx" somewhere.)Ī. If you just logged out of a user log in, it can take Linux 20-30 seconds to finish closing any files, so you might get errors trying to umount /home.ġ. I logout of a GUI (KDE / Gnome / etc) session and use + + to bring up a shell session. Since "root" user's home directory is directly under the system root / as in /root, if you can log into root, then you can unmount /home But to unmount /home, you need to make sure you are not logged into any user account whose home directory is within it.

extfs terminal commands

In this case, you just need to unmount /home while you extend it. This is the situation I have when I take a image from a smaller drive or SSD and move it to a larger SSD. This is especially true if is the last partition. If you want to change a mounted partition that is not the "root" partition (/), like /home which is a different partition, then there is no need to use a rescue image. Sda2 = / (partition to be expanded is not last)

extfs terminal commands

If partition to be expanded is NOT the last partition, you must use gparted boot image to move or resize the partitions.Partition to be expanded is the last partition, but you booted from it and cannot unmount it. I think the best "rescue" cd or usb in this case would be a bootable gparted USB or CDġ. This allows you to run Linux on the machine other then the drive you want to make changes to. If it is the boot partition you want to resize, then you must boot from a bootcd or bootusb "rescue" drive which is just a Live Linux. Just to clarify how I do this for anyone that is still reading this thread.










Extfs terminal commands