CJ Fearnley on 6 Jul 2016 14:26:37 -0700 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
[PLUG] grub-install fails (Debian Jessie) |
I've mentioned at the last two PLUG Central meetings that I have a system which grub will not boot. Here are the details: The system was a fresh install of Debian Jessie. After booting I converted the lvm structure to LVM raid1 as per Keith's recommendation: cjf@tetrahelix:~$ sudo lvs -o +devices,seg_monitor,region_size,raid_sync_action,raid_mismatch_count LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Devices Monitor Region SyncAction Mismatches home tetrahelix Rwi-aor--- 1.46t 100.00 home_rimage_0(0),home_rimage_1(0) not monitored 2.00m idle 0 root tetrahelix rwi-aor--- 23.28g 100.00 root_rimage_0(0),root_rimage_1(0) not monitored 512.00k idle 0 swap tetrahelix rwi-a-r--- 252.00m 100.00 swap_rimage_0(0),swap_rimage_1(0) not monitored 512.00k idle 0 This RAID1 volume is on sda and sdb: cjf@tetrahelix:~$ sudo pvs PV VG Fmt Attr PSize PFree /dev/sda3 tetrahelix lvm2 a-- 1.82t 339.24g /dev/sdb3 tetrahelix lvm2 a-- 1.82t 339.24g Here is the partitioning: cjf@tetrahelix:~$ sudo fdisk -l /dev/sda Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: CC804C51-77C9-4754-B44F-5A4BADF99F3F Device Start End Sectors Size Type /dev/sda1 2048 4095 2048 1M BIOS boot /dev/sda2 4096 491519 487424 238M Linux swap /dev/sda3 491520 3907028991 3906537472 1.8T Linux LVM But grub fails (I purged grub and reinstalled to make sure there was nothing funky in the grub configuration): cjf@tetrahelix:~$ sudo grub-install --no-floppy --recheck /dev/sda1 Installing for i386-pc platform. grub-install: error: disk `lvmid/dcqgzj-awwK-OfNY-pVPk-dJNm-pEbM-OfP6VO/xAJ9fS-1bIS-oxAI-VF82-7no4-mrLe-XmNTzC' not found. That partition it doesn't know about is the LVM volume group: cjf@tetrahelix:~$ sudo vgs -v DEGRADED MODE. Incomplete RAID LVs will be processed. Finding all volume groups Finding volume group "tetrahelix" VG Attr Ext #PV #LV #SN VSize VFree VG UUID VProfile tetrahelix wz--n- 4.00m 2 3 0 3.64t 678.48g dcqgzj-awwK-OfNY-pVPk-dJNm-pEbM-OfP6VO For some reason blkid doesn't know about the volume group: cjf@tetrahelix:~$ sudo blkid /dev/sda2: UUID="b5f6fa01-86d4-4927-866c-db1744acf53d" TYPE="swap" PARTUUID="b8fc206f-5de3-4cfd-89dd-c6590aeac6c3" /dev/sda3: UUID="TufSbP-0kec-OS56-Xwf8-iKca-s2gL-KNzVtW" TYPE="LVM2_member" PARTUUID="d6790e81-40d7-4085-a32d-6ca38de50c9d" /dev/sdb2: UUID="549a36bd-564b-4bb3-a16d-87edafecc333" TYPE="swap" PARTUUID="78570a9a-1aa3-4433-9b83-f3a8ac8b3a0c" /dev/sdb3: UUID="va2Drk-qsA1-fCoF-HYEy-zfbB-1U9p-9LiDrJ" TYPE="LVM2_member" PARTUUID="378ef30c-b4bf-4df0-a5f9-381666a67e75" /dev/sdc1: UUID="2016-04-02-21-02-35-00" LABEL="Debian jessie 20160402-22:02" TYPE="iso9660" PARTUUID="32f9de5b-01" /dev/loop0: TYPE="squashfs" /dev/mapper/tetrahelix-root_rimage_0: UUID="bc49d20d-c4b8-4cfb-bd36-16e2c04062e9" TYPE="xfs" /dev/mapper/tetrahelix-root_rimage_1: UUID="bc49d20d-c4b8-4cfb-bd36-16e2c04062e9" TYPE="xfs" /dev/mapper/tetrahelix-root: UUID="bc49d20d-c4b8-4cfb-bd36-16e2c04062e9" TYPE="xfs" /dev/mapper/tetrahelix-home_rimage_0: UUID="519433cf-009f-4446-8699-8b19b7959959" TYPE="xfs" /dev/mapper/tetrahelix-home_rimage_1: UUID="519433cf-009f-4446-8699-8b19b7959959" TYPE="xfs" /dev/mapper/tetrahelix-home: UUID="519433cf-009f-4446-8699-8b19b7959959" TYPE="xfs" /dev/mapper/tetrahelix-swap_rmeta_0: UUID="10be6cb3-79a5-41c6-b61e-08f2e3042231" TYPE="swap" /dev/mapper/tetrahelix-swap_rimage_0: UUID="d04d5ce4-804e-4c36-aa18-ee1d4e73ca31" TYPE="swap" /dev/mapper/tetrahelix-swap_rimage_1: UUID="d04d5ce4-804e-4c36-aa18-ee1d4e73ca31" TYPE="swap" /dev/mapper/tetrahelix-swap: UUID="d04d5ce4-804e-4c36-aa18-ee1d4e73ca31" TYPE="swap" /dev/sdb1: PARTUUID="003da349-c3ed-42fe-a4b4-6923435c885f" /dev/sda1: PARTUUID="702ad639-5304-43a3-82a6-35c00d6ae207" How do I get grub to work so I can boot off the hard drive rather than convoluted chroots on a live CD? -- It is not for me to change you. The question is, how can I be of service to you without diminishing your degrees of freedom? --- R. Buckminster Fuller CJ Fearnley | "Dare to be Naive" -- Bucky Fuller cjf@CJFearnley.com | http://blog.CJFearnley.com http://www.CJFearnley.com | http://blog.RemoteResponder.net ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug