From nobody Thu Nov 16 19:44:44 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SWVqS1xL3z512G2 for ; Thu, 16 Nov 2023 19:44:52 +0000 (UTC) (envelope-from mirror176@hotmail.com) Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04olkn20821.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e8b::821]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SWVqR2DjJz3c8D for ; Thu, 16 Nov 2023 19:44:51 +0000 (UTC) (envelope-from mirror176@hotmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hotmail.com header.s=selector1 header.b=LG8B+SbK; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (mx1.freebsd.org: domain of mirror176@hotmail.com designates 2a01:111:f400:7e8b::821 as permitted sender) smtp.mailfrom=mirror176@hotmail.com; dmarc=pass (policy=none) header.from=hotmail.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fgMEkk2zCBPeodS8DDgrrmeVjKNvrBH9PPELNsUWH4nrVSmXuz7T1SUvUOAAykV/Is+raugXKgSB+m1v6Ycu+0UfjcvYo0gCMR0F1DbFFougY/7DpB6pAAU1m7jEnSR1CYl//oDLsQGz40bQ1zf2/8m60iyT6Lh2i8/SQR8xFX66N7/jedxQRpYZFftKl+s2xNlgC8ws/WjVb6FxzgSGVoQ/j0raCdu+VULm2AHImI2fP8r9iUH7yrqTJG9T87+1U2bckrcocQJJ2C1+OW3Drlr7Jtpgeks0RYhNrLHbg6/XSNpo286ZbM7Mb1eYYvO9cPC/LVfv3Si4W2w+U5+R2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=bVDrEPb99wFfO4+lku7/6YGoK8FIlg36Sp0X8SUOdTI=; b=dviKkslk+O5qILvkV/jPwqpUiyrXRufP69GlX95gOyczuSBXz4tVYX16GURoq9jB+1DIbnakgblA5hZvt0F2VlNmOo/6pPRZI53G9wXMC34b41eN9/y+nors4aCBkO5ii31bAkuSWwVVaTlH5XiMERW4z6+nbT9dLvuusHX6/4k0EIkOPcsgvFIsgrLZxHEo1Gs7EThzTKjDlJ/U9dmNIg8ABLLr/9/LLdl13zuyh8vVWB0OQDBoHQa2ZjfmCkQIGBQaDRvtQuQv3xAai2BHr6Vjqx3s/P72ZnG9yaQwkuYyDO4GZ0pKzJ+IfhZ/j6OSh2nAx+vvuNmUy0U13jMtmw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bVDrEPb99wFfO4+lku7/6YGoK8FIlg36Sp0X8SUOdTI=; b=LG8B+SbKwCcXhkq6XOtG+Tu20gQGphLWcVgJ/Z/AvvEbb78+eRqbUqVMCtVIpdFk1LTOC/pOrcB288nTPwI3vKBEQ+AxLvrLEzS8M5EUXTzPVKM02p63dPDalmAyxojTjBhK1XluNr7KDNmobLgn2mZU4zzk+ZYHPmeVsHupheGewSQpxuuiKZk+HDeMh8fmbWktFIVpj0/vfXydWNIsZpLlOBylBdr0YTD6ny5BCkscywgd1LggdmdOqBoFU0bhcfZD07d6eITJitljN2SfgWa8CeHZXeRyR+HtNFmv55rEQJ34/LKOsTRA+wgqtOimlxTNvkLDB5QB7osiBXv2Fg== Received: from CO1PR11MB4770.namprd11.prod.outlook.com (2603:10b6:303:94::19) by BN9PR11MB5515.namprd11.prod.outlook.com (2603:10b6:408:104::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.21; Thu, 16 Nov 2023 19:44:49 +0000 Received: from CO1PR11MB4770.namprd11.prod.outlook.com ([fe80::a344:ee9f:be69:1aa3]) by CO1PR11MB4770.namprd11.prod.outlook.com ([fe80::a344:ee9f:be69:1aa3%7]) with mapi id 15.20.7002.015; Thu, 16 Nov 2023 19:44:49 +0000 Message-ID: Date: Thu, 16 Nov 2023 12:44:44 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: expand UFS partition Content-Language: en-US To: questions@freebsd.org References: <6f8c7df4-2665-4794-9fd2-81e47128232d@paz.bz> From: "Edward Sanford Sutton, III" In-Reply-To: <6f8c7df4-2665-4794-9fd2-81e47128232d@paz.bz> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TMN: [iH3Jb+59LUqFqbQateEtR/22Lj84Tc9P] X-ClientProxiedBy: BL1PR13CA0160.namprd13.prod.outlook.com (2603:10b6:208:2bd::15) To CO1PR11MB4770.namprd11.prod.outlook.com (2603:10b6:303:94::19) X-Microsoft-Original-Message-ID: <7724dfcd-e31c-89de-3a3a-79636dc814fa@hotmail.com> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR11MB4770:EE_|BN9PR11MB5515:EE_ X-MS-Office365-Filtering-Correlation-Id: 0670bf5b-2512-4ded-5086-08dbe6dc7e03 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: f4UtayJ64iJF+B7aRcVyUiSZU5D/CHKp0LiFvFomZl2WEzRYezSxMcx0XuInj/6ubyTn0x4s/036oLCJHnvclmJpVG2QG2UrNeJzNyPSTIJa9bWsDaohntvcld8/jxB8v801NiZFALQo5QTxJoRBD3kSR3XTkmtKnPtlcsxiCDOuJZbAY9voN/SyrCprkEztVDaP3xV3yVjGxQSEec238Y9wIf8CQ3kY1q6/mundD/FHto43cQAxD1U1VSPfmoPx9BkGpSH3GgG75F18bi0vnYR2qPRA3gasBQu40ghdv7KlOxmyGFkpe9+rBgWBmvOrbGWAneAQRjr/Y0S2B2Jopkk2ef4gmDHcgq6m0EgZjbqamoX6iVuSLaW4U4IPeg7YBLLXJeu3jWrWbs002GFNDkGAWCntlUhS2SKwmtDr1aBP0twnxaLoDz5mhlnseaRNqWtuOv3xmj+FLufDMXRtMLpIXtu2uzwX1zbgY3pQ6P902/M7TzHrKPVywT3t4LtpbHv+N2SSRsNU4zWQ97IyFlGPw2eoQhHyu9vGp5ybTbs= X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?U290SjFNeGJnQktzcmZSb1IyZEhESVpGZG5WajlrTEU4bHNQUWZPbTgvN2dq?= =?utf-8?B?dnU4RTVvTFVNSndBZDlXbUJ4ZnBEZ1cvKzdnLzUyck45VEZXUkpMbWdDWVUr?= =?utf-8?B?WDB3M0VvTm1xSUhTNG5CRTZldDhTWVdYRDNVZ2pDWFY2a0tqVXVkTnlmOWZW?= =?utf-8?B?aDEzZDl6cTBFWXhMVmdlMHNFTjdaT2hZWHYraThqbkpIZ291NWVyOEc3NU5p?= =?utf-8?B?b09XeTZCWXJxNnFDRkZxQVBpRnoveERmSXo4SXZTMnZUOXhPdlJZbTA3TVpC?= =?utf-8?B?eTkrOVVyU1M4N293UFpBVW5DZ3JIajJzRlJ3U1dl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3RHVW5vN0dGOUN6VGpXMmVzclpacHNIT1AxZnp6?= =?utf-8?B?UXZZa2tvbXhTTnNOcDlmeG9ZS1JGSExBY1BUaUtMMlVQYk5pQXREU21iRWND?= =?utf-8?B?MEdGNGpVNFZEWnJSV3E1OGU4VE56dG9NYTlNNkdGL1oxSXpqdk5TTzVvR0xW?= =?utf-8?B?YWdha3pPc054U1N3ckVGemsxcTR5YTJVSENiZDJBVEt4WkladWkybU9NOE9C?= =?utf-8?B?ZXBNcm10SWlZSHNJRXc4KzBlaFB6TDV5N3JOY2F0dlkycm16STJwMnUvYUVw?= =?utf-8?B?RU5jZHU2QndGa0RndUVVd1paYVZZb2RDNWEyY0I5WTd2dTA5WUlvQ2FaMXNY?= =?utf-8?B?N1Zia1dwT1J3ajJSeXBGWVRjZEVkUjRKTy9WY2NLOS9tclowdGQwVkU0MFFp?= =?utf-8?Q?UtMnApTWiiJHIBQj/T8NgylCwTr4kGUwxdwMJ0+kGjVM=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-e8f36.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 0670bf5b-2512-4ded-5086-08dbe6dc7e03 X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB4770.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Nov 2023 19:44:49.2067 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR11MB5515 X-Spamd-Result: default: False [-1.37 / 15.00]; FORGED_MUA_THUNDERBIRD_MSGID_UNKNOWN(2.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[hotmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a01:111:f400::/48]; R_DKIM_ALLOW(-0.20)[hotmail.com:s=selector1]; NEURAL_SPAM_SHORT(0.13)[0.131]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:8075, ipnet:2a01:111:f000::/36, country:US]; MLMMJ_DEST(0.00)[questions@freebsd.org]; FREEMAIL_ENVFROM(0.00)[hotmail.com]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[hotmail.com:+]; DWL_DNSWL_NONE(0.00)[hotmail.com:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_FROM(0.00)[hotmail.com]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4SWVqR2DjJz3c8D X-Spamd-Bar: - On 11/16/23 10:52, Jim Pazarena wrote: > I have a UFS which is near full, and I know there is spare/un-allocated > space on the hard drive. > I can not back it up first , as it is both huge and very busy. It is always easier to schedule downtime than it is to schedule data loss. Not sure what definition of 'huge' and 'very busy' is, but if it is important data, it'd be worth negotiating improving it to hardware/use plan that permits backups actually happen unless the data isn't important. Otherwise, you may want to look into adding dump(8) as a background task that the system has to perform if the data is important; though system backups are always best when the system is 'offline' to do it, most data is valuable even when copied on a live system and dump supports both. > Are there any tools within FreeBSD to (a) examine if expanding this UFS > is possible, and (b) expand it reliably ? If there is usable space just after the UFS partition then: man 8 growfs I have no experience with it. I haven't followed bug reports/upgrades around it closely to know if it and UFS of your FreeBSD vs v12+ have any fixes you could benefit from, performance improvements, or if it could make any changes you would need to undo; may be worth looking into if you 'rebooted' for the task. I'd presume growing the filesystem doesn't take long (but don't know it as a fact) and gpart partition editing definitely doesn't as its just a table about where partitions are and doesn't interpret their contents itself. I thought there was some technical downside to growing a UFS partition vs having it originally formatted to the size but do not recall it at the moment. My resizing partitions experience came from the Windows world. It always consisted of 1. scan disk+filesystem for errors, 2. rework partitions from separately booted media, 3. rescan filesystem for errors. I never proceeded past 1 if errors were found until resolved and I never had long term issues as long as #3 was also performed. > I have gparted, and could run it. Which would involve bringing down the > server for that duration. > All fine & dandy... but can I trust gparted to not wreck this task ? I haven't had issues with gpart other than user error and only once with gvinum when I used it for a parity disk array and a drive died which lead to it swapping the other drives around for some unknown reason; fixed it with dd and a text editor that time. Overall I've only had minor interactions with them. If the gparted you talk of is represented here https://gparted.org/features.php , then no, it will not wreck, nor perform, the task of resizing the partition. It could help you shuffle partitions around if free space is not at the end but moving and copying are all that software does for UFS; you may need to edit fstab entries if partition count before the desired partition changes which that tool also will not likely do. I'd expect moving partitions to take time if it is a partition type it doesn't fully understand how to manipulate (UFS); the larger the partition then the more data to read+write. > A back up first would take the server down for several hours. I cannot > take it down for that long. > Now, if I wreck the drive, hind-set would have kicked me square in the > butt. > > I suppose that I could test the reliability of this task on a spare > server. And likely will. > Unless, that is, FreeBSD has a built in ability. > > Also... old FBSD .. 11.0 p1 ! ouch Maybe negotiate resolving that once backups have been resolved; Overall I'm happier with changes that require newer versions but it depends on your use. I 'think' my system has been smoother about me putting heavy load tasks in the background while continuing to use it as updates come along. > Thanks ! >