c1t0d0s7: device size 0 is too small
Hello,
I am configuring disksuite on solaris 240 server. When I give command metadb to create the replica for c1t0d0s7, I am getting the below error:
"c1t0d0s7: device size 0 is too small for metadevice database replica". I execute prtvtoc command and i got the below result to check for the available free space on the device.
free start=10776000, free size=12353664, free count=4, free_part=7.
Please help
[438 byte] By [
sjbasha] at [2007-11-26 7:25:23]

# 3
Start with deactivating the swap:
swap -d <swap device>
then you can use format to create a new partition with format, first you make the swap partition smaller, then you put the left over size in slice 7.
when you are done you activate the swap again using
swap -a <swap device>
and you can proceed with creating your metadbs..
To list swaps; use swap -l
7/M.
# 4
> You'll need to enlarge the size of the partition. One
> way of doing that is to take some 2-300 mb from the
> swap partition and put it in s7 instead..
That's quite a bit of space. Even under Solaris 10, a replica is still only 4MB. I'd never put more than 3 in a slice so 12 MB for a replica slice seems plenty to me.
--
Darren
# 5
Good point.
My old jumpstart profile used to allocate about 10 MB for metadb, but with Solaris 9 that wasn't enough (makes sence if we added three replicas and the size of each is 4 mb), so we raised it til about 300.
Since disks nowadays are quite large, and normally just hosts the OS, it seemed like a good idea to be safe. I never really took myself the time to check their exact size..
7/M.