[OpenIndiana-discuss] Using large (3-4 TB) USB disks for backups

Reginald Beardsley pulaskite at yahoo.com
Wed Mar 26 13:43:17 UTC 2014


Here's what happens w/ oi151a8.  I was using a7 the last time.  The physical size doesn't get set correctly w/ the result that ashift=9.


# echo "::walk sd_state | ::grep '.!=0' | ::print struct sd_lun un_sd |::print struct scsi_device sd_inq | ::print struct scsi_inquiry inq_vid inq_pid" | mdb -k
inq_vid = [ "Toshiba " ]
inq_pid = [ "External USB 3.0" ]

# echo ::sd_state | mdb -k | egrep '(^un|_blocksize)'
un 3: ffffff0148254cc0
    un_sys_blocksize = 0x200
    un_tgt_blocksize = 0x1000
    un_phy_blocksize = 0x200
    un_f_tgt_blocksize_is_valid = 0x1

Add entry in sd.conf:

sd-config-list = "*Toshiba*" ,"physical-block-size:4096";

# update_drv -vf sd
Cannot unload module: sd
Will be unloaded upon reboot.
Forcing update of sd.conf.
sd.conf updated in the kernel.

# echo ::sd_state | mdb -k | egrep '(^un|_blocksize)'
un 3: ffffff0148254cc0
    un_sys_blocksize = 0x200
    un_tgt_blocksize = 0x1000
    un_phy_blocksize = 0x200
    un_f_tgt_blocksize_is_valid = 0x1

Rebooted system

# echo ::sd_state | mdb -k | egrep '(^un|_blocksize)'
un 3: ffffff0140e28d00
    un_sys_blocksize = 0x1000
    un_tgt_blocksize = 0x1000
    un_phy_blocksize = 0x200
    un_f_tgt_blocksize_is_valid = 0x1

 Note sys_blocksize got set, but not phys_blocksize.

# zpool create tosh_pool c0t0d0p0
# zdb | egrep 'ashift| name'
    name: 'rpool'
            ashift: 9
    name: 'tosh_pool'
            ashift: 9
#

--------------------------------------------
On Tue, 3/25/14, Andrew Gabriel <illumos at cucumber.demon.co.uk> wrote:

 Subject: Re: [OpenIndiana-discuss] Using large (3-4 TB) USB disks for backups
 To: openindiana-discuss at openindiana.org
 Date: Tuesday, March 25, 2014, 11:31 PM
 
 On 26/03/2014 03:07, Reginald
 Beardsley wrote:
 > Has anyone been able to  ZFS format a 3-4 TB 
 USB drive w/ OI so that it worked properly?  I was
 defeated by a 3 TB Toshiba drive, but am hoping some other
 make might work  w/o generating misaligned messages.
 
 It helps if you paste in the terminal window showing the
 exact commands you issued and their responses.
 
 -- Andrew
 
 
 _______________________________________________
 OpenIndiana-discuss mailing list
 OpenIndiana-discuss at openindiana.org
 http://openindiana.org/mailman/listinfo/openindiana-discuss
 



More information about the OpenIndiana-discuss mailing list