[root@router]~# df -h Filesystem Size Used Avail Capacity Mounted on
/dev/ufs/BSDRPs1a 447M 434M 13M 97% / devfs 1.0K 1.0K 0B 100% /dev tmpfs 10M 4.2M 5.8M 42% /etc tmpfs 20M 3.2M 17M 16% /var [root@router]~# gpart show ada0 => 63 33554369 ada0 MBR (16G) 63 931707 1 freebsd [active] (455M) 931770 63 - free - (32K) 931833 931707 2 freebsd (455M) 1863540 32130 3 freebsd (16M) 1895670 32130 4 freebsd (16M) 1927800 31626632 - free - (15G) [root@router]~# sh -x /usr/local/sbin/system expand-data-slice + set -eu + USER_CONFIRM='' + [ 1 -eq 0 ] + FIRST_OPTION=expand-data-slice + [ 1 -ge 2 ] + SECOND_OPTION='' + [ 1 -ge 3 ] + THIRD_OPTION='' + expand_data_slice + . /etc/nanobsd.conf + NANO_DRIVE=ufs/BSDRP + uname -m + [ amd64 '=' sparc64 ] + glabel status + grep ufs/BSDRPs1a + awk '{ s=$3; sub(/s[12]a$/, "", s); print s; }' + boot_dev=/dev/ada0 + get_label + cut -d / -f 2 /etc/nanobsd.conf + local 'label=BSDRP' + [ -n BSDRP ] + echo BSDRP + label=BSDRP + is_mounted /data + [ -z /data ] + mount + grep -q -e '[[:space:]]/data[[:space:]]' + return 1 + gpart show /dev/ada0 + grep '\- free \-' + grep -v 'K)' + cut -d - -f 3 + tr -s ' ' + FREE_SPACE=' (15G)' + [ -z ' (15G)' ] + echo 'There is (15G) available on your disk that can be use for /data' There is (15G) available on your disk that can be use for /data + echo -n 'Are you sure to repartition your disk ? (y/n)' Are you sure to repartition your disk ? (y/n)+ [ '' '!=' y -a '' '!=' n ] + read USER_CONFIRM y + [ y '!=' y -a y '!=' n ] + [ y '=' n ] + dump -0auf/tmp/s4.dump /dev/ufs/BSDRPs4 DUMP: Date of this level 0 dump: Sun May 19 10:58:26 2019 DUMP: Date of last level 0 dump: the epoch DUMP: Dumping /dev/ufs/BSDRPs4 (/data) to /tmp/s4.dump DUMP: mapping (Pass I) [regular files] DUMP: mapping (Pass II) [directories] DUMP: estimated 24 tape blocks. DUMP: dumping (Pass III) [directories] DUMP: dumping (Pass IV) [regular files] DUMP: DUMP: 23 tape blocks on 1 volume DUMP: finished in less than a second DUMP: level 0 dump on Sun May 19 10:58:26 2019 DUMP: Closing /tmp/s4.dump DUMP: DUMP IS DONE + gpart delete -i 4 /dev/ada0 ada0s4 deleted + gpart add -t freebsd /dev/ada0 ada0s4 added + get_label + cut -d / -f 2 /etc/nanobsd.conf + local 'label=BSDRP' + [ -n BSDRP ] + echo BSDRP + label=BSDRP + newfs -UjL BSDRPs4 /dev/ada0s4 /dev/ada0s4: 15458.4MB (31658760 sectors) block size 32768, fragment size 4096 using 25 cylinder groups of 626.09MB, 20035 blks, 80256 inodes. with soft updates super-block backups (for fsck_ffs -b #) at: 192, 1282432, 2564672, 3846912, 5129152, 6411392, 7693632, 8975872, 10258112, 11540352, 12822592, 14104832, 15387072, 16669312, 17951552, 19233792, 20516032, 21798272, 23080512, 24362752, 25644992, 26927232, 28209472, 29491712, 30773952 Using inode 4 in cg 0 for 33554432 byte journal newfs: soft updates journaling set + [ -d /tmp/slice ] + mkdir -p /tmp/slice + mount /dev/ufs/BSDRPs4 /tmp/slice + cd /tmp/slice + restore rf /tmp/s4.dump warning: ./.snap: File exists + [ -f /tmp/slice/restoresymtable ] + rm -rf /tmp/slice/restoresymtable + [ -f /etc/dumpdates ] + rm -rf /etc/dumpdates + cd + umount /tmp/slice + echo Done Done [root@router]~# df -h Filesystem Size Used Avail Capacity Mounted on /dev/ufs/BSDRPs1a 447M 434M 13M 97% / devfs 1.0K 1.0K 0B 100% /dev tmpfs 10M 4.2M 5.8M 42% /etc tmpfs 20M 3.2M 17M 16% /var [root@router]~# gpart show ada0 => 63 33554369 ada0 MBR (16G) 63 931707 1 freebsd [active] (455M) 931770 63 - free - (32K) 931833 931707 2 freebsd (455M) 1863540 32130 3 freebsd (16M) 1895670 31658762 4 freebsd (15G) De: Olivier Cochard-Labbé <oliv...@cochard.me> Enviada em: domingo, 19 de maio de 2019 03:30 Para: bsdrp-users@lists.sourceforge.net Assunto: Re: [Bsdrp-users] Disk Expand On Sat, May 18, 2019 at 4:22 AM Junior Corazza <cora...@telic.com.br <mailto:cora...@telic.com.br> > wrote: Folks, In some cases the command "system expand-data-slice" no longer works, it simply does not use the entire disk size. Do you have any idea how I can grow the partition in this case? Hi, can you post the output of the command in debug mode (just adding "sh -x" in front because it's a shell script): sh -x /usr/local/sbin/system expand-data-slice Thanks
_______________________________________________ Bsdrp-users mailing list Bsdrp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bsdrp-users