Possible to do live repartition and software raid install -- no reboot?
Hello Group,
I have Slackware 13.37 server with 2 x 500 Gig hard drives (/dev/sda and /dev/sdb) running in RAID1 using mdadm software raid. I'm running out of space with my current partition configuration: Code:
Filesystem Size Used Avail Use% Mounted on I want to use mdadm --remove to delete /dev/md2 through /dev/md8; Then use fdisk to delete primary and logical partitions that correspond to /dev/md2 through /dev/md8; Then create new partitions, build new RAID1 arrays, install EXT4 filesystem, mount, and populate with data. Can I do this without rebooting or damaging the the root partition? It is critical the server remains "up" and Samba server clients remain connected on the root filesystem. All guidance, tips, or how-to's are greatly appreciated. Thank you for your time and patience. I've included the current hard drive partitions too: Code:
Disk /dev/sda: 500.1 GB, 500107862016 bytes |
Looks like a job for parted and partprobe.
Sorry for the extra forum static -- for some reason I didn't bump into these with my initial round of search terms and phrases. Now, all I need is the courage to give it a try on a live production server. [shiver] |
I wanted to report back on the results.
In my case, after using fdisk to make partition changes, partprobe reported: Warning: WARNING: the kernel failed to re-read the partition table on /dev/sda (Device or resource busy). As a result, it may not reflect all of your changes until after reboot. My root partition was unharmed and continued function normally; but, I couldn't use the newly created partitions and install filesystems until rebooting. |
All times are GMT -5. The time now is 04:08 PM. |