Hello, It could be lack of sleep, but I can''t work this out. On one server (which I built about 6 months ago) I have this: -bash-3.00# mount / on rpool/ROOT/s10s_u6wos_07b read/write/setuid/devices/dev=4010002 on Thu Jan 1 01:00:00 1970 /devices on /devices read/write/setuid/devices/dev=5100000 on Sun Jun 14 12:15:32 2009 /system/contract on ctfs read/write/setuid/devices/dev=5140001 on Sun Jun 14 12:15:32 2009 /proc on proc read/write/setuid/devices/dev=5180000 on Sun Jun 14 12:15:32 2009 /etc/mnttab on mnttab read/write/setuid/devices/dev=51c0001 on Sun Jun 14 12:15:32 2009 /etc/svc/volatile on swap read/write/setuid/devices/xattr/dev=5200001 on Sun Jun 14 12:15:32 2009 /system/object on objfs read/write/setuid/devices/dev=5240001 on Sun Jun 14 12:15:32 2009 /etc/dfs/sharetab on sharefs read/write/setuid/devices/dev=5280001 on Sun Jun 14 12:15:32 2009 /platform/sun4v/lib/libc_psr.so.1 on /platform/SUNW,SPARC-Enterprise-T5220/lib/libc_psr/libc_psr_hwcap2.so.1 read/write/setuid/devices/dev=4010002 on Sun Jun 14 12:15:43 2009 /platform/sun4v/lib/sparcv9/libc_psr.so.1 on /platform/SUNW,SPARC-Enterprise-T5220/lib/sparcv9/libc_psr/libc_psr_hwcap2.so.1 read/write/setuid/devices/dev=4010002 on Sun Jun 14 12:15:43 2009 /dev/fd on fd read/write/setuid/devices/dev=5400001 on Sun Jun 14 12:15:52 2009 /tmp on swap read/write/setuid/devices/xattr/dev=5200002 on Sun Jun 14 12:15:53 2009 /var/run on swap read/write/setuid/devices/xattr/dev=5200003 on Sun Jun 14 12:15:53 2009 /export on rpool/export read/write/setuid/devices/nonbmand/exec/xattr/atime/dev=4010003 on Sun Jun 14 12:15:55 2009 /export/home on rpool/export/home read/write/setuid/devices/nonbmand/exec/xattr/atime/dev=4010004 on Sun Jun 14 12:15:55 2009 /oradata on oradata read/write/setuid/devices/nonbmand/exec/xattr/atime/dev=4010005 on Sun Jun 14 12:15:55 2009 /redo on redo read/write/setuid/devices/nonbmand/exec/xattr/atime/dev=4010006 on Sun Jun 14 12:15:55 2009 /rpool on rpool read/write/setuid/devices/nonbmand/exec/xattr/atime/dev=4010007 on Sun Jun 14 12:15:55 2009 /u01 on rpool/u01 read/write/setuid/devices/nonbmand/exec/xattr/atime/dev=4010008 on Sun Jun 14 12:15:55 2009 /u02 on oradata/u02 read/write/setuid/devices/nonbmand/exec/xattr/atime/dev=4010009 on Sun Jun 14 12:15:56 2009 /u03 on oradata/u03 read/write/setuid/devices/nonbmand/exec/xattr/atime/dev=401000a on Sun Jun 14 12:15:56 2009 /u04 on redo/u04 read/write/setuid/devices/nonbmand/exec/xattr/atime/dev=401000b on Sun Jun 14 12:15:56 2009 /CIFS on localhost:x-browser: remote/read/write/setuid/devices/dev=5480001 on Sun Jun 14 12:16:03 2009 /u05/oradata on localhost:smb://192.168.168.253/ics remote/read/write/setuid/devices/dev=5480003 on Sun Jun 14 13:08:04 2009 -bash-3.00# zpool status pool: oradata state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM oradata ONLINE 0 0 0 mirror ONLINE 0 0 0 c1t2d0 ONLINE 0 0 0 c1t3d0 ONLINE 0 0 0 mirror ONLINE 0 0 0 c1t4d0 ONLINE 0 0 0 c1t5d0 ONLINE 0 0 0 errors: No known data errors pool: redo state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM redo ONLINE 0 0 0 mirror ONLINE 0 0 0 c1t6d0 ONLINE 0 0 0 c1t7d0 ONLINE 0 0 0 errors: No known data errors pool: rpool state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM rpool ONLINE 0 0 0 mirror ONLINE 0 0 0 c1t0d0s0 ONLINE 0 0 0 c1t1d0s0 ONLINE 0 0 0 errors: No known data errors -bash-3.00# zpool status pool: oradata state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM oradata ONLINE 0 0 0 mirror ONLINE 0 0 0 c1t2d0 ONLINE 0 0 0 c1t3d0 ONLINE 0 0 0 mirror ONLINE 0 0 0 c1t4d0 ONLINE 0 0 0 c1t5d0 ONLINE 0 0 0 errors: No known data errors pool: redo state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM redo ONLINE 0 0 0 mirror ONLINE 0 0 0 c1t6d0 ONLINE 0 0 0 c1t7d0 ONLINE 0 0 0 errors: No known data errors pool: rpool state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM rpool ONLINE 0 0 0 mirror ONLINE 0 0 0 c1t0d0s0 ONLINE 0 0 0 c1t1d0s0 ONLINE 0 0 0 errors: No known data errors On my new server I''ve inserted new 6 disks, run devfsadm and labelled them. I want to get the same set up as the previous, but can''t for the life of me work out what I did. I can''t find my notes, and the documentation is just confusing me. Can someone point me in the right direction? S. -- Stephen Nelson-Smith Technical Director Atalanta Systems Ltd www.atalanta-systems.com
Stephen Nelson-Smith wrote:> On my new server I''ve inserted new 6 disks, run devfsadm and labelled > them. I want to get the same set up as the previous, but can''t for > the life of me work out what I did. I can''t find my notes, and the > documentation is just confusing me. > > Can someone point me in the right direction?Stephen, I presume you''ve already installed your new server with the same rpool configuration as your original, so you''re asking how to recreate your two other pools. Also assuming your new devices have the same names as the old, you can basically just pluck the ''zpool create'' arguments from your zpool status output on the other machine: # zpool create oradata mirror c1t2d0 c1t3d0 mirror c1t4d0 c1t5d0 # zpool create redo mirror c1t6d0 c1t7d0 The labelling step was probably unnecessary in this case, since the pools are not boot pools. ZFS will automatically label the disks with EFI labels when you give a whole disk (no ''s#'') as an argument. Hope this helps, Eric -- Eric Sproul Lead Site Reliability Engineer OmniTI Computer Consulting, Inc. Web Applications & Internet Architectures http://omniti.com
Stephen Nelson-Smith wrote:> Hi, > >> I presume you''ve already installed your new server with the same rpool >> configuration as your original, so you''re asking how to recreate your two other >> pools. > > Correct - and also the mountpoints, which seem particulary confusing: > > -bash-3.00# grep u0 /etc/mnttab > rpool/u01 /u01 zfs > rw,devices,setuid,nonbmand,exec,xattr,atime,dev=4010008 1244978155 > oradata/u02 /u02 zfs > rw,devices,setuid,nonbmand,exec,xattr,atime,dev=4010009 1244978156 > oradata/u03 /u03 zfs > rw,devices,setuid,nonbmand,exec,xattr,atime,dev=401000a 1244978156 > redo/u04 /u04 zfs > rw,devices,setuid,nonbmand,exec,xattr,atime,dev=401000b 1244978156 > localhost:smb://192.168.168.253/ics /u05/oradata nfs > dev=5480003 1244981284 >You can either set the mountpoint property when you create the dataset or do it in a second operation after the create. Either: # zfs create -o mountpoint=/u01 rpool/u01 or: # zfs create rpool/u01 # zfs set mountpoint=/u01 rpool/u01 I''m not sure about the remote mount. It appears to be a local SMB resource mounted as NFS? I''ve never seen that before.>> Also assuming your new devices have the same names as the old, you can basically >> just pluck the ''zpool create'' arguments from your zpool status output on the >> other machine: >> >> # zpool create oradata mirror c1t2d0 c1t3d0 mirror c1t4d0 c1t5d0 >> # zpool create redo mirror c1t6d0 c1t7d0 > > Can you actually see the literal commands? A bit like MySQL''s ''show > create table''? Or are you just intrepreting the output?Just interpreting the output. The first one creates the ''oradata'' pool with two mirrors of two drives each. Data will be dynamically balanced across both mirrors, effectively the same as RAID1+0. The second one creates a simple mirror of two disks (RAID1). Regards, Eric -- Eric Sproul Lead Site Reliability Engineer OmniTI Computer Consulting, Inc. Web Applications & Internet Architectures http://omniti.com
Sorry - didn''t realised I''d replied only to you.> You can either set the mountpoint property when you create the dataset or do it > in a second operation after the create. > > Either: > # zfs create -o mountpoint=/u01 rpool/u01 > > or: > # zfs create rpool/u01 > # zfs set mountpoint=/u01 rpool/u01Got you.> I''m not sure about the remote mount. ?It appears to be a local SMB resource > mounted as NFS? ?I''ve never seen that before.Ah that''s just a Sharity mount - it''s a red herring. u0[1-4] will be the same. Thanks very much, S. -- Stephen Nelson-Smith Technical Director Atalanta Systems Ltd www.atalanta-systems.com
> > Can you actually see the literal commands? A bit like MySQL''s ''show > > create table''? Or are you just intrepreting the output? > > Just interpreting the output.Actually you could see the commands on the "old" server by using zpool history oradata Regards -- Volker -- ------------------------------------------------------------------------ Volker A. Brandt Consulting and Support for Sun Solaris Brandt & Brandt Computer GmbH WWW: http://www.bb-c.de/ Am Wiesenpfad 6, 53340 Meckenheim Email: vab at bb-c.de Handelsregister: Amtsgericht Bonn, HRB 10513 Schuhgr??e: 45 Gesch?ftsf?hrer: Rainer J. H. Brandt und Volker A. Brandt
Hi Volker, On Fri, Aug 21, 2009 at 5:42 PM, Volker A. Brandt<vab at bb-c.de> wrote:>> > Can you actually see the literal commands? ?A bit like MySQL''s ''show >> > create table''? ?Or are you just intrepreting the output? >> >> Just interpreting the output. > > Actually you could see the commands on the "old" server by using > > ?zpool history oradataThat''s awesome - thank you very much! S. -- Stephen Nelson-Smith Technical Director Atalanta Systems Ltd www.atalanta-systems.com