LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices


Reply
 
Search this Thread
Old 06-23-2009, 10:06 PM   #1
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 773
Blog Entries: 6

Rep: Reputation: 75
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
 
Old 06-23-2009, 11:19 PM   #2
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,942
Blog Entries: 1

Rep: Reputation: 188Reputation: 188
Quote:
Originally Posted by routers View Post
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
 
Old 06-24-2009, 01:16 AM   #3
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 773
Blog Entries: 6

Original Poster
Rep: Reputation: 75
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
 
Old 06-24-2009, 09:48 AM   #4
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,942
Blog Entries: 1

Rep: Reputation: 188Reputation: 188
Quote:
Originally Posted by routers View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
what disk configuration do you use with your ZFS pools at home? crisostomo_enrico Solaris / OpenSolaris 10 09-02-2007 08:29 AM
Solaris Express ZFS vs Solaris 10 ZFS? kebabbert Solaris / OpenSolaris 8 06-29-2007 07:05 AM
ZFS Root / Boot into ZFS from a usb flash drive Kataku Solaris / OpenSolaris 1 07-15-2006 04:13 AM
Add Disk to LVM Help!! gfem Fedora 2 02-07-2006 04:02 PM
How to Add a new disk to /home? beelzebub888 Linux - General 4 12-24-2002 12:40 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration