2011-09-23
some errors when extend LV for root filesystem.
When daily packages update, those toubles happened. I updated latest linux-image-3.0.0 for Sid/VirtualBox, but failed that. The cause was that capasity of root file system was not enough. I added SATO virtual disk to the VM, I booted from rescue mode of netinst Debian system, did not mount any devices as root file system, executed follow procedure in rescue mode shell.
# fdisk /dev/sdb # make a new slice(/dev/sdb1) as LVM # pvcreate /dev/sdb1 # vgextend hogevg /dev/sdb1 # lvextend -l +20 /dev/hogevg/root # e2fsck -f /dev/hogevg/root # resize2fs /dev/hogevg/root # exit
I rebooted, then VM poweroff and dettach netinst.iso, power on VM.
This boot was successful, I updated deb packes and reboot again. But next boot failed on the way. The new initramfs cannot find a device of root file system. I forgot to add the new device file to /boot/grub/device.map. Then, I fallback to a snapshot of pre-updating, executed previous procedures without reboot kernel, and executed below procedures finally.
# grub-mdevicemap # update-initramfs -u -k 3.0.0-1-amd64 # update-grub2 # shutdown -r now
- 21 http://d.hatena.ne.jp/mkouhei/20111016/1318757317
- 15 http://d.hatena.ne.jp/mkouhei/
- 12 http://d.hatena.ne.jp/mkouhei/20120119/1326980948
- 10 http://www.palmtb.net/
- 8 http://d.hatena.ne.jp/mkouhei/20120102/1325431966
- 8 http://www.google.com/search
- 4 http://d.hatena.ne.jp/mkouhei/touch/20120119/1326980948
- 4 http://www.google.co.jp/url?sa=t&rct=j&q=unable to create temporary sha1 filename&source=web&cd=36&ved=0CEoQFjAFOB4&url=http://d.hatena.ne.jp/emkouhei/20090509/1241875213&ei=PtizTs-nKrCJmQXN_MTJAw&usg=AFQjCNHRb8LZUvrIzUr8iH6FNK9dAukQ
- 3 http://www.google.co.jp/url?sa=t&source=web&cd=3&sqi=2&ved=0CDgQFjAC&url=http://d.hatena.ne.jp/emkouhei/20090509/1241875213&rct=j&q=git unpacker error&ctbs=lr:lang_1ja&ei=5QONTumPM6SimQX06dQF&usg=AFQjCNHRb8LZUvrIzUr8iH6FNK9dAukQDA
- 2 http://d.hatena.ne.jp/keyword/AMD64