gconcat, convert manual to automatic
Matt Buckland
matthew_buckland at wordbank.com
Wed Nov 15 10:30:20 UTC 2006
Hello there Geom list!
Forgive me if I sound stupid, I am quite new to geom, but have searched
the archives and could not find an answer to my question.
I have created a volume using the following command:
gconcat create big0 /dev/ad4 /dev/ad6 /dev/ad10
I then created a filesystem:
newfs /dev/concat/big0
I then added a disk and recreated the volume:
gconcat create big0 /dev/ad4 /dev/ad6 /dev/ad10 /dev/ad8
and grew the filesystem
growfs /dev/concat/big0
Everything is fine when I manually create the volume, I can mount it and
fsck it, but when I try:
gconcat label big0 /dev/ad4 /dev/ad6 /dev/ad10 /dev/ad8
I cannot mount or fsck it, fsck gives me the following output:
** /dev/concat/big0
BAD SUPER BLOCK: VALUES IN SUPER BLOCK DISAGREE WITH THOSE IN FIRST
ALTERNATE
ioctl (GCINFO): Inappropriate ioctl for device
fsck_4.2bsd: /dev/concat/big0: can't read disk label
I have also noticed a difference in the position of one of the
providers, which is presumably causing the problem and is presumably
because the metadata has been written and is taking up the space. The
two listed outputs look like this:
Geom name: big0
State: UP
Status: Total=4, Online=4
Type: MANUAL
ID: 1212663410
Providers:
1. Name: concat/big0
Mediasize: 1200273629184 (1.1T)
Sectorsize: 512
Mode: r0w0e0
Consumers:
1. Name: ad4
Mediasize: 300001443840 (279G)
Sectorsize: 512
Mode: r0w0e0
Start: 0
End: 300001443840
2. Name: ad6
Mediasize: 300090728448 (279G)
Sectorsize: 512
Mode: r0w0e0
Start: 300001443840
End: 600092172288
3. Name: ad10
Mediasize: 300090728448 (279G)
Sectorsize: 512
Mode: r0w0e0
Start: 600092172288
End: 900182900736
4. Name: ad8
Mediasize: 300090728448 (279G)
Sectorsize: 512
Mode: r0w0e0
Start: 900182900736
End: 1200273629184
and this:
Geom name: big0
State: UP
Status: Total=4, Online=4
Type: AUTOMATIC
ID: 2839129485
Providers:
1. Name: concat/big0
Mediasize: 1200273627136 (1.1T)
Sectorsize: 512
Mode: r0w0e0
Consumers:
1. Name: ad4
Mediasize: 300001443840 (279G)
Sectorsize: 512
Mode: r0w0e0
Start: 0
End: 300001443328
2. Name: ad6
Mediasize: 300090728448 (279G)
Sectorsize: 512
Mode: r0w0e0
Start: 300001443328
End: 600092171264
3. Name: ad10
Mediasize: 300090728448 (279G)
Sectorsize: 512
Mode: r0w0e0
Start: 600092171264
End: 900182899200
4. Name: ad8
Mediasize: 300090728448 (279G)
Sectorsize: 512
Mode: r0w0e0
Start: 900182899200
End: 1200273627136
So, eventually, my question is: is it possible to have this volume
automatically created on loading of the kermel module, or must I dump
and restore the filesystem?
Would it have made a difference if I had made the filesystem within a
partition, rather than directly onto the disk?
Thankyou very much for any input on this.
Matt
--
Matthew Buckland, Network / Support Analyst
Wordbank Limited
33 Charlotte Street, London W1T 1RR
Direct line: +44 (0) 20 7903 8847
Fax: +44 (0) 20 7903 8888
<http://www.wordbank.com/>
More information about the freebsd-geom
mailing list