Project

General

Profile

Actions

Bug #9628

closed

UFS boot archives are too large

Added by Andy Fiddaman about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
bootloader
Start date:
2018-06-27
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

When creating a UFS boot archive, the calculation for how much space will be required reserves 1024 times too much space for directories, resulting in boot archives around twice as big as they need to be.

bloody# /boot/solaris/bin/create_ramdisk --nocompress
updating /platform/i86pc/amd64/boot_archive
updating /platform/i86pc/boot_archive
bloody# gzip -dc /platform/i86pc/amd64/boot_archive > /tmp/l
bloody# ls -l /tmp/l
-rw-r--r--   1 root     root        175M Jun 27 00:49 /tmp/l
bloody# mount `lofiadm -a /tmp/l` /mnt
bloody# df -h /mnt
Filesystem             Size   Used  Available Capacity  Mounted on
/dev/lofi/1            163M  76.8M      70.2M    53%    /mnt
bloody# du -hs /mnt
75.8M   /mnt

After the fix:

bloody# /boot/solaris/bin/create_ramdisk.new --nocompress
updating /platform/i86pc/amd64/boot_archive
bloody# gzip -dc /platform/i86pc/amd64/boot_archive > /tmp/l
bloody# ls -l /tmp/l
-rw-r--r--   1 root     root       91.7M Jun 27 00:55 /tmp/l
bloody# mount `lofiadm -a /tmp/l` /mnt
bloody# df -h /mnt
Filesystem             Size   Used  Available Capacity  Mounted on
/dev/lofi/1           85.8M  76.8M      8.98M    90%    /mnt
bloody# du -hs /mnt
75.8M   /mnt

Related issues

Related to illumos gate - Feature #9627: No longer need 32-bit boot_archiveClosedAndy Fiddaman2018-06-26

Actions
Actions

Also available in: Atom PDF