Hi! I have one of the new 3TB drives: da0: <Hitachi HUA723030ALA640 > Fixed Direct Access SCSI-5 device da0: 2861588MB (5860533168 512 byte sectors: 255H 63S/T 364801C) Now as far as I understand, one can operate it with many 512byte blocks or one can try to use the internal 4kbyte blocks. How would one do that with FreeBSD ? -- pi@opsec.eu +49 171 3101372 9 years to go !
Hi! Edho P Arief wrote:> > I have one of the new 3TB drives: > > > > da0: <Hitachi HUA723030ALA640 > Fixed Direct Access SCSI-5 device > > da0: 2861588MB (5860533168 512 byte sectors: 255H 63S/T 364801C) > > > > Now as far as I understand, one can operate it with many 512byte blocks > > or one can try to use the internal 4kbyte blocks.> ...I think it goes like this. > > ZFS: > >>>create GPT > # gpart create -s gpt da0 > >>>add partition, start at 4k-aligned sector > # gpart add -t freebsd-zfs -b 1024 da0Thanks -- is it also possible to have something like da0: 2861588MB (732566646 4096 byte sectors: 255H 63S/T 364801C) appear during the boot ? Has anyone ever tried ? Would FreeBSD support it ? -- pi@opsec.eu +49 171 3101372 9 years to go !
>>> da0:<Hitachi HUA723030ALA640> Fixed Direct Access SCSI-5 device >>> da0: 2861588MB (5860533168 512 byte sectors: 255H 63S/T 364801C) > > Thanks -- is it also possible to have something like > > da0: 2861588MB (732566646 4096 byte sectors: 255H 63S/T 364801C) >According to Hitachi, this is an 512b drive. Daniel
On Thu, Feb 17, 2011 at 6:56 PM, Kurt Jaeger <lists@c0mplx.org> wrote:> Hi! > > I have one of the new 3TB drives: > > da0: <Hitachi HUA723030ALA640 > Fixed Direct Access SCSI-5 device > da0: 2861588MB (5860533168 512 byte sectors: 255H 63S/T 364801C) > > Now as far as I understand, one can operate it with many 512byte blocks > or one can try to use the internal 4kbyte blocks. > > How would one do that with FreeBSD ? >...I think it goes like this. ZFS:>>>create GPT# gpart create -s gpt da0>>>add partition, start at 4k-aligned sector# gpart add -t freebsd-zfs -b 1024 da0>>>create NOP device for simulating 4k sector# gnop create -S 4096 da0p1>>>create zfs pool and export# zpool create mydata da0p1.nop # zpool export mydata>>>destroy the NOP since it's only needed to set ashift=12 when creating the pool# gnop destroy da0p1.nop>>>optional, but I use this to ensure the pool imports da0p1, not gpt-id/<randomgarbage># dd if=/dev/da0p1 of=/dev/null bs=1M count=1>>>import back the pool# zpool import mydata UFS:>>>create GPT# gpart create -s gpt da0>>>create partition, with start position 4k-aligned# gpart add -t freebsd-ufs -b 1024 -l mydata da0>>>default newfs is good enough# newfs -U /dev/gpt/mydata corrections welcome.
On Thu, 17 Feb 2011, Daniel Kalchev wrote: DK> > > > da0:<Hitachi HUA723030ALA640> Fixed Direct Access SCSI-5 device DK> > > > da0: 2861588MB (5860533168 512 byte sectors: 255H 63S/T 364801C) DK> > DK> > Thanks -- is it also possible to have something like DK> > DK> > da0: 2861588MB (732566646 4096 byte sectors: 255H 63S/T 364801C) DK> > DK> According to Hitachi, this is an 512b drive. Yep. A friend of mine a couple of weeks ago was involved in testing 3T disks available now in RU: - Hitachi Deskstar 7K3000: HDS723030ALA640 - Seagate Barracuda XT: ST33000651AS - Western Digital Caviar Green: WD30EZRS-11J99B0 from which only the latter, according to the tests, uses 4k firmware sectors. -- Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------