Re: FreeBSD as VMWare guest / disk resizing
You'll of course need to boot from another medium to do this. That's my main question - can a larger disk be detected *without* a reboot. On FreeBSD instances running within VMWare I have been able to add new disks without a reboot but, as I described below, have not found a way to get the operating system to detect a larger *existing* disk without a reboot. VMWare allows you to resize a disk on the fly. Obviously I'm only interested in the grow the disk scenario :-) I'm beginning to think a reboot is necessary, which is surprising! On Dec 17, 2012, at 4:15 PM, Luke Bakken wrote: Hello everyone - I'm looking for a way to get FreeBSD 8 / 9 to detect that an already existing disk has grown. I have FreeBSD running as a guest within vSphere ESX 5. Here is the output of camcontrol showing how the disks are detected within the OS: [root@QA1HWFBSD83201 ~]# camcontrol inquiry da0 pass0: VMware Virtual disk 1.0 Fixed Direct Access SCSI-2 device pass0: 320.000MB/s transfers (160.000MHz, offset 127, 16bit), Command Queueing Enabled In the VM settings I can increase the disk size but I can't seem to find the right command within FreeBSD to force it to detect the new, larger size without a reboot. 'camcontrol rescan all' works great to detect a new drive but doesn't detect a larger disk. Within a Linux distribution like Debian, the following command will detect the larger drive: echo 1 /sys/class/scsi_device/0:0:0:0/device/rescan I apologize if this has been answered in the archives or online but I just haven't been able to get a definitive answer if this is possible, and how. Thanks so much in advance, Luke ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org _ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD as VMWare guest / disk resizing
On Tue, 18 Dec 2012, Luke Bakken wrote: You'll of course need to boot from another medium to do this. That's my main question - can a larger disk be detected *without* a reboot. On FreeBSD instances running within VMWare I have been able to add new disks without a reboot but, as I described below, have not found a way to get the operating system to detect a larger *existing* disk without a reboot. VMWare allows you to resize a disk on the fly. Obviously I'm only interested in the grow the disk scenario :-) Force a GEOM retaste? # true /dev/ada0 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD as VMWare guest / disk resizing
On Dec 18, 2012, at 6:35 AM, Luke Bakken wrote: You'll of course need to boot from another medium to do this. That's my main question - can a larger disk be detected *without* a reboot. On FreeBSD instances running within VMWare I have been able to add new disks without a reboot but, as I described below, have not found a way to get the operating system to detect a larger *existing* disk without a reboot. VMWare allows you to resize a disk on the fly. Obviously I'm only interested in the grow the disk scenario :-) I'm beginning to think a reboot is necessary, which is surprising! Live resize (without reboot even) is something being worked on for the future 10.x series. -- Devin On Dec 17, 2012, at 4:15 PM, Luke Bakken wrote: Hello everyone - I'm looking for a way to get FreeBSD 8 / 9 to detect that an already existing disk has grown. I have FreeBSD running as a guest within vSphere ESX 5. Here is the output of camcontrol showing how the disks are detected within the OS: [root@QA1HWFBSD83201 ~]# camcontrol inquiry da0 pass0: VMware Virtual disk 1.0 Fixed Direct Access SCSI-2 device pass0: 320.000MB/s transfers (160.000MHz, offset 127, 16bit), Command Queueing Enabled In the VM settings I can increase the disk size but I can't seem to find the right command within FreeBSD to force it to detect the new, larger size without a reboot. 'camcontrol rescan all' works great to detect a new drive but doesn't detect a larger disk. Within a Linux distribution like Debian, the following command will detect the larger drive: echo 1 /sys/class/scsi_device/0:0:0:0/device/rescan I apologize if this has been answered in the archives or online but I just haven't been able to get a definitive answer if this is possible, and how. Thanks so much in advance, Luke ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org _ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. _ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD as VMWare guest / disk resizing
On 18 December 2012 15:27, Devin Teske devin.te...@fisglobal.com wrote: On Dec 18, 2012, at 6:35 AM, Luke Bakken wrote: Live resize (without reboot even) is something being worked on for the future 10.x series. Looking forward to this, we can't offer cloud instances with FreeBSD until this happens. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
FreeBSD as VMWare guest / disk resizing
Hello everyone - I'm looking for a way to get FreeBSD 8 / 9 to detect that an already existing disk has grown. I have FreeBSD running as a guest within vSphere ESX 5. Here is the output of camcontrol showing how the disks are detected within the OS: [root@QA1HWFBSD83201 ~]# camcontrol inquiry da0 pass0: VMware Virtual disk 1.0 Fixed Direct Access SCSI-2 device pass0: 320.000MB/s transfers (160.000MHz, offset 127, 16bit), Command Queueing Enabled In the VM settings I can increase the disk size but I can't seem to find the right command within FreeBSD to force it to detect the new, larger size without a reboot. 'camcontrol rescan all' works great to detect a new drive but doesn't detect a larger disk. Within a Linux distribution like Debian, the following command will detect the larger drive: echo 1 /sys/class/scsi_device/0:0:0:0/device/rescan I apologize if this has been answered in the archives or online but I just haven't been able to get a definitive answer if this is possible, and how. Thanks so much in advance, Luke ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD as VMWare guest / disk resizing
It can be done but it's not easy and not pretty. You'll have to rewrite the partition scheme to grow *only* the last partition and then use growfs on the last partition to zero the new inodes within its newly defined range. You'll of course need to boot from another medium to do this. I usually use DruidBSD for this: DruidBSD-1.0b1.iso (a tiny 23.5MB ISO that you can write to thumb disk with dd or burn to cd; either works fine) Boot from it and use the tools like disklabel -e /dev/yourdisk But… be extremely careful and do your mathematics! I know this isn't a complete step-by-step guide, but I wanted to get the answer out there that this is possible and it's a known quantity, but it can be dangerous if you get the math wrong when editing the disklabel positions, for example. If you can get that part right, the rest is easy (growfs). -- Devin On Dec 17, 2012, at 4:15 PM, Luke Bakken wrote: Hello everyone - I'm looking for a way to get FreeBSD 8 / 9 to detect that an already existing disk has grown. I have FreeBSD running as a guest within vSphere ESX 5. Here is the output of camcontrol showing how the disks are detected within the OS: [root@QA1HWFBSD83201 ~]# camcontrol inquiry da0 pass0: VMware Virtual disk 1.0 Fixed Direct Access SCSI-2 device pass0: 320.000MB/s transfers (160.000MHz, offset 127, 16bit), Command Queueing Enabled In the VM settings I can increase the disk size but I can't seem to find the right command within FreeBSD to force it to detect the new, larger size without a reboot. 'camcontrol rescan all' works great to detect a new drive but doesn't detect a larger disk. Within a Linux distribution like Debian, the following command will detect the larger drive: echo 1 /sys/class/scsi_device/0:0:0:0/device/rescan I apologize if this has been answered in the archives or online but I just haven't been able to get a definitive answer if this is possible, and how. Thanks so much in advance, Luke ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org _ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org