[zfs-discuss] zfs snaps and removing some files

2007-04-14 Thread Krzys

Hello folks, I have strange and unusual request...

I have two 300gig drives mirrored:
[11:33:22] [EMAIL PROTECTED]: /d/d2  zpool status
  pool: mypool
 state: ONLINE
 scrub: none requested
config:

NAMESTATE READ WRITE CKSUM
mypool  ONLINE   0 0 0
  mirrorONLINE   0 0 0
c1t2d0  ONLINE   0 0 0
c1t3d0  ONLINE   0 0 0

errors: No known data errors


it does give me total of 
[11:32:55] [EMAIL PROTECTED]: /d/d2  zpool list

NAMESIZEUSED   AVAILCAP  HEALTH ALTROOT
mypool  278G271G   6.75G97%  ONLINE -


I am using around 150 gig of that 278 gig that I have and disk is 99% full
[11:33:58] [EMAIL PROTECTED]: /d/d2  df -k .
Filesystem   1k-blocks  Used Available Use% Mounted on
mypool/d 152348400 149829144   2519256  99% /d/d2


I am taking snaps so I have it since last year. I removed month 11 already 
because did not have any space left.


[11:32:52] [EMAIL PROTECTED]: /d/d2  zfs list
NAME   USED  AVAIL  REFER  MOUNTPOINT
mypool 271G  2.40G  24.5K  /mypool
mypool/d   271G  2.40G   143G  /d/d2
mypool/[EMAIL PROTECTED] 3.72G  -   123G  -
mypool/[EMAIL PROTECTED] 22.3G  -   156G  -
mypool/[EMAIL PROTECTED] 23.3G  -   161G  -
mypool/[EMAIL PROTECTED] 16.1G  -   172G  -
mypool/[EMAIL PROTECTED] 13.8G  -   168G  -
mypool/[EMAIL PROTECTED] 15.7G  -   168G  -
mypool/[EMAIL PROTECTED]185M  -   143G  -

Anyway in snaps that I have I do have certain files in those snaps that are few 
gig's in sizes. I did go to snaps and I did try to remove them but I got 
message:
[11:42:50] [EMAIL PROTECTED]: /d/d2/.zfs/snapshot/month_01  rm 
studio11-sol-sparc.tar

rm: remove write-protected file `studio11-sol-sparc.tar'? y
rm: cannot unlink `studio11-sol-sparc.tar': Read-only file system
[11:43:01] [EMAIL PROTECTED]: /d/d2/.zfs/snapshot/month_01 
[11:43:03] [EMAIL PROTECTED]: /d/d2/.zfs/snapshot/month_01  ls -la 
studio11-sol-sparc.tar

-rw-rw-r--1 root root 1123425280 Jan 25  2006 studio11-sol-sparc.tar
[11:43:16] [EMAIL PROTECTED]: /d/d2/.zfs/snapshot/month_01 

Is there a way to mount file system as read/write and be able to remove those 
big files that I dont need there?


I would love to keep those snaps for months... I know, easy suggestion would be 
to add more disk space and never worry about it but yet again in my situation I 
have two internal disks that are 300gb and I cannot add more internal drives to 
that system so I rather use what I can...


Thanks for any help.

Chris


___
zfs-discuss mailing list
[EMAIL PROTECTED]
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] zfs snaps and removing some files

2007-04-14 Thread Cyril Plisko

On 4/14/07, Krzys [EMAIL PROTECTED] wrote:

Yes, I certainly agree. but what I wanted to do is remove those big files
completly from my system, so I would make sure its gone from each snap. I
certainly do understand the design of zfs file system and I was just wondering
if what I wanted is possible... so just on that one file example that I had, if
I could just go and remove that particular file from every snap like that file
would never existed... If I dont do that and I remove it from my file system
those references will stay in all snaps except for the last one and that is all
great... but my issue at this moment is that I have 300gb drive and only 150gb
of disk space used and my file system is at almost 100% Soon I will not be able
to take any snaps unless I remove some old ones or add another mirror to it...

Anyway just wanted to know if any of that woul dbe possible in any way...


Chris,

you may want to try cloning these snapshots, removing these big files from
the clone and then zfs send/recv these clones, instead of original snapshots.

--
Regards,
   Cyril
___
zfs-discuss mailing list
[EMAIL PROTECTED]
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss