I want to remove one of the disk drives from my 'main' system (running Fedora 8). The drives on that system are currently:-
/dev/VolGroup01/LogVol00 / ext3 defaults 1 1 LABEL=/boot1 /boot ext3 defaults 1 2 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 /dev/VolGroup00/LogVol01 swap swap defaults 0 0 /dev/VolGroup01/LogVol01 swap swap defaults 0 0 # # # Additions to see Fedora 7 partitions # /dev/sdb1 /f7boot ext3 defaults 0 0 /dev/VGa2/LVa2 /a2 ext3 defaults 0 0 /dev/VolGroup00/LogVol00 /f7 ext3 defaults 0 0
The disk I want to remove is /dev/sda which is (mostly) that /f7 mount point /dev/VolGroup00/LogVol00 (and also some of the swap). The two drives I'm leaving are currently /dev/sdb and /dev/sdc.
I can see if all is well in terms of the contents of the drives by simply removing the two lines from /etc/fstab and rebooting, that will check that there's nothing needed for the system to run on /dev/sda.
However will the resulting changed names of the underlying physical drives that (I presume) will occur when I remove /dev/sda cause any problems? I.e. will it stop the system booting/running? If so would it just be a matter of booting off a CD and going into single user mode to sort things out or is it messier than that?
Chris G cl@isbd.net wrote:
The disk I want to remove is /dev/sda which is (mostly) that /f7 mount point /dev/VolGroup00/LogVol00 (and also some of the swap). The two drives I'm leaving are currently /dev/sdb and /dev/sdc. [...] However will the resulting changed names of the underlying physical drives that (I presume) will occur when I remove /dev/sda cause any problems? I.e. will it stop the system booting/running?
It might. I suspect it depends on your LVM configuration - whether they're pointing to things like sdb and sdc, or labels or nodes in disk/by-id or disk/by-uuid.
Actually, I think your system will probably boot because of LABEL=/boot but it might need grub-tweaking to find the right root.
If so would it just be a matter of booting off a CD and going into single user mode to sort things out or is it messier than that?
Yes, booting off a CD and editing things should sort things out, but make sure the CD has copies of the LVM utilities available.
Worst case, couldn't you reconnect the drive in the old place?
Regards,
On Sun, Oct 12, 2008 at 07:14:25PM +0100, MJ Ray wrote:
Chris G cl@isbd.net wrote:
The disk I want to remove is /dev/sda which is (mostly) that /f7 mount point /dev/VolGroup00/LogVol00 (and also some of the swap). The two drives I'm leaving are currently /dev/sdb and /dev/sdc. [...] However will the resulting changed names of the underlying physical drives that (I presume) will occur when I remove /dev/sda cause any problems? I.e. will it stop the system booting/running?
It might. I suspect it depends on your LVM configuration - whether they're pointing to things like sdb and sdc, or labels or nodes in disk/by-id or disk/by-uuid.
I *think* they're pointing to /dev/sda, /dev/sdb etc., at least that's what it looks like when looking at "Logical Volume Management".
Actually, I think your system will probably boot because of LABEL=/boot but it might need grub-tweaking to find the right root.
If so would it just be a matter of booting off a CD and going into single user mode to sort things out or is it messier than that?
Yes, booting off a CD and editing things should sort things out, but make sure the CD has copies of the LVM utilities available.
Worst case, couldn't you reconnect the drive in the old place?
Yes, of course.