My experience with ZFS! ( Creating ZFS filesystem for /usr )

Few days back, I was playing with ZFS and got a strange idea to convert my /usr and /opt to ZFS. I created a ZFS pool and then created two filesystems:
sparkle@~# zfs list
NAME USED AVAIL REFER MOUNTPOINT
pool 3.50G 5.31G 24.5K /pool
pool/opt 1.45G 5.31G 1.45G /pool/opt
pool/usr 2.05G 5.31G 2.05G /pool/usr

I copied the contents of /usr and /opt to ZFS filesystems and changes the mount point of these to filesystems to /usr and /opt. And I rebooted to see the system going into maintenance mode :-(. The system did not boot up because ZFS mounting was coming some wher later in the boot process and system could not find the /usr. With the help of my colleagues Moinak and Ananth (and of course Google ;-) ), we solved the issue. Here is how you can mount /usr as a ZFS file system.

1)Create the filesystem and copy the contents.
2)Set the mount point as legacy
sparkle@~# zfs set mountpoint=legacy pool/usr
3)Add an entry in the vfstab like:
pool/usr - /usr zfs - yes -

Reboot the system and Enjoy the power of ZFS :-)!

Comments:

HI DUDE it really worked well. i copied /usr with "ufsdump of - /usr | (cd /pool/usr ; ufsrestore xvf -) and followed ur procedure and it worked great. thanks Buddy. Regards Satheesh

Posted by satheesh on March 05, 2007 at 04:58 AM EAT #

a comment

Posted by guest on May 24, 2007 at 09:01 AM EAT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

vineeth

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today