Will fdisk work on a gmirror device?

Rudy Rucker crapsh at monkeybrains.net
Thu Oct 27 11:55:08 PDT 2005



I have a 200 GB mirrored gm0.  I have one slice with 6 partitions.  I 
would like to delete the 6th 100GB large partition on slice one, run 
fdisk, and make a second 100GB slice.

Will this not mangle my system (if reasonable values are entered, of 
course)?
  fdisk -u /dev/mirror/gm0

I am running FreeBSD 6.0-RC1.  (fdisk seems to see the gm0 better than 
in 5.4...).

Rudy




Geom name: gm0
State: COMPLETE
Components: 2
Balance: round-robin
Slice: 4096
Flags: NONE
GenID: 0
SyncID: 1
ID: 2988355435
Providers:
1. Name: mirror/gm0
    Mediasize: 200049647104 (186G)
    Sectorsize: 512
    Mode: r6w6e7
Consumers:
1. Name: ad0
    Mediasize: 200049647616 (186G)
    Sectorsize: 512
    Mode: r1w1e1
    State: ACTIVE
    Priority: 0
    Flags: NONE
    GenID: 0
    SyncID: 1
    ID: 2584972746
2. Name: ad2
    Mediasize: 200049647616 (186G)
    Sectorsize: 512
    Mode: r1w1e1
    State: ACTIVE
    Priority: 0
    Flags: NONE
    GenID: 0
    SyncID: 1
    ID: 3791733936



More information about the freebsd-current mailing list