Gmirror and bigger disks (growfs)
Hi, I replaced a faulty disk from a gmirror some time ago. The array had two 1TB disks and I got one 2TB disk there. Now I replaced the second one and tried to growfs it. No good for me. I tried when there was only one disk, got not permitted message. I did the sysctl geomflags. No good also. So I inserted the new disk and tried again. Nothing. I tried both the /dev device and the mounting point. I have this now: Geom name: root State: COMPLETE Components: 2 Balance: load Slice: 4096 Flags: NONE GenID: 1 SyncID: 4 ID: 838844102 Type: AUTOMATIC Providers: 1. Name: mirror/root Mediasize: 998057295360 (930G) Sectorsize: 512 Stripesize: 4096 Stripeoffset: 0 Mode: r1w1e1 Consumers: 1. Name: ada1p3 Mediasize: 1998233534464 (1.8T) Sectorsize: 512 Stripesize: 4096 Stripeoffset: 0 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: NONE GenID: 1 SyncID: 4 ID: 3941328331 2. Name: ada0p3 Mediasize: 1998251343872 (1.8T) Sectorsize: 512 Stripesize: 4096 Stripeoffset: 0 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: NONE GenID: 1 SyncID: 4 ID: 3401957346 Is there a way I can growfs it? Or other way to use all slice? gpart show ada0 =>40 3907029088 ada0 GPT (1.8T) 40 128 1 freebsd-boot (64K) 168 4194304 2 freebsd-swap (2.0G) 4194472 3902834656 3 freebsd-ufs (1.8T) gpart show ada1 =>40 3907029088 ada1 GPT (1.8T) 40 128 1 freebsd-boot (64K) 168 4194304 2 freebsd-swap (2.0G) 4194472 3902799872 3 freebsd-ufs (1.8T) 3906994344 34784- free - (17M) thanks, matheus ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Gmirror and bigger disks (growfs)
01.06.2019 19:04, Nenhum_de_Nos wrotr: > Hi, > > I replaced a faulty disk from a gmirror some time ago. The array had two > 1TB disks and I got one 2TB disk there. Now I replaced the second one and > tried to growfs it. No good for me. First you need to resize the mirror itself with "gmirror resize" command. Refer to gmirror(8) manual page for details. Then you need to resize last slice or create new slice for available space. If you prefer resize existing slice, use "gpart resize". Only then you will be able to run growfs to utilise new space for file system inside the slice. ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Gmirror and bigger disks (growfs)
01.06.2019 19:57, Eugene Grosbein wrote: > 01.06.2019 19:04, Nenhum_de_Nos wrotr: >> Hi, >> >> I replaced a faulty disk from a gmirror some time ago. The array had two >> 1TB disks and I got one 2TB disk there. Now I replaced the second one and >> tried to growfs it. No good for me. > > First you need to resize the mirror itself with "gmirror resize" command. > Refer to gmirror(8) manual page for details. As you use GPT that keeps copy of its data at the end of the "device", you also need to reconfigure GPT with "gpart recover" after increasing of the mirror. > Then you need to resize last slice or create new slice for available space. > If you prefer resize existing slice, use "gpart resize". > > Only then you will be able to run growfs to utilise new space for file system > inside the slice. ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Gmirror and bigger disks (growfs)
On Sat, June 1, 2019 09:57, Eugene Grosbein wrote: > 01.06.2019 19:04, Nenhum_de_Nos wrotr: >> Hi, >> >> I replaced a faulty disk from a gmirror some time ago. The array had two >> 1TB disks and I got one 2TB disk there. Now I replaced the second one >> and >> tried to growfs it. No good for me. > > First you need to resize the mirror itself with "gmirror resize" command. > Refer to gmirror(8) manual page for details. > > Then you need to resize last slice or create new slice for available > space. > If you prefer resize existing slice, use "gpart resize". > > Only then you will be able to run growfs to utilise new space for file > system inside the slice. Hi Eugene, thanks! I will try this in a couple of hours. I created the slices already at max size, even so I need to use all those commands? thanks, I was searching on the wrong place, way too wrong... thanks, matheus ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"