Re: [zfs-discuss] zfs directory symlink owner

2010-05-08 Thread Michelle Knight
"One will be relative (../a/foo) and the other absolute 
(/mirror/audio-Cd-Tracks/a/foo)."

Makes sense. I hadn't actually noticed this.

It is not only sharing to Linux machines but also using SFTP as well from 
outside, so I need things to be pretty much multi-functional and flexible.

I don't have any Microsoft machines any more. I survive by creating a 
pre-defined set of users and groups about 100 above the standard UIDs that all 
machines have. This gets around needing LDAP for a small home system.

Oh, there is the old, modded original X-Box downstairs and that plays the media 
on those shares as well, so NFS isn't ideal for me.

Thanks for the help.
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] zfs directory symlink owner

2010-05-03 Thread Michelle Knight
The long ls command worked, as in it created the links, but they didn't work 
properly under the ZFS SMB share.

They didn't work as in, on a remote Linux box, I could execute ls and see them, 
but I couldn't change in; permission issues. (despite having the correct 
ownership) and also on the remote linux box, the GUI file browser couldn't even 
see the folders.

By changing in to the directory and then executing the ls command relative to 
that point, everything worked.

Odd.
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] zfs directory symlink owner

2010-05-03 Thread Michelle Knight
Now ... 

Why would this work...

cd /mirror/audio/Cd-Tracks/0-entirelist
ln -s ../a/* .

...but this fail ...

ln -s /mirror/audio/Cd-Tracks/a/* /mirror/audio/Cd-Tracks/0-entirelist/.

Any ideas?
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] zfs directory symlink owner

2010-05-03 Thread Michelle Knight
Hmmm ... no, it didn't.

I think it might be the sheer number of symlinks I've got in the directory.
That might be causing problems with the ZFS smb share.
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] zfs directory symlink owner

2010-05-03 Thread Michelle Knight
Beautiful! It worked.

I can't work out why the symlinks failed to show up in the share when I did it, 
but this way they are showing up fine.

Thank you very much!!!
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] zfs directory symlink owner

2010-05-03 Thread Michelle Knight
... and now I've discovered that cp -L doesn't create symlinks.

Back to the drawing board.
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] zfs directory symlink owner

2010-05-03 Thread Michelle Knight
Well,

This is the overall issue.

I have a music collection. The top level folders contain a letter for each 
artist and each letter then contains a separate folder for each artist. Nice 
and easy to organise and navigate.

A - ACDC
   - Alanis Morisett
B - BeeGees

However ... I wanted to create a folder that contains the contents of all 26 
folders ... a list of all the artists.

Entirelist - ACDC
   - Alanis Morisett
   - Bee Gees

What I've been doing is creating links in the entirelist folder, which contain 
links to the sub-folders in each of the letters. very quick, very simple. 
However, despite having access to all the folders and files, they don't show up 
in the ZFS SMB share.

This means I've got to resort to using 
cp -L -R /music/A/* /music/entirelist
cp -L -R /music/B/* /music/entirelist
...etc. and this takes a long time and probably hammers the hard disk harder 
than necessary.

Anyone with any better ideas than this please?
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] zfs directory symlink owner

2010-05-03 Thread Michelle Knight
Got it - I used cp -L -R to symlnk copy the whole structure instead.

Messy, but it does the job.

Thanks for all the advice! Much appreciated.
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] zfs directory symlink owner

2010-05-03 Thread Michelle Knight
Urk - my only problem now is that they don't seem to be showing in the 
published zfs smb share.
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] zfs directory symlink owner

2010-05-03 Thread Michelle Knight
Great stuff- Many thanks!
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


[zfs-discuss] zfs directory symlink owner

2010-05-03 Thread Michelle Knight
System = SunOS
Node = jaguar
Release = 5.11
KernelID = snv_133
Machine = i86pc
BusType = 
Serial = 
Users = 
OEM# = 0
Origin# = 1
NumCPU = 1


Hi Folks,

I seem to have a problem changing the owner of a symlinked directory.

As root...

mkdir a
chown admin:audiogroup a
ln -s a b

Directory "b" shows up owned by root, but I can't change it from this. I can't 
change the mod permissions either.

"chown admin:audiogroup b" doesn't work. There doesn't seem to be a lchown 
command. Also trying the -L switch would change the linked-to file if I read 
correctly.

Can anyone shed light please?

Many thanks,

Michelle.
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Home ZFS NAS - 2 drives or 3?

2010-01-31 Thread Michelle Knight
Perhaps an expert could kindly chime in an opinion of making the drives one 
large zpool (rather than separate hard partitions) and using the various 
options within ZFS to ensure that there is always disk space available to the 
operating system (zpool reservation) ... but the more I sit and think, the more 
I'm not sure how that would work on the rpool.

There are so many ways of handling this. I still think I'd go with hard 
partitioning for the OS and data, but that is only because of my lack of 
overall experience with ZFS.
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Home ZFS NAS - 2 drives or 3?

2010-01-31 Thread Michelle Knight
Correct that ... I have seen a bad batch of drives fail in close succession; 
down to a manufacturing problem.
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Home ZFS NAS - 2 drives or 3?

2010-01-31 Thread Michelle Knight
Hi whitetr6,

An interesting situation to which there is no, "right," answer. In fact, many 
different answers depending on where you put your priorities.

I'm with Frank in keeping data and OS separate. As you've only got two drives, 
I'd put between 30 to 40 gig as an OS pool on each drive (making each 
individually bootable - I was helped out with the method on this thread - 
http://opensolaris.org/jive/thread.jspa?messageID=454491) and then the 
remainder of the drives as data.

So you've sort of got...

Drive 1 - <-30gig OS-> <-720gig data->
Drive 2 - <-30gig OS-> <-720gig data->

...completely mirrored and independently bootable.

Open Solaris creates its boot partition as a Zpool anyway, so it is relatively 
straightforward to mirror it. I made a short video of the advice that I was 
given, here - http://www.youtube.com/watch?v=tpzsSptzmyA - and that technique 
will also cover you for installing on drives of different sizes, so if you 
upgrade the hard drives later, this technique will hold solid and also enable 
you to add another drive should you have to replace one. You might have to 
adjust that advice if you're not using your entire drive for the system 
partition.

The only thing I've ever seen take out both internal drives at the same time is 
a power surge by either external sources, or an overheated PSU blowing in the 
PC. Surge protection and adequate cooling should minimise the risks.

I'm assuming you've got a routine to take snapshots and get them off the box; 
based on what you've already written.

Having an OS booting from USB is possible; from what I've seen of ZFS so far, I 
believe it would be possible to attach two USB keys and have them mirrored and 
bootable also! But personally I don't see any real need to do it this way.

So, if I were in your shoes, I'd partition as per above and run the two hard 
disks ... but have an external drive available for backup.

It would be worth practising the technique of mirroring the root partition, 
handling zpools and recovering from failures before committing data to it. The 
practice is well worth it IMHO.

I hope this helps.
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] zfs rpool mirror on non-equal drives

2010-01-30 Thread Michelle Knight
I did notice the findroot command, but I don't know what I'm doing when it 
comes to Grub.

The video is up http://www.youtube.com/watch?v=tpzsSptzmyA - just me droning on 
for ten minutes and it is aimed at people following me, so I do a lot of 
explaining the basics.

I have to agree with a previous poster in that I'd rather use fdisk and 
partition, than the fmthard command.

In general I have problems reading the man pages because they are a 
documentation of the commands and their options; as a beginner I can't 
understand them ... which is why forums like this are a life saver for people 
like me.

Thanks to all for the help.
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] zfs rpool mirror on non-equal drives

2010-01-30 Thread Michelle Knight
Another question ...

I did this as a test because I am aware that zpools don't like drives switching 
controlers without being exported first. The question was, what would a rpool 
boot drive do if it was put on a different controller and then booted?

I shut down, took away c7 and hooked c19 up to the SATA cable that I used to 
connect c7 to ... just out of interest to see what would happen.

I was half expecting it to have a problem booting, and half expecting it to 
come up as c7 ... but it still came up as c19 in the zpool status. Any idea why?
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] zfs rpool mirror on non-equal drives

2010-01-30 Thread Michelle Knight
Well blow me down with a feather ... it worked

Many thanks folks.  I'm going to make a little video about this process on You 
Tube and hope it helps someone else.
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] zfs rpool mirror on non-equal drives

2010-01-30 Thread Michelle Knight
Hi Cindy,

Won't I have a problem putting the grub in slice 0 when it is also allocated to 
the zpool? Or do the two co-exist?

I've been trying to shift the boot partition from slice 8 to slice 0, and then 
make slice 1 the hog, but I just can't get to grips with the partition command 
in order to make that happen ... or have I got it all wrong?

Michelle.
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] zfs rpool mirror on non-equal drives

2010-01-29 Thread Michelle Knight
Well, I nearly got there. I used -f to force the overwrite and then installed 
grub to slice 8 (which seemed to have the boot) but when I boot from the larger 
hard disk I get ...

GNU GRUB version 0.97 (688
[ Minimal BASH-like line editing is supported...
lists possible command completions...
competions of a device/filename. ]
grub>

...and I don't know enough about grub commands to go further than this.

For reference, here is the finished partition table ... everything was put on 
there automatically except for the free hog on slice 0...

Total disk cylinders available: 9726 + 2 (reserved cylinders)

Part  TagFlag CylindersSizeBlocks
  0 unassignedwm   3 - 9725   74.48GB(9723/0/0) 15615
  1 unassignedwm   0   0 (0/0/0)0
  2 backupwu   0 - 9725   74.50GB(9726/0/0) 156248190
  3 unassignedwm   0   0 (0/0/0)0
  4 unassignedwm   0   0 (0/0/0)0
  5 unassignedwm   0   0 (0/0/0)0
  6 unassignedwm   0   0 (0/0/0)0
  7 unassignedwm   0   0 (0/0/0)0
  8   bootwu   0 -07.84MB(1/0/0)16065
  9 alternateswm   1 -2   15.69MB(2/0/0)32130

...and the command I used to install GRUB was...

installgrub -m /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c19d0s8

...which I used because slice 8 appeared to be the book in the partition table.
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] zfs rpool mirror on non-equal drives

2010-01-29 Thread Michelle Knight
Hi System5,

They look like the steps I followed here...

http://letsgetdugg.com/2009/10/18/zfs-boot-mirror-setup/

...which didn't work.

I'm going to use the -f option and see what happens.
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] zfs rpool mirror on non-equal drives

2010-01-28 Thread Michelle Knight
I have to admit that fmthard does appear to be a bit of a sledgehammer in this 
case. I thought I was doing wrong with that, but you've confirmed that  now.
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] zfs rpool mirror on non-equal drives

2010-01-28 Thread Michelle Knight
Many thanks, I'll try that tonight.
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] zfs rpool mirror on non-equal drives

2010-01-28 Thread Michelle Knight
A bit more information... this is what I've used the all free hog to 
generate
Part  TagFlag CylindersSizeBlocks
  0 unassignedwm   3 - 9725   74.48GB(9723/0/0) 15615
  1 unassignedwm   0   0 (0/0/0)0
  2 backupwu   0 - 9725   74.50GB(9726/0/0) 156248190
  3 unassignedwm   0   0 (0/0/0)0
  4 unassignedwm   0   0 (0/0/0)0
  5 unassignedwm   0   0 (0/0/0)0
  6 unassignedwm   0   0 (0/0/0)0
  7 unassignedwm   0   0 (0/0/0)0
  8   bootwu   0 -07.84MB(1/0/0)16065
  9 alternateswm   1 -2   15.69MB(2/0/0)32130

...and when I attempt to add c19d0s0 to the pool, I get...

m...@cougar:~# zpool attach rpool c7d0s0 c19d0s0
invalid vdev specification  
use '-f' to override the following errors:  
/dev/dsk/c19d0s0 overlaps with /dev/dsk/c19d0s2 

Is it OK for me to use the -f or have I got something critically wrong here?
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


[zfs-discuss] zfs rpool mirror on non-equal drives

2010-01-28 Thread Michelle Knight
Hi Folks,

As usual, trust me to come up with the unusual.  I'm planning ahead for future 
expansion and running tests.

Unfortunately until 2010-2 comes out I'm stuck with 111b (no way to upgrade to 
anything than 130, which gives me problems)

Anyway, here is the situation.

Initial installation drive is a 40gig drive given over to Open Solaris.
Second drive is an 80 gig drive.

The aim is to mirror the operating system in a way that I can remove the 40gig 
drive form the system and have the 80 gig drive boot.

At this point, you're probably thinking that you've heard it all before.

I believe that the drive size difference is causing a problem.

I kill the EFI partition and set up a Solaris partition.  Yes, I even reboot 
the box to ensure that the Solaris partition has stuck.

I run the usual ... prtvtoc /dev/rdsk/c4t0d0s2 | fmthard -s – 
/dev/rdsk/c4t1d0s2 ... command and it is here that I think something is going 
wrong ...

... because when I add the drive to the zpool, it flips the partition back to 
EFI, which means my grub installation is useless.

Some extra information is that I can't add c19d0s0 - I have to add c19d0. This 
could be one point where it is reverting it to EFI.

If I try to add c19d0s0 I get, "cannot open '/dev/dsk/c19d0s0': No such device 
or address"

... which makes me think that the fmthard is putting wrong information on to 
the 80gig drive because the "slice" sizes will be different.

Have I reached the right conclusion? If so, how do I get around this? Do I have 
to somehow manually slice the drive up?
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] 2gig file limit on ZFS?

2010-01-22 Thread Michelle Knight
On Thursday 21 Jan 2010 22:00:55 Daniel Carosone wrote:
> Best would be to plug the ext3 disk into something that can read it
> fully, and copy over the network.  Linux, NetBSD, maybe newer
> opensolaris. Note that this could be running in a VM on the same box,
> if necessary.

Yep, done.  Ubuntu gave me some grief about mounting part elements of a raid 
set, but I managed it and the files are now copying over to the OS box happily. 
 

The problem must have been the drivers loaded to read the ext3 partition.

> split(1)?

Har, har!!! :-)
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] 2gig file limit on ZFS?

2010-01-21 Thread Michelle Knight
The error messages are in the original post. They are...
/mirror2/applications/Microsoft/Operating Systems/Virtual PC/vm/XP-SP2/XP-SP2 
Hard Disk.vhd: File too large
/mirror2/applications/virtualboximages/xp/xp.tar.bz2: File too large

The system installed to read the EXT3 system is here - 
http://blogs.sun.com/pradhap/entry/mount_ntfs_ext2_ext3_in

The ZFS partition is on /mirror

The EXT3 partition is on /mirror2

The command to start the copy is...
cp -R /mirror2/* .
...while being CD'd to /mirror and logged in as root.

Anything else I can get that would help this?
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] 2gig file limit on ZFS?

2010-01-21 Thread Michelle Knight
Fair enough.

So where do you think my problem lies?

Do you think it could be a limitation of the driver I loaded to read the ext3 
partition?
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] 2gig file limit on ZFS?

2010-01-21 Thread Michelle Knight
Aplogies for not explaining myself correctly, I'm copying from ext3 on to ZFS - 
it appears to my amateur eyes, that it is ZFS that is having the problem.
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


[zfs-discuss] 2gig file limit on ZFS?

2010-01-21 Thread Michelle Knight
Hi Folks,

Situation, 64 bit Open Solaris on AMD. 2009-6 111b - I can't successfully 
update the OS.

I've got three external 1.5 Tb drives in a raidz pool connected via USB.

Hooked on to an IDE channel is a 750gig hard drive that I'm copying the data 
off. It is an ext3 drive from an Ubuntu server.

Copying is being done on the machine using the cp command as root.

So far, two files have failed...
/mirror2/applications/Microsoft/Operating Systems/Virtual PC/vm/XP-SP2/XP-SP2 
Hard Disk.vhd: File too large
/mirror2/applications/virtualboximages/xp/xp.tar.bz2: File too large

The files are...
-rwxr-x---   1 adminapplications 4177570654 Nov  4 08:02 xp.tar.bz2
-rwxr-x---   1 adminapplications 2582259712 Feb 14  2007 XP-SP2 Hard 
Disk.vhd

The system is a home server and contains files of all types and sizes.

Any ideas please?
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss