Menu:
  :. HomePage
  :. Linux
  :. Solaris
  :. Windows
  :. Programování
  :. Java + Tomcat
  :. HW obecně
  :. VoIP - Asterisk
  :. Cisco - Mikrotik - Síť
  :. O mě
  :. Fotogalerie

 Testovací:
  :. ASP projekt
  :. JSP projekt



 Doporučuji:

Savvy - profesionální webhosting, webdesign a serverhosting
Internetový obchod Stromeček.cz - hardware, software a mobily za super ceny
AirCon Miroslav
Galerie fotek
Notebooky
Webdesign Praha

www.eprdel.cz
www.root.cz
Lumimont

NAVRCHOLU.cz
A



Vaše IP:
18.227.21.101

ZFS - na solaris

# svcadm disable volfs

An important thing to know in this context is that you can't create a pool on removable media devices, i.e. the ones whose storage media can be removed. DVD drives and flash readers are removable media, hard disks are not. So you'll need one or more USB hard disks. Most USB hard disks and IDE-to-USB enclosures should work. Thumb drives are not likely to work. In this experiment I'm using two USB 2.0 disks: a 20GB LaCie and a 40GB IOGEAR.


For the reasons that are beyond this blog entry, the Solaris USB driver presents any USB storage device as removable media. A simple command to list removable and non-removable disks is format(1M). Quoting the man page:



     Removable media devices are listed only when  users  execute
format in expert mode (option -e).


Run format with and without -e and notice the difference:


# format
Searching for disks...done

AVAILABLE DISK SELECTIONS:
0. c1d0
/pci@0,0/pci-ide@8/ide@0/cmdk@0,0
Specify disk (enter its number): ^C
# format -e
Searching for disks...done

AVAILABLE DISK SELECTIONS:
0. c1d0
/pci@0,0/pci-ide@8/ide@0/cmdk@0,0
1. c4t0d0
/pci@0,0/pci1297,a550@2,2/storage@6/disk@0,0
2. c5t0d0
/pci@0,0/pci1297,a550@2,2/storage@5/disk@0,0
Specify disk (enter its number): ^C

c4t0d0 and c5t0d0 are USB disks.


What we're going to do is tell the USB driver not to treat hard disks as removable media. This can be done by appending the following line to /kernel/drv/scsa2usb.conf file:


attribute-override-list =
"vid=* removable=false";

Reboot for these changes to take effect. Now all your USB hard disks are going to be treated as fixed (but you can still hotplug them). You can verify that by running format without -e option - if it still doesn't list your USB disk, most likely it's one of the rare samples that pretends to be removable media and that's a hack for another day.


Now you can use these disks just like any fixed disk:


# zpool create usbpool mirror c4t0d0 c5t0d0
# zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
usbpool 27.8G 33.0K 27.7G 0% ONLINE -
# zpool status
pool: usbpool
state: ONLINE
scrub: none requested
config:

NAME STATE READ WRITE CKSUM
usbpool ONLINE 0 0 0
mirror ONLINE 0 0 0
c4t0d0 ONLINE 0 0 0
c5t0d0 ONLINE 0 0 0
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
usbpool 32K 27.5G 8K /usbpool

Zdroje:

 
« Zpět na seznam