LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   ZFS Add Disk ? (https://www.linuxquestions.org/questions/solaris-opensolaris-20/zfs-add-disk-735145/)

routers 06-23-2009 11:06 PM

ZFS Add Disk ?
 
I need help on add disk to runing zfs ,
i have disk0=72G disk1=33G disk2=72G disk3=33G
FYI i dont want MIRROR but i want to use all disk 123 as storage
I want to mount dsk1 in /export/dsk/dsk1 and dsk2 to /export/dsk/dsk2
but i couldnt make it as the result is

Code:

bash-3.00# mount /dev/c1t1d0s2 /export/dsk/dsk1
mount: /dev/c1t1d0s2 or /export/dsk/dsk1, no such file or directory


bash-3.00# cat /etc/release
Solaris 10 5/09 s10s_u7wos_08 SPARC
Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 30 March 2009

this is df output
Code:

bash-3.00# df -h
Filesystem            size  used  avail capacity  Mounted on
rpool/ROOT/s10s_u7wos_08
                        67G  4.1G    61G    7%    /
/devices                0K    0K    0K    0%    /devices
ctfs                    0K    0K    0K    0%    /system/contract
proc                    0K    0K    0K    0%    /proc
mnttab                  0K    0K    0K    0%    /etc/mnttab
swap                  2.2G  392K  2.2G    1%    /etc/svc/volatile
objfs                    0K    0K    0K    0%    /system/object
sharefs                  0K    0K    0K    0%    /etc/dfs/sharetab
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
                        65G  4.1G    61G    7%    /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
                        65G  4.1G    61G    7%    /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd                      0K    0K    0K    0%    /dev/fd
swap                  2.2G    56K  2.2G    1%    /tmp
swap                  2.2G    48K  2.2G    1%    /var/run
rpool/export            67G    22K    61G    1%    /export
rpool/export/home      67G    85K    61G    1%    /export/home
rpool                  67G    94K    61G    1%    /rpool

i ran format and see the following
Code:

AVAILABLE DISK SELECTIONS:
      0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@1c,600000/scsi@2/sd@0,0
      1. c1t1d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1c,600000/scsi@2/sd@1,0
      2. c1t2d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@1c,600000/scsi@2/sd@2,0
      3. c1t3d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1c,600000/scsi@2/sd@3,0
Specify disk (enter its number): 1
selecting c1t1d0
[disk formatted]

any suggestion thanks

custangro 06-24-2009 12:19 AM

Quote:

Originally Posted by routers (Post 3584059)
I need help on add disk to runing zfs ,
i have disk0=72G disk1=33G disk2=72G disk3=33G
FYI i dont want MIRROR but i want to use all disk 123 as storage
I want to mount dsk1 in /export/dsk/dsk1 and dsk2 to /export/dsk/dsk2
but i couldnt make it as the result is

Code:

bash-3.00# mount /dev/c1t1d0s2 /export/dsk/dsk1
mount: /dev/c1t1d0s2 or /export/dsk/dsk1, no such file or directory


bash-3.00# cat /etc/release
Solaris 10 5/09 s10s_u7wos_08 SPARC
Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 30 March 2009

this is df output
Code:

bash-3.00# df -h
Filesystem            size  used  avail capacity  Mounted on
rpool/ROOT/s10s_u7wos_08
                        67G  4.1G    61G    7%    /
/devices                0K    0K    0K    0%    /devices
ctfs                    0K    0K    0K    0%    /system/contract
proc                    0K    0K    0K    0%    /proc
mnttab                  0K    0K    0K    0%    /etc/mnttab
swap                  2.2G  392K  2.2G    1%    /etc/svc/volatile
objfs                    0K    0K    0K    0%    /system/object
sharefs                  0K    0K    0K    0%    /etc/dfs/sharetab
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
                        65G  4.1G    61G    7%    /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
                        65G  4.1G    61G    7%    /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd                      0K    0K    0K    0%    /dev/fd
swap                  2.2G    56K  2.2G    1%    /tmp
swap                  2.2G    48K  2.2G    1%    /var/run
rpool/export            67G    22K    61G    1%    /export
rpool/export/home      67G    85K    61G    1%    /export/home
rpool                  67G    94K    61G    1%    /rpool

i ran format and see the following
Code:

AVAILABLE DISK SELECTIONS:
      0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@1c,600000/scsi@2/sd@0,0
      1. c1t1d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1c,600000/scsi@2/sd@1,0
      2. c1t2d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@1c,600000/scsi@2/sd@2,0
      3. c1t3d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1c,600000/scsi@2/sd@3,0
Specify disk (enter its number): 1
selecting c1t1d0
[disk formatted]

any suggestion thanks

You could do something...

Code:

zpool create pool c1t1d0 c1t2d0 c1t3d0
Then create your filesytems...

Code:

zfs create pool/disk1
zfs create pool/disk2

Now set the mount point...

Code:

zfs set mountpoint=/export/dsk/dsk1 pool/disk1
zfs set mountpoint=/export/dsk/dsk2 pool/disk2


routers 06-24-2009 02:16 AM

thanks for your fast reply

i follow your suggestion and do try n error
Code:

bash-3.00# zpool create pool c1t1d0 c1t2d0 c1t3d0
invalid vdev specification
use '-f' to override the following errors:
/dev/dsk/c1t1d0s0 is part of exported or potentially active ZFS pool rpool. Please see zpool(1M).
/dev/dsk/c1t1d0s2 is part of exported or potentially active ZFS pool rpool. Please see zpool(1M).

the result i have done the following have to use -f

Code:

bash-3.00# zpool create -f pool  c1t1d0 c1t2d0 c1t3d0
bash-3.00# zfs create pool/dsk1
bash-3.00# zfs set mountpoint=/export/dsk/dsk1 pool/dsk1

success end df output get following result
Code:

pool/dsk1              133G    18K  133G    1%    /export/dsk/dsk1
i will do next disk :)

thanks a lot

custangro 06-24-2009 10:48 AM

Quote:

Originally Posted by routers (Post 3584199)
thanks for your fast reply

i follow your suggestion and do try n error
Code:

bash-3.00# zpool create pool c1t1d0 c1t2d0 c1t3d0
invalid vdev specification
use '-f' to override the following errors:
/dev/dsk/c1t1d0s0 is part of exported or potentially active ZFS pool rpool. Please see zpool(1M).
/dev/dsk/c1t1d0s2 is part of exported or potentially active ZFS pool rpool. Please see zpool(1M).

the result i have done the following have to use -f

Code:

bash-3.00# zpool create -f pool  c1t1d0 c1t2d0 c1t3d0
bash-3.00# zfs create pool/dsk1
bash-3.00# zfs set mountpoint=/export/dsk/dsk1 pool/dsk1

success end df output get following result
Code:

pool/dsk1              133G    18K  133G    1%    /export/dsk/dsk1
i will do next disk :)

thanks a lot

No problem! :)

Just keep in mind that zpool create -f pool c1t1d0 c1t2d0 c1t3d0 probably created a "stripe" and there is no fault tolerance (i.e. if you lose one disk...your data will be lost).

But I'm not sure so consult the zpool man page for details...

-C


All times are GMT -5. The time now is 08:52 AM.