Go Back   The UNIX and Linux Forums > Operating Systems > BSD


BSD BSD, sometimes called Berkeley Unix, is a Unix operating system developed by the Computer Systems Research Group of the UC Berkeley.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 09-13-2012
Registered User
 
Join Date: Feb 2012
Posts: 31
Thanks: 14
Thanked 1 Time in 1 Post
Unable to create zfs zpool in FreeBSD 8.2: no such pool or dataset

I am trying to test simple zfs functionality on a FreeBSD 8.2 VM. When I try to run a 'zpool create' I receive the following error:


Code:
[root@vm-fbsd82-64 /]# zpool create zfspool /dev/da0s1a
cannot create 'zfspool': no such pool or dataset

[root@vm-fbsd82-64 /]# zpool create zfspool /dev/da0
cannot create 'zfspool': no such pool or dataset

I was not sure what to put for the device, so I tried both da0s1a and da0, due to this output:


Code:
[root@vm-fbsd82-64 /]# egrep 'da[0-9]' /var/run/dmesg.boot
da0 at mpt0 bus 0 scbus0 target 0 lun 0
da0: <VMware Virtual disk 1.0> Fixed Direct Access SCSI-2 device
da0: 320.000MB/s transfers (160.000MHz, offset 127, 16bit)
da0: Command Queueing enabled
da0: 204800MB (419430400 512 byte sectors: 255H 63S/T 26108C)
Trying to mount root from ufs:/dev/da0s1a
da0 at mpt0 bus 0 scbus0 target 0 lun 0
da0: <VMware Virtual disk 1.0> Fixed Direct Access SCSI-2 device
da0: 320.000MB/s transfers (160.000MHz, offset 127, 16bit)
da0: Command Queueing enabled
da0: 204800MB (419430400 512 byte sectors: 255H 63S/T 26108C)
Trying to mount root from ufs:/dev/da0s1a
da0 at mpt0 bus 0 scbus0 target 0 lun 0
da0: <VMware Virtual disk 1.0> Fixed Direct Access SCSI-2 device
da0: 320.000MB/s transfers (160.000MHz, offset 127, 16bit)
da0: Command Queueing enabled
da0: 204800MB (419430400 512 byte sectors: 255H 63S/T 26108C)
Trying to mount root from ufs:/dev/da0s1a

Just wondering if I am missing a step or doing something wrong.
edit: I'm starting to wonder if it's because I only have 1 'disk' in this VM, and perhaps the entire disk has been formatted to ufs and so I can't create a zpool on that disk? Do I need to add another disk in VMware?



Also, does anyone know what filesystems are natively supported in FBSD 6.x and 8.x? I believe 6.x supports ufs and 8.x supports ufs and zfs, but I am not positive.

Thank you for any help

Last edited by bstring; 09-13-2012 at 02:27 PM..
Sponsored Links
    #2  
Old 09-13-2012
DukeNuke2's Avatar
Soulman
 
Join Date: Jul 2006
Location: Berlin, Germany
Posts: 5,082
Thanks: 40
Thanked 191 Times in 186 Posts
ZFSQuickStartGuide - FreeBSD Wiki
The Following User Says Thank You to DukeNuke2 For This Useful Post:
AnbuBlack (09-21-2012)
Sponsored Links
    #3  
Old 09-13-2012
Registered User
 
Join Date: Feb 2012
Posts: 31
Thanks: 14
Thanked 1 Time in 1 Post
I found my problem: I only had one disk, and I guess it was entirely allocated to my existing ufs filesystem. Once I added a new disk, I was able to specify it as the device and I was able to successfully create a zpool/zfs filesystem:


Code:
[root@vm-fbsd82-64 ~]# egrep 'da[0-9]' /var/run/dmesg.boot
da0 at mpt0 bus 0 scbus0 target 0 lun 0
da0: <VMware Virtual disk 1.0> Fixed Direct Access SCSI-2 device

da1 at mpt0 bus 0 scbus0 target 1 lun 0
da1: <VMware Virtual disk 1.0> Fixed Direct Access SCSI-2 device


Code:
[root@vm-fbsd82-64 ~]# zpool create zfspool /dev/da1
[root@vm-fbsd82-64 ~]# zfs create zfspool/test-zfs
[root@vm-fbsd82-64 ~]# df
Filesystem                         1K-blocks        Used     Avail Capacity  Mounted on
zfspool                              10257328         21  10257307     0%    /zfspool
zfspool/test-zfs                     10257328         21  10257307     0%    /zfspool/test-zfs


Quote:
Originally Posted by DukeNuke2 View Post
Thank you for the link.
    #4  
Old 09-21-2012
AnbuBlack's Avatar
Registered User
 
Join Date: Nov 2011
Posts: 7
Thanks: 4
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by bstring View Post
Also, does anyone know what filesystems are natively supported in FBSD 6.x and 8.x? I believe 6.x supports ufs and 8.x supports ufs and zfs, but I am not positive.
ZFS is a combined file system and logical volume manager originally designed by Sun Microsystems. It was ported to FreeBSD and has been part of the operating system since FreeBSD 7.0. FreeBSD 6.x use UFS.

The Z File System
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ZFS - Dataset / pool name are the same...cannot destroy eladgrs Solaris 8 06-18-2012 03:31 PM
flarecreate for zfs root dataset and ignore multiple dataset uxravi Solaris 0 09-13-2011 01:49 PM
How to create metadb with zpool in Solaris 11 incredible Solaris 10 09-08-2011 02:38 PM
zpool create - long time creation bieszczaders Solaris 1 08-17-2011 04:23 AM
unable to import zfs pool fugitive Solaris 7 06-25-2009 06:44 PM



All times are GMT -4. The time now is 09:02 PM.