* [Comm] Increase initrd size created by lvmcreate_initrd
@ 2005-04-05 6:58 Eugene Prokopiev
0 siblings, 0 replies; only message in thread
From: Eugene Prokopiev @ 2005-04-05 6:58 UTC (permalink / raw)
To: Community
Здравствуйте!
Необходимо добавить модуль xfs.o в initrd, созданный lvmcreate_initrd.
Делаю следующее:
# cat ./mkbiglvm
#!/bin/bash -x
ls -l initrd-lvm-2.4.26-std-up-alt6
mount -o loop initrd-lvm-2.4.26-std-up-alt6 /mnt/disk/
df | grep /mnt/disk
umount /mnt/disk
dd if=/dev/zero of=appendix bs=1M count=1
cat appendix >> initrd-lvm-2.4.26-std-up-alt6
ls -l initrd-lvm-2.4.26-std-up-alt6
resize2fs initrd-lvm-2.4.26-std-up-alt6 8192000
e2fsck -f initrd-lvm-2.4.26-std-up-alt6
mount -o loop initrd-lvm-2.4.26-std-up-alt6 /mnt/disk/
df | grep /mnt/disk
umount /mnt/disk
Вывод:
# ./mkbiglvm
+ ls -l initrd-lvm-2.4.26-std-up-alt6
-rw-r--r-- 1 root root 6729728 Apr 5 05:06 initrd-lvm-2.4.26-std-up-alt6
+ mount -o loop initrd-lvm-2.4.26-std-up-alt6 /mnt/disk/
+ df
+ grep /mnt/disk
4134 3834 300 93% /mnt/disk
+ umount /mnt/disk
+ dd if=/dev/zero of=appendix bs=1M count=1
1+0 records in
1+0 records out
+ cat appendix
+ ls -l initrd-lvm-2.4.26-std-up-alt6
-rw-r--r-- 1 root root 7778304 Apr 5 07:51 initrd-lvm-2.4.26-std-up-alt6
+ resize2fs initrd-lvm-2.4.26-std-up-alt6 8192000
Please run 'e2fsck -f initrd-lvm-2.4.26-std-up-alt6' first.
+ e2fsck -f initrd-lvm-2.4.26-std-up-alt6
e2fsck 1.35 (28-Feb-2004)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
/lost+found not found. Create<y>? yes
Pass 4: Checking reference counts
Pass 5: Checking group summary information
LVM-2.4.26-std-u: ***** FILE SYSTEM WAS MODIFIED *****
LVM-2.4.26-std-u: 19356/19416 files (0.0% non-contiguous), 6273/6572 blocks
+ mount -o loop initrd-lvm-2.4.26-std-up-alt6 /mnt/disk/
+ df
+ grep /mnt/disk
4134 3835 299 93% /mnt/disk
+ umount /mnt/disk
Почему после монтирования размер не изменился?
Можно, конечно, было создать файл с нуля и отформатировать его под ext2,
но тогда появляются другие проблемы : /dev из оригинального initrd не
умещается на fs большего размера. Как с этим бороться?
--
С уважением, Прокопьев Евгений
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-04-05 6:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-05 6:58 [Comm] Increase initrd size created by lvmcreate_initrd Eugene Prokopiev
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git