Messages in this thread | | | Date | Tue, 07 Dec 2004 07:16:58 -0800 | From | "Randy.Dunlap" <> | Subject | Re: Rereading disk geometry without reboot |
| |
Jan Engelhardt wrote: >>I am using linux kernel 2.6.9 on a san. I have file systems on > > > (What's a SAN?) > > >>non-partitioned disks. I can resize the disk on the SAN, reboot and grow >>the XFS file system those disks. What I would like to avoid rebooting or >>even unmounting the filesystem if possible. >> >>Is there any way to get the kernel to re-read the disk geometry and change >>the information it holds without rebooting or reloading the module (which is >>as bad as a reboot in my case)? > > > The `fdisk` tool will spit out an ioctl() to make the kernel reread the > partition table (on normal computers, don't know about or what SAN). No need to > reboot there at least.
There's 'blockdev --rereadpt' also, but neither of these work on a mounted filesystem afaik.
-- ~Randy - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |