Help with beginner issues setting up ZFS??


 
Thread Tools Search this Thread
Operating Systems Solaris Help with beginner issues setting up ZFS??
# 1  
Old 01-12-2011
Help with beginner issues setting up ZFS??

Hi, I'm new to Solaris 11. The goal is to set up a ZFS raid-Z2 NAS.

These are the instructions I've been trying to follow, with no luck:

"Setting Up an OpenSolaris NAS Box: Father-Son Bonding"

(not allowed to post URL)

Issues:

1) Root access is evidently required but I don't remember being given an option to set up a root password?

2) Web searches about root access have mentioned "single user mode"?

3) How do I determine hostname ( as in: https://<hostname>:6789/zfs)? ( entered "hostname" and it returned a value of "solaris" but entering "solaris" in the aforementioned address does not seem to work.)

4) I tried to give myself the root task and it seemed to take the command but applications sill ask for the "root" password even after I thought the user was assigned to the root task.

Any ideas what I'm doing wrong?

If the questions are too basic please point me towards some good reading.
# 2  
Old 01-12-2011
Just use
Code:
sudo -s

and your regular user account password to launch a root shell.

ZFS web management (https://xxx:6789/zfs) is obsolete. Use the CLI.
This User Gave Thanks to jlliagre For This Post:
# 3  
Old 01-12-2011
A pretty good step by step

Simon Breedon did a piece about setting up pretty much what you are trying to do. the article is a little dated (2008) and he was using Solaris 10 express. However, the steps are quite similar and I think you will have good success following:

Since I just joined, I cannot post the URL

So parse this or use it for a google search.

bredon dot org dot uk slash 2008/03/02 slash a-home-fileserver-using-zfs
This User Gave Thanks to dbtrade For This Post:
# 4  
Old 01-12-2011
OK, thanks.

If using the CLI is required I'm going to need a new set of instructions to follow.

How do you display physical drives available for the pool? All the instruction I'm finding assume you already know what your drives are called (and they are not "C:, D:" as in windows, nor are they "/mnt/hda1, hda2" or "/media/sda1, sda2"as they are in linux)?

---------- Post updated at 08:15 PM ---------- Previous update was at 08:06 PM ----------

OK, great! Thanks dbtrade!

Found it no problem. To answer my own question "format" looks like it will do the trick. Those instructions are a lot better (for beginners) than the others I've found.

Thanks again.
# 5  
Old 01-14-2011
It lives!

Steps (for my own info, as well as others):

1) At "$" prompt use "su -" or "sudo -s" to get root level "#" prompt (pfexec did not work)
2) # format (displays physical drives to be used in pool), use "control c" to exit format.
3) # zpool create storagepool raidz2 c11t0d0 c11t1d0 c11t2d0 c11t3d0 c11t4d0 c11t5d0 (creates a raidz2 virtual device named "storagepool" from physical devices c11t0d0 to c11t5d0)
4) # zfs create -o casesensitivity=mixed storagepool/media (creates a subfolder named media in the folder storagepool)
5)# zfs create -o casesensitivity=mixed storagepool/media/shows (creates a subfolder named shows in media)
6) # chown -R <username> /storagepool (transfers ownership to the user instead of root)

Setting up sharing:

7) # svcadm enable -r smb/server (turns sharing on?)
8) # smbadm join -w WORKGROUP (allows for compatibly with windows workgroup sharing)
9) # echo "other password required pam_smb_passwd.so.1 nowarn" >> /etc/pam.conf (I have no idea) EDIT: Allows the next step (step 10) to edit the file pam.conf to include a new smb password...
10) # passwd username (changes password, not sure why) EDIT: Changes the remote smb password (due to step 9), not the regular local user password.
11) # zfs set sharesmb=name=shows storagepool/shows (shares the folder at storagepool/shows as "shows")

Note that the name "storagepool" is picked by the user and could have been any name at step 3.
The name "media" in step 4 and "shows" in step 5 are also user selected and could be any descriptive word.
Finally the name "shows" in step 11 at name=shows is the user selected shared name which can be different than the local name of the folder.

---------- Post updated at 06:26 AM ---------- Previous update was at 06:24 AM ----------

So now that the ZFS pool is up and running it is time to fill it up with data. I've got a linux external hard drive with the ext2 file system I'd like to plug in and use.

I can't figure out how to mount it, or if it automounts, I can't find the mount point?

It show up as drive 7 after running the format command.

On all the other operating systems I use a new device just pops up and works with a click or two. Even older Linux distros would mount with a simple command like "mount /dev/sda /mnt/sda1" or something like that.

How does one do this type of thing with Solaris 11?

---------- Post updated at 06:55 AM ---------- Previous update was at 06:26 AM ----------

This is the drive I want to mount:

7. c12t0d0 <WDCWD10-EACS-00ZJB0-01.0 cyl 60798 alt 2 hd 255 sec 126>
/pci@0,0/pci1458,5004@12,2/storage@6/disk@0,0

---------- Post updated at 07:07 AM ---------- Previous update was at 06:55 AM ----------

I just tried an 8GB USB memory stick and it automounted real easy.

The drive that does not mount is a 1 TB USB bootable linux with at least 2 partitions, maybe 3 (boot, swap, data). The data partition is ext2.

Any ideas? Thanks in advance!

Last edited by lakedude; 02-08-2011 at 12:57 AM.. Reason: correct font
This User Gave Thanks to lakedude For This Post:
# 6  
Old 01-14-2011
Quote:
Originally Posted by lakedude
1) At "$" prompt use "su -" or "sudo -s" to get root level "#" prompt (pfexec did not work)
If you want to use pfexec to get full privileges with a regular user account, you need to grant it the "Primary Administrator" profile. It is no more set by default with new installations of Solaris 11 Express.
Quote:
So now that the ZFS pool is up and running it is time to fill it up with data. I've got a linux external hard drive with the ext2 file system I'd like to plug in and use.

I can't figure out how to mount it, or if it automounts, I can't find the mount point?

It show up as drive 7 after running the format command.

On all the other operating systems I use a new device just pops up and works with a click or two. Even older Linux distros would mount with a simple command like "mount /dev/sda /mnt/sda1" or something like that.

How does one do this type of thing with Solaris 11?
The automounter automatically mounts file systems from newly inserted removable devices as long as the file system is supported. This is however not the case with ext2fs. There used to be third party read only support which might still work with Solaris 11:
http://www.genunix.org/distributions....FSWfsmisc.txt
This User Gave Thanks to jlliagre For This Post:
# 7  
Old 01-16-2011
jlliagre

The "pfexec" was only important because my local expert insisted I use "pfexec" instead of "su -" or "sudo -s". Although we are both running Solaris 11 his system acts differently because he updated an existing Solaris 10 install, while mine is a virgin 11 install. Using "su -" took care of this issue, thanks.

As far as the NTFS/EXT2 support goes...

I think I'm going to leave the Solaris box alone and just use other computers on the network to access file systems Solaris does not support natively. Now that it is up and running the Solars box networks really easily with both Windows and Linux. A $27 gigabit switch should eliminate the network as a bottleneck.

Thanks for all the help!
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Issues with setting Aliases

Hi, I have set alias rm='rm -i' and i m able to see that in the list of aliases. however, when i fire the rm command the '-i' interactive flag does not seem to kick in. I login to a free online terminal and then i say bash to set the bash profile. Join Here is the output... (27 Replies)
Discussion started by: mohtashims
27 Replies

2. Proxy Server

Samba on AIX, issues setting read-only flag on files?

Hello, I am having issues setting the "read-only" flag via Windows Explorer on my AIX Samba share... I have on my AIX 7.1 system installed Samba 3.6.24 and configured, joined to our Windows domain successfully. The samba binaries I got from perzl.org/aix In my smb.conf I have... ... (1 Reply)
Discussion started by: c3rb3rus
1 Replies

3. Solaris

Setting up Solaris & ZFS for the first time

Hello All I’ve made the decision to switch my storage server from FreeNAS to Solaris. I opted to use FreeNAS as it has ZFS and until BTRFS is stable, it’s the best option (IMHO) for backup and network storage. The switch was facilitated by the USB stick that FreeNAS was on got lost during a... (1 Reply)
Discussion started by: BlueDalek
1 Replies

4. Solaris

ZFS send issues

I have two servers, we'll call them sv1 and sv2. both are Solaris 11.1 LDOMS running on a T4-4 with RBAC enabled. my user has zfs allow send, receive on both servers and has ssh keys shared. on sv2 (the destination) I have a zpool called zones that has no zfs fs built on sv1 (the source) I... (5 Replies)
Discussion started by: os2mac
5 Replies

5. Solaris

Solaris11: Permission issues with auto-scrub ZFS pool

Short version: pfexec zpool scrub rpool fails saying I do not have permission to perform that action. Apparently scrub is not one of the pfexec allowed actions. Any idea on how to get around it? Long version: I got tired of manually running scrubs and am trying to set it to happen... (4 Replies)
Discussion started by: taltamir
4 Replies

6. Solaris

zfs send receive performance issues

I 'm trying to clone a zfs file system pool/u01 to a new file system called newpool/u01 using following commands zfs list zfs snapshot pool/u01@new zfs send pool/u01@new | zfs -F receive newpool/u01 Its a 100G file system snapshot and copied to same server on different pool and... (9 Replies)
Discussion started by: fugitive
9 Replies

7. UNIX for Advanced & Expert Users

Issues in setting up remote syslogging

Hello, I am using Ubuntu Linux and having problems in setting up remote syslogging. Appreciate your help on this. On the server unix host, I have made following changes. uncommented following lines in /etc/rsyslog.conf $ModLoad imudp $UDPServerRun 514 Now i am trying to run rsyslog in... (0 Replies)
Discussion started by: ravi.videla
0 Replies

8. Solaris

what is the use of setting canmount=noauto in zfs mount point?

while using oracle solaris live upgrade it is mentioned to set few mountpoints like that.. what is the point doing that. (1 Reply)
Discussion started by: chidori
1 Replies

9. Solaris

ZFS Issues

Hi, I am nowusing ZFS since some weeks and now I have 2 questions: 1) in zpool I saw some disk added with the *s2 at the end, I have in mind that should not be ? is this right and if so can I get the *s2 disk out of the zpool ? 2) Zpool has still 2 spare disk but when I try to create a new... (6 Replies)
Discussion started by: manni2
6 Replies
Login or Register to Ask a Question