How to use hammer volume-add and volume-del

lhmwzy lhmwzy at gmail.com
Wed Apr 7 00:58:02 PDT 2010


# uname -a
DragonFly . 2.6-RELEASE DragonFly v2.6.1-RELEASE #1: Sun Apr  4
19:50:41 PDT 2010
root at test28.backplane.com:/usr/obj/usr/src-misc/sys/GENERIC  i386

# hammer volume-del /dev/da1 /usr
hammer volume-del ioctl: Invalid argument

when added a disk,can't be removed.

another question,the same disk(/dev/da1 for example) can be added for
many times using "hammer volume-add /dev/da1 /usr",is this normal?

2010/4/7 Michael Neumann <michaelneuma at googlemail.com>:
>
>
> 2010/4/6 lhmwzy <lhmwzy at gmail.com>
>>
>> Could anyone write a artilce about how to use hammer volume-add and
>> volume-del step by step?
>> I can't do it well.
>
> You used it correctly and discovered a bug. It's really as easy as:
>   hammer volume-add /dev/ad1 /
> You can use whatever device, partition, slice etc. you want instead of
> /dev/ad1.
> Note that if you extend you root filesystem, you'd also need to change
> your /boot/loader.conf vfs.root.mountfrom setting to include ad1:
> Before volume-add:
>   vfs.root.mountfrom="hammer:ad0s1d"
> After volume-add:
>   vfs.root.mountfrom="hammer:ad0s1d:ad1"
> Always keep in mind that volume-add and volume-del is still experimental,
> which means that it needs more testing!
> Regards,
>   Michael






More information about the Users mailing list