From: David K. <da...@ke...> - 2020-05-23 16:15:59
|
Is it possible to expand the disk partition that Astlinux uses? For example I am running a test system in ESXi and expanded the disk from 16GB to 32GB. I can see that the "physical" disk is expanded in Astlinux using fdisk... but is there a non-destructive way to expand /dev/sda2 to use that full space? pbx-test / # fdisk -l *Disk /dev/sda: 32 GiB, 34359738368 bytes, 67108864 sectors* Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xdd48f40c Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 524159 522112 255M 6 FAT16 /dev/sda2 524288 33554431 33030144 15.8G 83 Linux pbx-test / # Thanks David |
From: Lonnie A. <li...@lo...> - 2020-05-23 17:08:19
|
> On May 23, 2020, at 11:15 AM, David Kerr <da...@ke...> wrote: > > Is it possible to expand the disk partition that Astlinux uses? For example I am running a test system in ESXi and expanded the disk from 16GB to 32GB. I can see that the "physical" disk is expanded in Astlinux using fdisk... but is there a non-destructive way to expand /dev/sda2 to use that full space? > > pbx-test / # fdisk -l > Disk /dev/sda: 32 GiB, 34359738368 bytes, 67108864 sectors > Units: sectors of 1 * 512 = 512 bytes > Sector size (logical/physical): 512 bytes / 512 bytes > I/O size (minimum/optimal): 512 bytes / 512 bytes > Disklabel type: dos > Disk identifier: 0xdd48f40c > > Device Boot Start End Sectors Size Id Type > /dev/sda1 * 2048 524159 522112 255M 6 FAT16 > /dev/sda2 524288 33554431 33030144 15.8G 83 Linux > pbx-test / # > > Thanks > David Interesting question. Looking at this: https://geekpeek.net/resize-filesystem-fdisk-resize2fs/ This would require access via the RUNNIX shell, which has fdisk, e2fsck, but we don't include resize2fs. Kind of a unique scenario for only VM's, but I understand why you want this. Just thinking out loud ... could you create a new VM disk and install AstLinux from scratch via the ISO installer, then shutdown, attach the old VM drive along with the new VM drive and boot into the RUNNIX shell, mount common partitions and "cp -a ..." the files from the small partition to the large partition. For extra credit, could you use this technique to take a unionfs /mnt/kd and convert it to a sda3 /mnt/kd ? We could look at enabling resize2fs for RUNNIX builds if this is useful, regardless it is kind of scary deleting the partition you have data on. Lonnie |
From: Michael K. <li...@mk...> - 2020-05-23 17:26:21
|
> Am 23.05.2020 um 19:08 schrieb Lonnie Abelbeck <li...@lo...>: > > > >> On May 23, 2020, at 11:15 AM, David Kerr <da...@ke...> wrote: >> >> Is it possible to expand the disk partition that Astlinux uses? For example I am running a test system in ESXi and expanded the disk from 16GB to 32GB. I can see that the "physical" disk is expanded in Astlinux using fdisk... but is there a non-destructive way to expand /dev/sda2 to use that full space? >> >> pbx-test / # fdisk -l >> Disk /dev/sda: 32 GiB, 34359738368 bytes, 67108864 sectors >> Units: sectors of 1 * 512 = 512 bytes >> Sector size (logical/physical): 512 bytes / 512 bytes >> I/O size (minimum/optimal): 512 bytes / 512 bytes >> Disklabel type: dos >> Disk identifier: 0xdd48f40c >> >> Device Boot Start End Sectors Size Id Type >> /dev/sda1 * 2048 524159 522112 255M 6 FAT16 >> /dev/sda2 524288 33554431 33030144 15.8G 83 Linux >> pbx-test / # >> >> Thanks >> David > > Interesting question. > > Looking at this: > https://geekpeek.net/resize-filesystem-fdisk-resize2fs/ > > This would require access via the RUNNIX shell, which has fdisk, e2fsck, but we don't include resize2fs. > > Kind of a unique scenario for only VM's, but I understand why you want this. > > Just thinking out loud ... could you create a new VM disk and install AstLinux from scratch via the ISO installer, then shutdown, attach the old VM drive along with the new VM drive and boot into the RUNNIX shell, mount common partitions and "cp -a ..." the files from the small partition to the large partition. > > For extra credit, could you use this technique to take a unionfs /mnt/kd and convert it to a sda3 /mnt/kd ? > > We could look at enabling resize2fs for RUNNIX builds if this is useful, regardless it is kind of scary deleting the partition you have data on. > > Lonnie Since it is a VM, I would create a backup first, and then try GParted: https://gparted.org/download.php Michael http://www.mksolutions.info |
From: David K. <da...@ke...> - 2020-05-23 17:34:06
|
If I create fresh from an ISO install, how is the available disk partitioned... does most of it get assigned to the kd ? David On Sat, May 23, 2020 at 1:26 PM Michael Keuter <li...@mk...> wrote: > > > > Am 23.05.2020 um 19:08 schrieb Lonnie Abelbeck < > li...@lo...>: > > > > > > > >> On May 23, 2020, at 11:15 AM, David Kerr <da...@ke...> wrote: > >> > >> Is it possible to expand the disk partition that Astlinux uses? For > example I am running a test system in ESXi and expanded the disk from 16GB > to 32GB. I can see that the "physical" disk is expanded in Astlinux using > fdisk... but is there a non-destructive way to expand /dev/sda2 to use that > full space? > >> > >> pbx-test / # fdisk -l > >> Disk /dev/sda: 32 GiB, 34359738368 bytes, 67108864 sectors > >> Units: sectors of 1 * 512 = 512 bytes > >> Sector size (logical/physical): 512 bytes / 512 bytes > >> I/O size (minimum/optimal): 512 bytes / 512 bytes > >> Disklabel type: dos > >> Disk identifier: 0xdd48f40c > >> > >> Device Boot Start End Sectors Size Id Type > >> /dev/sda1 * 2048 524159 522112 255M 6 FAT16 > >> /dev/sda2 524288 33554431 33030144 15.8G 83 Linux > >> pbx-test / # > >> > >> Thanks > >> David > > > > Interesting question. > > > > Looking at this: > > https://geekpeek.net/resize-filesystem-fdisk-resize2fs/ > > > > This would require access via the RUNNIX shell, which has fdisk, e2fsck, > but we don't include resize2fs. > > > > Kind of a unique scenario for only VM's, but I understand why you want > this. > > > > Just thinking out loud ... could you create a new VM disk and install > AstLinux from scratch via the ISO installer, then shutdown, attach the old > VM drive along with the new VM drive and boot into the RUNNIX shell, mount > common partitions and "cp -a ..." the files from the small partition to the > large partition. > > > > For extra credit, could you use this technique to take a unionfs /mnt/kd > and convert it to a sda3 /mnt/kd ? > > > > We could look at enabling resize2fs for RUNNIX builds if this is useful, > regardless it is kind of scary deleting the partition you have data on. > > > > Lonnie > > Since it is a VM, I would create a backup first, and then try GParted: > > https://gparted.org/download.php > > Michael > > http://www.mksolutions.info > > > > > > _______________________________________________ > Astlinux-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/astlinux-devel > |
From: Michael K. <li...@mk...> - 2020-05-23 17:42:14
|
> Am 23.05.2020 um 19:33 schrieb David Kerr <da...@ke...>: > > If I create fresh from an ISO install, how is the available disk partitioned... does most of it get assigned to the kd ? > > David Yes, you can only configure the size of ASTURW (default 256 MB, I set it to 512MB), the rest is for /mnt/kd/. > On Sat, May 23, 2020 at 1:26 PM Michael Keuter <li...@mk...> wrote: > > > > Am 23.05.2020 um 19:08 schrieb Lonnie Abelbeck <li...@lo...>: > > > > > > > >> On May 23, 2020, at 11:15 AM, David Kerr <da...@ke...> wrote: > >> > >> Is it possible to expand the disk partition that Astlinux uses? For example I am running a test system in ESXi and expanded the disk from 16GB to 32GB. I can see that the "physical" disk is expanded in Astlinux using fdisk... but is there a non-destructive way to expand /dev/sda2 to use that full space? > >> > >> pbx-test / # fdisk -l > >> Disk /dev/sda: 32 GiB, 34359738368 bytes, 67108864 sectors > >> Units: sectors of 1 * 512 = 512 bytes > >> Sector size (logical/physical): 512 bytes / 512 bytes > >> I/O size (minimum/optimal): 512 bytes / 512 bytes > >> Disklabel type: dos > >> Disk identifier: 0xdd48f40c > >> > >> Device Boot Start End Sectors Size Id Type > >> /dev/sda1 * 2048 524159 522112 255M 6 FAT16 > >> /dev/sda2 524288 33554431 33030144 15.8G 83 Linux > >> pbx-test / # > >> > >> Thanks > >> David > > > > Interesting question. > > > > Looking at this: > > https://geekpeek.net/resize-filesystem-fdisk-resize2fs/ > > > > This would require access via the RUNNIX shell, which has fdisk, e2fsck, but we don't include resize2fs. > > > > Kind of a unique scenario for only VM's, but I understand why you want this. > > > > Just thinking out loud ... could you create a new VM disk and install AstLinux from scratch via the ISO installer, then shutdown, attach the old VM drive along with the new VM drive and boot into the RUNNIX shell, mount common partitions and "cp -a ..." the files from the small partition to the large partition. > > > > For extra credit, could you use this technique to take a unionfs /mnt/kd and convert it to a sda3 /mnt/kd ? > > > > We could look at enabling resize2fs for RUNNIX builds if this is useful, regardless it is kind of scary deleting the partition you have data on. > > > > Lonnie > > Since it is a VM, I would create a backup first, and then try GParted: > > https://gparted.org/download.php > > Michael Michael http://www.mksolutions.info |
From: Lonnie A. <li...@lo...> - 2020-05-23 17:59:23
|
> On May 23, 2020, at 12:42 PM, Michael Keuter <li...@mk...> wrote: > > > >> Am 23.05.2020 um 19:33 schrieb David Kerr <da...@ke...>: >> >> If I create fresh from an ISO install, how is the available disk partitioned... does most of it get assigned to the kd ? >> >> David > > Yes, you can only configure the size of ASTURW (default 256 MB, I set it to 512MB), the rest is for /mnt/kd/. A tip, if you are going to do a lot of tedious command-like stuff via the RUNNIX shell, choose the bootloader option "ssh" so can perform the tasks via a remote terminal. Lonnie |
From: David K. <da...@ke...> - 2020-05-23 17:59:49
|
GParted works!! At least on my test VM. I put the GParted ISO onto my ESXi datastore, created a VM, attached the target disk as a 2nd disk, then booted from the ISO. I could then select the target disk and resize it easily. Shutdown the GParted VM, removed the 2nd disk, booted my test Astlinux and the partition was resized. Now to decide whether to do the same on my main Astlinux (after backup / snapshot!) or go with a new install to get the separate kd partition. David On Sat, May 23, 2020 at 1:42 PM Michael Keuter <li...@mk...> wrote: > > > > Am 23.05.2020 um 19:33 schrieb David Kerr <da...@ke...>: > > > > If I create fresh from an ISO install, how is the available disk > partitioned... does most of it get assigned to the kd ? > > > > David > > Yes, you can only configure the size of ASTURW (default 256 MB, I set it > to 512MB), the rest is for /mnt/kd/. > > > On Sat, May 23, 2020 at 1:26 PM Michael Keuter <li...@mk...> > wrote: > > > > > > > Am 23.05.2020 um 19:08 schrieb Lonnie Abelbeck < > li...@lo...>: > > > > > > > > > > > >> On May 23, 2020, at 11:15 AM, David Kerr <da...@ke...> wrote: > > >> > > >> Is it possible to expand the disk partition that Astlinux uses? For > example I am running a test system in ESXi and expanded the disk from 16GB > to 32GB. I can see that the "physical" disk is expanded in Astlinux using > fdisk... but is there a non-destructive way to expand /dev/sda2 to use that > full space? > > >> > > >> pbx-test / # fdisk -l > > >> Disk /dev/sda: 32 GiB, 34359738368 bytes, 67108864 sectors > > >> Units: sectors of 1 * 512 = 512 bytes > > >> Sector size (logical/physical): 512 bytes / 512 bytes > > >> I/O size (minimum/optimal): 512 bytes / 512 bytes > > >> Disklabel type: dos > > >> Disk identifier: 0xdd48f40c > > >> > > >> Device Boot Start End Sectors Size Id Type > > >> /dev/sda1 * 2048 524159 522112 255M 6 FAT16 > > >> /dev/sda2 524288 33554431 33030144 15.8G 83 Linux > > >> pbx-test / # > > >> > > >> Thanks > > >> David > > > > > > Interesting question. > > > > > > Looking at this: > > > https://geekpeek.net/resize-filesystem-fdisk-resize2fs/ > > > > > > This would require access via the RUNNIX shell, which has fdisk, > e2fsck, but we don't include resize2fs. > > > > > > Kind of a unique scenario for only VM's, but I understand why you want > this. > > > > > > Just thinking out loud ... could you create a new VM disk and install > AstLinux from scratch via the ISO installer, then shutdown, attach the old > VM drive along with the new VM drive and boot into the RUNNIX shell, mount > common partitions and "cp -a ..." the files from the small partition to the > large partition. > > > > > > For extra credit, could you use this technique to take a unionfs > /mnt/kd and convert it to a sda3 /mnt/kd ? > > > > > > We could look at enabling resize2fs for RUNNIX builds if this is > useful, regardless it is kind of scary deleting the partition you have data > on. > > > > > > Lonnie > > > > Since it is a VM, I would create a backup first, and then try GParted: > > > > https://gparted.org/download.php > > > > Michael > > Michael > > http://www.mksolutions.info > > > > > > _______________________________________________ > Astlinux-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/astlinux-devel > |
From: Lonnie A. <li...@lo...> - 2020-05-23 18:18:33
|
> Now to decide whether to do the same on my main Astlinux (after backup / snapshot!) or go with a new install to get the separate kd partition. You know you have to give it a try :-) Using the latest pre-release as the installer: https://www.astlinux-project.org/dev.html Guest VM x86-64bit ISO: https://s3.amazonaws.com/beta.astlinux-project/iso/astlinux-beta-genx86_64-vm.iso Lonnie > On May 23, 2020, at 12:59 PM, David Kerr <da...@ke...> wrote: > > GParted works!! At least on my test VM. I put the GParted ISO onto my ESXi datastore, created a VM, attached the target disk as a 2nd disk, then booted from the ISO. I could then select the target disk and resize it easily. Shutdown the GParted VM, removed the 2nd disk, booted my test Astlinux and the partition was resized. Now to decide whether to do the same on my main Astlinux (after backup / snapshot!) or go with a new install to get the separate kd partition. > > David > > On Sat, May 23, 2020 at 1:42 PM Michael Keuter <li...@mk...> wrote: > > > > Am 23.05.2020 um 19:33 schrieb David Kerr <da...@ke...>: > > > > If I create fresh from an ISO install, how is the available disk partitioned... does most of it get assigned to the kd ? > > > > David > > Yes, you can only configure the size of ASTURW (default 256 MB, I set it to 512MB), the rest is for /mnt/kd/. > > > On Sat, May 23, 2020 at 1:26 PM Michael Keuter <li...@mk...> wrote: > > > > > > > Am 23.05.2020 um 19:08 schrieb Lonnie Abelbeck <li...@lo...>: > > > > > > > > > > > >> On May 23, 2020, at 11:15 AM, David Kerr <da...@ke...> wrote: > > >> > > >> Is it possible to expand the disk partition that Astlinux uses? For example I am running a test system in ESXi and expanded the disk from 16GB to 32GB. I can see that the "physical" disk is expanded in Astlinux using fdisk... but is there a non-destructive way to expand /dev/sda2 to use that full space? > > >> > > >> pbx-test / # fdisk -l > > >> Disk /dev/sda: 32 GiB, 34359738368 bytes, 67108864 sectors > > >> Units: sectors of 1 * 512 = 512 bytes > > >> Sector size (logical/physical): 512 bytes / 512 bytes > > >> I/O size (minimum/optimal): 512 bytes / 512 bytes > > >> Disklabel type: dos > > >> Disk identifier: 0xdd48f40c > > >> > > >> Device Boot Start End Sectors Size Id Type > > >> /dev/sda1 * 2048 524159 522112 255M 6 FAT16 > > >> /dev/sda2 524288 33554431 33030144 15.8G 83 Linux > > >> pbx-test / # > > >> > > >> Thanks > > >> David > > > > > > Interesting question. > > > > > > Looking at this: > > > https://geekpeek.net/resize-filesystem-fdisk-resize2fs/ > > > > > > This would require access via the RUNNIX shell, which has fdisk, e2fsck, but we don't include resize2fs. > > > > > > Kind of a unique scenario for only VM's, but I understand why you want this. > > > > > > Just thinking out loud ... could you create a new VM disk and install AstLinux from scratch via the ISO installer, then shutdown, attach the old VM drive along with the new VM drive and boot into the RUNNIX shell, mount common partitions and "cp -a ..." the files from the small partition to the large partition. > > > > > > For extra credit, could you use this technique to take a unionfs /mnt/kd and convert it to a sda3 /mnt/kd ? > > > > > > We could look at enabling resize2fs for RUNNIX builds if this is useful, regardless it is kind of scary deleting the partition you have data on. > > > > > > Lonnie > > > > Since it is a VM, I would create a backup first, and then try GParted: > > > > https://gparted.org/download.php > > > > Michael > > Michael > > http://www.mksolutions.info > > > > > > _______________________________________________ > Astlinux-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/astlinux-devel > _______________________________________________ > Astlinux-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/astlinux-devel |
From: David K. <da...@ke...> - 2020-05-23 18:52:25
|
So, if I switch to a separate kd partition, can I use tarsnap restore or is it tied to the old layout? David On Sat, May 23, 2020 at 2:18 PM Lonnie Abelbeck <li...@lo...> wrote: > > Now to decide whether to do the same on my main Astlinux (after backup / > snapshot!) or go with a new install to get the separate kd partition. > > You know you have to give it a try :-) > > Using the latest pre-release as the installer: > https://www.astlinux-project.org/dev.html > > Guest VM x86-64bit ISO: > > https://s3.amazonaws.com/beta.astlinux-project/iso/astlinux-beta-genx86_64-vm.iso > > Lonnie > > > > On May 23, 2020, at 12:59 PM, David Kerr <da...@ke...> wrote: > > > > GParted works!! At least on my test VM. I put the GParted ISO onto my > ESXi datastore, created a VM, attached the target disk as a 2nd disk, then > booted from the ISO. I could then select the target disk and resize it > easily. Shutdown the GParted VM, removed the 2nd disk, booted my test > Astlinux and the partition was resized. Now to decide whether to do the > same on my main Astlinux (after backup / snapshot!) or go with a new > install to get the separate kd partition. > > > > David > > > > On Sat, May 23, 2020 at 1:42 PM Michael Keuter <li...@mk...> > wrote: > > > > > > > Am 23.05.2020 um 19:33 schrieb David Kerr <da...@ke...>: > > > > > > If I create fresh from an ISO install, how is the available disk > partitioned... does most of it get assigned to the kd ? > > > > > > David > > > > Yes, you can only configure the size of ASTURW (default 256 MB, I set it > to 512MB), the rest is for /mnt/kd/. > > > > > On Sat, May 23, 2020 at 1:26 PM Michael Keuter <li...@mk...> > wrote: > > > > > > > > > > Am 23.05.2020 um 19:08 schrieb Lonnie Abelbeck < > li...@lo...>: > > > > > > > > > > > > > > > >> On May 23, 2020, at 11:15 AM, David Kerr <da...@ke...> wrote: > > > >> > > > >> Is it possible to expand the disk partition that Astlinux uses? > For example I am running a test system in ESXi and expanded the disk from > 16GB to 32GB. I can see that the "physical" disk is expanded in Astlinux > using fdisk... but is there a non-destructive way to expand /dev/sda2 to > use that full space? > > > >> > > > >> pbx-test / # fdisk -l > > > >> Disk /dev/sda: 32 GiB, 34359738368 bytes, 67108864 sectors > > > >> Units: sectors of 1 * 512 = 512 bytes > > > >> Sector size (logical/physical): 512 bytes / 512 bytes > > > >> I/O size (minimum/optimal): 512 bytes / 512 bytes > > > >> Disklabel type: dos > > > >> Disk identifier: 0xdd48f40c > > > >> > > > >> Device Boot Start End Sectors Size Id Type > > > >> /dev/sda1 * 2048 524159 522112 255M 6 FAT16 > > > >> /dev/sda2 524288 33554431 33030144 15.8G 83 Linux > > > >> pbx-test / # > > > >> > > > >> Thanks > > > >> David > > > > > > > > Interesting question. > > > > > > > > Looking at this: > > > > https://geekpeek.net/resize-filesystem-fdisk-resize2fs/ > > > > > > > > This would require access via the RUNNIX shell, which has fdisk, > e2fsck, but we don't include resize2fs. > > > > > > > > Kind of a unique scenario for only VM's, but I understand why you > want this. > > > > > > > > Just thinking out loud ... could you create a new VM disk and > install AstLinux from scratch via the ISO installer, then shutdown, attach > the old VM drive along with the new VM drive and boot into the RUNNIX > shell, mount common partitions and "cp -a ..." the files from the small > partition to the large partition. > > > > > > > > For extra credit, could you use this technique to take a unionfs > /mnt/kd and convert it to a sda3 /mnt/kd ? > > > > > > > > We could look at enabling resize2fs for RUNNIX builds if this is > useful, regardless it is kind of scary deleting the partition you have data > on. > > > > > > > > Lonnie > > > > > > Since it is a VM, I would create a backup first, and then try GParted: > > > > > > https://gparted.org/download.php > > > > > > Michael > > > > Michael > > > > http://www.mksolutions.info > > > > > > > > > > > > _______________________________________________ > > Astlinux-devel mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/astlinux-devel > > _______________________________________________ > > Astlinux-devel mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/astlinux-devel > > > > _______________________________________________ > Astlinux-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/astlinux-devel > |
From: Lonnie A. <li...@lo...> - 2020-05-23 19:15:24
|
tarsnap is basically tar, so with the proper -C you should be OK. Check the results, remove and try again if you were wrong. Lonnie > On May 23, 2020, at 1:52 PM, David Kerr <da...@ke...> wrote: > > > So, if I switch to a separate kd partition, can I use tarsnap restore or is it tied to the old layout? > > David > >> On Sat, May 23, 2020 at 2:18 PM Lonnie Abelbeck <li...@lo...> wrote: >> > Now to decide whether to do the same on my main Astlinux (after backup / snapshot!) or go with a new install to get the separate kd partition. >> >> You know you have to give it a try :-) >> >> Using the latest pre-release as the installer: >> https://www.astlinux-project.org/dev.html >> >> Guest VM x86-64bit ISO: >> https://s3.amazonaws.com/beta.astlinux-project/iso/astlinux-beta-genx86_64-vm.iso >> >> Lonnie >> >> >> > On May 23, 2020, at 12:59 PM, David Kerr <da...@ke...> wrote: >> > >> > GParted works!! At least on my test VM. I put the GParted ISO onto my ESXi datastore, created a VM, attached the target disk as a 2nd disk, then booted from the ISO. I could then select the target disk and resize it easily. Shutdown the GParted VM, removed the 2nd disk, booted my test Astlinux and the partition was resized. Now to decide whether to do the same on my main Astlinux (after backup / snapshot!) or go with a new install to get the separate kd partition. >> > >> > David >> > >> > On Sat, May 23, 2020 at 1:42 PM Michael Keuter <li...@mk...> wrote: >> > >> > >> > > Am 23.05.2020 um 19:33 schrieb David Kerr <da...@ke...>: >> > > >> > > If I create fresh from an ISO install, how is the available disk partitioned... does most of it get assigned to the kd ? >> > > >> > > David >> > >> > Yes, you can only configure the size of ASTURW (default 256 MB, I set it to 512MB), the rest is for /mnt/kd/. >> > >> > > On Sat, May 23, 2020 at 1:26 PM Michael Keuter <li...@mk...> wrote: >> > > >> > > >> > > > Am 23.05.2020 um 19:08 schrieb Lonnie Abelbeck <li...@lo...>: >> > > > >> > > > >> > > > >> > > >> On May 23, 2020, at 11:15 AM, David Kerr <da...@ke...> wrote: >> > > >> >> > > >> Is it possible to expand the disk partition that Astlinux uses? For example I am running a test system in ESXi and expanded the disk from 16GB to 32GB. I can see that the "physical" disk is expanded in Astlinux using fdisk... but is there a non-destructive way to expand /dev/sda2 to use that full space? >> > > >> >> > > >> pbx-test / # fdisk -l >> > > >> Disk /dev/sda: 32 GiB, 34359738368 bytes, 67108864 sectors >> > > >> Units: sectors of 1 * 512 = 512 bytes >> > > >> Sector size (logical/physical): 512 bytes / 512 bytes >> > > >> I/O size (minimum/optimal): 512 bytes / 512 bytes >> > > >> Disklabel type: dos >> > > >> Disk identifier: 0xdd48f40c >> > > >> >> > > >> Device Boot Start End Sectors Size Id Type >> > > >> /dev/sda1 * 2048 524159 522112 255M 6 FAT16 >> > > >> /dev/sda2 524288 33554431 33030144 15.8G 83 Linux >> > > >> pbx-test / # >> > > >> >> > > >> Thanks >> > > >> David >> > > > >> > > > Interesting question. >> > > > >> > > > Looking at this: >> > > > https://geekpeek.net/resize-filesystem-fdisk-resize2fs/ >> > > > >> > > > This would require access via the RUNNIX shell, which has fdisk, e2fsck, but we don't include resize2fs. >> > > > >> > > > Kind of a unique scenario for only VM's, but I understand why you want this. >> > > > >> > > > Just thinking out loud ... could you create a new VM disk and install AstLinux from scratch via the ISO installer, then shutdown, attach the old VM drive along with the new VM drive and boot into the RUNNIX shell, mount common partitions and "cp -a ..." the files from the small partition to the large partition. >> > > > >> > > > For extra credit, could you use this technique to take a unionfs /mnt/kd and convert it to a sda3 /mnt/kd ? >> > > > >> > > > We could look at enabling resize2fs for RUNNIX builds if this is useful, regardless it is kind of scary deleting the partition you have data on. >> > > > >> > > > Lonnie >> > > >> > > Since it is a VM, I would create a backup first, and then try GParted: >> > > >> > > https://gparted.org/download.php >> > > >> > > Michael >> > >> > Michael >> > >> > http://www.mksolutions.info >> > >> > >> > >> > >> > >> > _______________________________________________ >> > Astlinux-devel mailing list >> > Ast...@li... >> > https://lists.sourceforge.net/lists/listinfo/astlinux-devel >> > _______________________________________________ >> > Astlinux-devel mailing list >> > Ast...@li... >> > https://lists.sourceforge.net/lists/listinfo/astlinux-devel >> >> >> >> _______________________________________________ >> Astlinux-devel mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/astlinux-devel > _______________________________________________ > Astlinux-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/astlinux-devel |
From: Michael K. <mic...@ip...> - 2020-05-24 05:42:08
|
I can completely move my office VM from one host to another in <15m now. Backup using tarsnap, move across the key, --fsck and restore. I have done it so many times I'm thinking of calling the server Nomad1 or something similar. Regards Michael Knill From: David Kerr <da...@ke...> Reply to: AstLinux Developers Mailing List <ast...@li...> Date: Sunday, 24 May 2020 at 2:16 am To: AstLinux Developers Mailing List <ast...@li...> Subject: [Astlinux-devel] Expand disk partition? Is it possible to expand the disk partition that Astlinux uses? For example I am running a test system in ESXi and expanded the disk from 16GB to 32GB. I can see that the "physical" disk is expanded in Astlinux using fdisk... but is there a non-destructive way to expand /dev/sda2 to use that full space? pbx-test / # fdisk -l Disk /dev/sda: 32 GiB, 34359738368 bytes, 67108864 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xdd48f40c Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 524159 522112 255M 6 FAT16 /dev/sda2 524288 33554431 33030144 15.8G 83 Linux pbx-test / # Thanks David |
From: David K. <da...@ke...> - 2020-05-24 15:01:03
|
I rebuilt my Astlinux gateway from scratch this morning.... I used tarsnap to bring back /mnt/kd. Worked like a charm. David On Sun, May 24, 2020 at 1:42 AM Michael Knill < mic...@ip...> wrote: > I can completely move my office VM from one host to another in <15m now. > > Backup using tarsnap, move across the key, --fsck and restore. > > > > I have done it so many times I'm thinking of calling the server Nomad1 or > something similar. > > > > Regards > > Michael Knill > > > > *From: *David Kerr <da...@ke...> > *Reply to: *AstLinux Developers Mailing List < > ast...@li...> > *Date: *Sunday, 24 May 2020 at 2:16 am > *To: *AstLinux Developers Mailing List < > ast...@li...> > *Subject: *[Astlinux-devel] Expand disk partition? > > > > Is it possible to expand the disk partition that Astlinux uses? For > example I am running a test system in ESXi and expanded the disk from 16GB > to 32GB. I can see that the "physical" disk is expanded in Astlinux using > fdisk... but is there a non-destructive way to expand /dev/sda2 to use that > full space? > > > > pbx-test / # fdisk -l > *Disk /dev/sda: 32 GiB, 34359738368 bytes, 67108864 sectors* > Units: sectors of 1 * 512 = 512 bytes > Sector size (logical/physical): 512 bytes / 512 bytes > I/O size (minimum/optimal): 512 bytes / 512 bytes > Disklabel type: dos > Disk identifier: 0xdd48f40c > > Device Boot Start End Sectors Size Id Type > /dev/sda1 * 2048 524159 522112 255M 6 FAT16 > /dev/sda2 524288 33554431 33030144 15.8G 83 Linux > pbx-test / # > > > > Thanks > > David > _______________________________________________ > Astlinux-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/astlinux-devel > |
From: Michael K. <mic...@ip...> - 2020-05-24 20:14:05
|
Yep I love Tarsnap. Regards Michael Knill From: David Kerr <da...@ke...> Reply to: AstLinux Developers Mailing List <ast...@li...> Date: Monday, 25 May 2020 at 1:01 am To: AstLinux Developers Mailing List <ast...@li...> Subject: Re: [Astlinux-devel] Expand disk partition? I rebuilt my Astlinux gateway from scratch this morning.... I used tarsnap to bring back /mnt/kd. Worked like a charm. David On Sun, May 24, 2020 at 1:42 AM Michael Knill <mic...@ip...<mailto:mic...@ip...>> wrote: I can completely move my office VM from one host to another in <15m now. Backup using tarsnap, move across the key, --fsck and restore. I have done it so many times I'm thinking of calling the server Nomad1 or something similar. Regards Michael Knill From: David Kerr <da...@ke...<mailto:da...@ke...>> Reply to: AstLinux Developers Mailing List <ast...@li...<mailto:ast...@li...>> Date: Sunday, 24 May 2020 at 2:16 am To: AstLinux Developers Mailing List <ast...@li...<mailto:ast...@li...>> Subject: [Astlinux-devel] Expand disk partition? Is it possible to expand the disk partition that Astlinux uses? For example I am running a test system in ESXi and expanded the disk from 16GB to 32GB. I can see that the "physical" disk is expanded in Astlinux using fdisk... but is there a non-destructive way to expand /dev/sda2 to use that full space? pbx-test / # fdisk -l Disk /dev/sda: 32 GiB, 34359738368 bytes, 67108864 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xdd48f40c Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 524159 522112 255M 6 FAT16 /dev/sda2 524288 33554431 33030144 15.8G 83 Linux pbx-test / # Thanks David _______________________________________________ Astlinux-devel mailing list Ast...@li...<mailto:Ast...@li...> https://lists.sourceforge.net/lists/listinfo/astlinux-devel |