Re: growfs problem [was Re: Adding a drive in vinum]

2004-01-07 Thread Mathieu Arnold
+-Le 07/01/2004 13:30 +1030, Greg 'groggy' Lehey écrivait :
| On Tuesday,  6 January 2004 at 19:18:06 +0100, Mathieu Arnold wrote:
| Ok, I could not wait, so I did :
| a create with :
| drive vinumdrive1 device /dev/ad3e
| sd name data.p0.s1 drive vinumdrive1 len 0
| 
| then :
| attach data.p0.s1 data.p0
| 
| That worked well, I had a 115GB volume, I now have a 301GB one, I'm
| happy :)
| 
| Now, growfs, so, I launch it :
| 
| ...
| new file systemsize is: 78997019 frags
| growfs: wtfs: write error: 631976157: Inappropriate ioctl for device
| 
| Can you check the state of the volume and its plexes and subdisks?  If
| they're all OK,, can you run this with ktrace?  I'd be interested to
| see what the ioctl is.

Damn, I would have sworn all subdisks were up, but, the new one was
stale. I'm now running growfs again (and praying a bit too).
It has just borked with :

new file systemsize is: 78997019 frags
Warning: 4312 sector(s) cannot be allocated.
growfs: 308580.0MB (631971840 sectors) block size 32768, fragment size 4096
using 417 cylinder groups of 740.00MB, 23680 blks, 47360 inodes.
with soft updates
super-block backups (for fsck -b #) at:
(...)
619847872, 621363392,growfs: wtfs: write error: 622884032: Inappropriate
ioctl for device

because of I guess :
ad3: TIMEOUT - WRITE_DMA retrying (2 retries left)
ata1: resetting devices ..
done
ad3: FAILURE - already active DMA on this device
ad3: setting up DMA failed
vinum: data.p0.s1 is stale by force
vinum: data.p0 is corrupt
fatal :data.p0.s1 write error, block 380115538 for 32768 bytes
data.p0.s1: user buffer block 621369728 for 32768 bytes

I've redone it twice, and twice it did it at the same place.
Should I guess that my disk has a problem ?

for info, here are my vinum list and printconfig
3 drives:
D vinumdrive0   State: up   /dev/ad2e   A: 0/117800 MB (0%)
D vinumdrive1   State: up   /dev/ad3e   A: 0/190782 MB (0%)

1 volumes:
V data  State: up   Plexes:   1 Size:301 GB

1 plexes:
P data.p0 C State: up   Subdisks: 2 Size:301 GB

2 subdisks:
S data.p0.s0State: up   D: vinumdrive0  Size:115 GB
S data.p0.s1State: up   D: vinumdrive1  Size:186 GB

drive vinumdrive0 device /dev/ad2e
drive vinumdrive1 device /dev/ad3e
volume data
plex name data.p0 org concat vol data
sd name data.p0.s0 drive vinumdrive0 plex data.p0 len 241254455s
driveoffset 265s plexoffset 0s
sd name data.p0.s1 drive vinumdrive1 plex data.p0 len 390721703s
driveoffset 265s plexoffset 241254455s


One strange thing lies in the 3 drived up there where there are only 2. I'm
wondering why there is written 3.

-- 
Mathieu Arnold

pgp0.pgp
Description: PGP signature


Re: growfs problem [was Re: Adding a drive in vinum]

2004-01-06 Thread Mathieu Arnold


+-Le 06/01/2004 19:18 +0100, Mathieu Arnold écrivait :
| Ok, I could not wait, so I did :
| a create with :
| drive vinumdrive1 device /dev/ad3e
| sd name data.p0.s1 drive vinumdrive1 len 0
| 
| then :
| attach data.p0.s1 data.p0
| 
| That worked well, I had a 115GB volume, I now have a 301GB one, I'm happy
| :)
| 
| Now, growfs, so, I launch it :
| 
|# growfs -N /dev/vinum/data
| new file systemsize is: 78997019 frags
| Warning: 4312 sector(s) cannot be allocated.
| growfs: 308580.0MB (631971840 sectors) block size 32768, fragment size
| 4096 using 417 cylinder groups of 740.00MB, 23680 blks, 47360
| inodes. with soft updates
| then, the superblocks backup.
| 
| And then, I do :
|# growfs /dev/vinum/data
| We strongly recommend you to make a backup before growing the Filesystem
| 
|  Did you backup your data (Yes/No) ? Yes
| new file systemsize is: 78997019 frags
| growfs: wtfs: write error: 631976157: Inappropriate ioctl for device
| 
| And well, it does not work that good...
| Any hints ?

Ok, no matter what I do, I can't grow this filesystem. I'm wondering if
there's a bug somewhere in growfs or if it's because of vinum or...

-- 
Mathieu Arnold

pgp0.pgp
Description: PGP signature


Re: growfs problem [was Re: Adding a drive in vinum]

2004-01-06 Thread Nate Lawson
 |# growfs /dev/vinum/data
 | We strongly recommend you to make a backup before growing the Filesystem
 |=20
 |  Did you backup your data (Yes/No) ? Yes
 | new file systemsize is: 78997019 frags
 | growfs: wtfs: write error: 631976157: Inappropriate ioctl for device
 |=20
 | And well, it does not work that good...
 | Any hints ?

 Ok, no matter what I do, I can't grow this filesystem. I'm wondering if
 there's a bug somewhere in growfs or if it's because of vinum or...

growfs(8) was never fully updated for UFS2 and probably still uses old
disklabel(8) ioctls.  This is almost certainly a growfs bug.  You should
compile it with -g and do a breakpoint to find what operation produces
that error message.

-Nate
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: growfs problem [was Re: Adding a drive in vinum]

2004-01-06 Thread Greg 'groggy' Lehey
On Tuesday,  6 January 2004 at 19:18:06 +0100, Mathieu Arnold wrote:
 Ok, I could not wait, so I did :
 a create with :
 drive vinumdrive1 device /dev/ad3e
 sd name data.p0.s1 drive vinumdrive1 len 0

 then :
 attach data.p0.s1 data.p0

 That worked well, I had a 115GB volume, I now have a 301GB one, I'm happy :)

 Now, growfs, so, I launch it :

 ...
 new file systemsize is: 78997019 frags
 growfs: wtfs: write error: 631976157: Inappropriate ioctl for device

Can you check the state of the volume and its plexes and subdisks?  If
they're all OK,, can you run this with ktrace?  I'd be interested to
see what the ioctl is.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers.


pgp0.pgp
Description: PGP signature