how to activate a volume group

Using the magic of the “lt_hotswap” module, I can remove the cdrom in my T42’s ultrabay. It gets removed from the IDE sub-system, and I can then insert my spare hard disk.

Laptop ultrabay hotswap driver version 0.3.1 lt_hotswap: '\_SB.PCI0.LPC.EC.BAT1' found (Hot-Swappable) lt_hotswap: '\_SB.PCI0.IDE0.SCND.MSTR' found (Hot-Swappable) lt_hotswap: '\_SB.PCI0.PCI1.DOCK.IDE1.PRIM.MSTR' found (Non-Swappable) lt_hotswap: '\_SB.PCI0.LPC.FDC.FDD0' found (Hot-Swappable) lt_hotswap: '\_SB.PCI0.PCI1.DOCK' found (Hot-Swappable) lt_hotswap: Requesting IDE eject! lt_hotswap: Attempting to eject PM: Removing info for ide:1.0 PM: Removing info for No Bus:ide1 lt_hotswap: Attempting to eject ide1: BM-DMA at 0x1868-0x186f, BIOS settings: hdc:DMA, hdd:pio Probing IDE interface ide1... hdc: TOSHIBA MK4018GAP, ATA DISK drive PM: Adding info for No Bus:ide1 ide1 at 0x170-0x177,0x376 on irq 15 PM: Adding info for ide:1.0 hdc: max request size: 128KiB hdc: 78140160 sectors (40007 MB), CHS=65535/16/63, UDMA(33) hdc: cache flushes supported hdc: hdc2 < hdc5 hdc6 hdc7 hdc8 hdc9 hdc10 >

So, I ran my normal script that mounts partitions by LABEL= and it complained that my /dev/MaraUltraBay/* files weren’t there. Oops. Where is the volume group?

After some futzing, I learned that I did to run:

marajade-[~] root 179 #vgchange -a y MaraUltraBay 11 logical volume(s) in volume group "MaraUltraBay" now active marajade-[~] root 181 #lvs LV VG Attr LSize Origin Snap% Move Log Copy% CACHE MaraMainDisk -wi-ao 3.00G DistrosKernel MaraMainDisk -wi-ao 4.00G ProjectOpenswan MaraMainDisk -wi-ao 3.00G ProjectXelerance MaraMainDisk -wi-ao 2.00G ProjectsHifn MaraMainDisk -wi-ao 2.00G UMLROOT MaraMainDisk -wi-ao 2.00G BackupEtc MaraUltraBay -wi-a- 500.00M ProjectCobbix MaraUltraBay -wi-a- 1000.00M ProjectCroquet MaraUltraBay -wi-a- 2.00G ProjectStudioX MaraUltraBay -wi-a- 4.00G ProjectThintropy MaraUltraBay -wi-a- 3.00G ProjectVpnx MaraUltraBay -wi-a- 2.00G ProjectsFreeradius MaraUltraBay -wi-a- 1.00G ProjectsHifn2 MaraUltraBay -wi-a- 6.00G ProjectsMisc MaraUltraBay -wi-a- 2.00G ProjectsOpenswan2 MaraUltraBay -wi-a- 4.00G UMLROOT2 MaraUltraBay -wi-a- 2.00G marajade-[~] root 183 #/root/etc/sswboot start

Now, really, this needs to be driven by the hotplug system. I wish that it wasn’t quite as many twisty shell scripts… all alike.