Hi,
i'm playing around with (virtual) disks within a VMware ESXi 4.1 server:
[root@BSDHelmut864 ~]# uname -rsim
FreeBSD 8.2-RELEASE amd64 GENERIC
[root@BSDHelmut864 ~]# sysctl kern.geom.debugflags=17
kern.geom.debugflags: 17 -> 17
[root@BSDHelmut864 ~]# gpart destroy da1
da1 destroyed
[root@BSDHelmut864 ~]# gpart list da1
gpart: No such geom: da1.
[root@BSDHelmut864 ~]#
OK, the disk is empty, now create a new scheme:
[root@BSDHelmut864 ~]# gpart create -s mbr da1
da1 created
[root@BSDHelmut864 ~]# gpart show da1
=> 63 156301425 da1 MBR (75G)
63 156301425 - free - (75G)
[root@BSDHelmut864 ~]# gpart list da1
Geom name: da1
state: OK
fwheads: 255
fwsectors: 63
last: 156301487
first: 63
entries: 4
scheme: MBR
Consumers:
1. Name: da1
Mediasize: 80026361856 (75G)
Sectorsize: 512
Mode: r0w0e0
[root@BSDHelmut864 ~]#
Now create a new slice of ~21GB:
[root@BSDHelmut864 ~]# gpart add -b 63 -s $(echo 21500*1024*2+63 | bc)
-t freebsd da1
da1s1 added
[root@BSDHelmut864 ~]#
But - where is it?
[root@BSDHelmut864 ~]# gpart show da1s1
gpart: No such geom: da1s1.
[root@BSDHelmut864 ~]# gpart list da1s1
gpart: No such geom: da1s1.
[root@BSDHelmut864 ~]#
It should be there:
[root@BSDHelmut864 ~]# gpart list da1
Geom name: da1
state: OK
fwheads: 255
fwsectors: 63
last: 156301487
first: 63
entries: 4
scheme: MBR
Providers:
1. Name: da1s1
Mediasize: 22544395776 (21G)
Sectorsize: 512
Mode: r0w0e0
rawtype: 165
length: 22544395776
offset: 32256
type: freebsd
index: 1
end: 44032085
start: 63
Consumers:
1. Name: da1
Mediasize: 80026361856 (75G)
Sectorsize: 512
Mode: r0w0e0
[root@BSDHelmut864 ~]#
But it isn't. Now I start sysinstall, choose "custom", "partiton",
press "w" and quit sysinstall. There it is:
[root@BSDHelmut864 ~]# gpart show da1s1
=> 0 44032023 da1s1 BSD (21G)
0 44032023 - free - (21G)
[root@BSDHelmut864 ~]# gpart list da1s1
Geom name: da1s1
state: OK
fwheads: 255
fwsectors: 63
last: 44032022
first: 0
entries: 8
scheme: BSD
Consumers:
1. Name: da1s1
Mediasize: 22544395776 (21G)
Sectorsize: 512
Mode: r0w0e0
[root@BSDHelmut864 ~]#
So, what did sysinstall that gpart didn't?
Thanks, Helmut
___
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"