Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - justmehereinBrisbane

#1
Hi Patrick

Well in that case - lets mirror the swap drive.

Thanking you for all your help so far! :)
#2
Hi Patrick

What is the benefits of having it mirrored?

Cheers


J
#3
Quote from: Patrick M. Hausen on September 29, 2025, 03:43:23 PMHi Patrick - thank you so much for that - output of zpool status is now as below

zpool status
  pool: zroot
 state: ONLINE
config:

        NAME        STATE     READ WRITE CKSUM
        zroot       ONLINE       0     0     0
          mirror-0  ONLINE       0     0     0
            ada0p4  ONLINE       0     0     0
            ada1p4  ONLINE       0     0     0
        spares
          ada2p4    AVAIL

errors: No known data errors

a swapinfo results in below

swapinfo
Device          1K-blocks     Used    Avail Capacity
/dev/ada0p3       8388608        0  8388608     0%
/dev/ada1p3       8388608        0  8388608     0%
/dev/md98         2097152        0  2097152     0%
Total            18874368        0 18874368     0%


does this look like it is mirrored correctly?

Thanking you

J







#4
 gpart show
=>       40  500118112  ada0  GPT  (238G)
         40     532480     1  efi  (260M)
     532520       1024     2  freebsd-boot  (512K)
     533544        984        - free -  (492K)
     534528   16777216     3  freebsd-swap  (8.0G)
   17311744  482805760     4  freebsd-zfs  (230G)
  500117504        648        - free -  (324K)

=>       40  500118112  ada1  GPT  (238G)
         40     532480     1  efi  (260M)
     532520       1024     2  freebsd-boot  (512K)
     533544        984        - free -  (492K)
     534528   16777216     3  freebsd-swap  (8.0G)
   17311744  482805760     4  freebsd-zfs  (230G)
  500117504        648        - free -  (324K)



new disk ada2 had a windows partition on it - so i removed it with the command gpart destroy -F ada2

ls /dev/ shows device ada2 present

thanking you
/
#5
Hi Patrick

Hotspare.  Can you tell me how to do this?

Thanking you

J
#6
Hi Patrick

output of the command zpool status

 zpool status
  pool: zroot
 state: ONLINE
config:

        NAME        STATE     READ WRITE CKSUM
        zroot       ONLINE       0     0     0
          mirror-0  ONLINE       0     0     0
            ada0p4  ONLINE       0     0     0
            ada1p4  ONLINE       0     0     0

errors: No known data errors
#7
Hi Patrick

Thank you for your response.


I can confirm it is ZFS as I am able to take snapshots.

gpart show
=>       40  500118112  ada0  GPT  (238G)
         40     532480     1  efi  (260M)
     532520       1024     2  freebsd-boot  (512K)
     533544        984        - free -  (492K)
     534528   16777216     3  freebsd-swap  (8.0G)
   17311744  482805760     4  freebsd-zfs  (230G)
  500117504        648        - free -  (324K)

=>       40  500118112  ada1  GPT  (238G)
         40     532480     1  efi  (260M)
     532520       1024     2  freebsd-boot  (512K)
     533544        984        - free -  (492K)
     534528   16777216     3  freebsd-swap  (8.0G)
   17311744  482805760     4  freebsd-zfs  (230G)
  500117504        648        - free -  (324K)

gmirror status produces no output

I have created a os-monit service called raid_check  path is /sbin/gmirror status tests is NonZeroStatus

This shows up in Monit status as

Program 'Raid_Check'
  status                       OK
  monitoring status            Monitored
  monitoring mode              active
  on reboot                    start
  last exit value              0
  last output                  -
  data collected               Mon, 15 Sep 2025 16:31:01



Hope all of this makes sense.

Cheers

J





#8
Hi

I have an up and running OPNSENSE system with the latest updates  with 2 x 240GB SSDS running in software GEOM raid 1

Is it possible to add a 3rd 240GB SSD to add as a hot spare that would kick in if one of the disks in the raid 1 was to fail?

Or do i have to do this at installation?

Thanking you

J