Tuesday, August 9, 2016

ufs to zfs on solaris10

 grumble my second drive i've dedicated to solaris zones   
 has run out of inodes cause it it ufs and not zfs. okay.  
   
 # nano -w /etc/vfstab  
   
 remove second drive definition; e.g. c2t3C76E3E06C7010BCd0  
   
 # umount /zones  
 # format -e  
   
 format  
 select the second drive. go home.  
   
 # zpool list  
 # zpool create zones c2t3C76E3E06C7010BCd0  
 # zpool status  
 # mount |grep zones  
 # cd /zones  
 # df -k  
   
   zones        1147797504   21 1147797432   1%  /zones  
   
 that looks like 1T yeah?  
   
 # dd if=/dev/zero bs=128k count=40000 of=/zones/bigfile  
   
 40000+0 records in  
 40000+0 records out  
   
 # ls -la  
 total 9250396  
 drwxr-xr-x  2 root   root      3 Aug 8 10:13 .  
 drwxr-xr-x 25 root   root     512 Aug 3 17:08 ..  
 -rw-r--r--  1 root   root   5242880000 Aug 8 10:13 bigfile  
   
 # zpool list  
 NAME  SIZE ALLOC  FREE  CAP HEALTH ALTROOT  
 zones 1.09T 4.88G 1.08T   0% ONLINE -  
   
 yay.  

No comments: