Install with /var in separate partition - Zfs / 10


 
Thread Tools Search this Thread
Operating Systems Solaris Install with /var in separate partition - Zfs / 10
# 1  
Old 06-14-2010
Install with /var in separate partition - Zfs / 10

This is my first time working with ZFS on Solaris 10. I am trying to set up /var in a separate partition from /.

During the installation, I came across the ZFS settings where I selected disks 0 and 1 to be mirrored with ZFS. Next was the option to have /var and / on separate datasets.

Is selecting this option like setting them up with different partitons? I am not quite up to speed with ZFS ... any suggestions?

Thanks in advance.
# 2  
Old 06-14-2010
Yes it is like setting up with partitions.
But then zfs uses pooled storage

So if you wan't to use zfs /var on a different filesystem you could use the following.

Code:
 
       # zfs create pool/var
       # zfs set mountpoint=/var

This User Gave Thanks to jld For This Post:
# 3  
Old 06-14-2010
Within the default pool "rpool" I do have /var as a "filesystem".

Code:
rpool                          7.86G   126G    97K  /rpool
rpool/ROOT                     4.36G   126G    21K  legacy
rpool/ROOT/s10s_u8wos_08a      4.36G   126G  4.29G  /
rpool/ROOT/s10s_u8wos_08a/var  68.8M   126G  68.8M  /var
rpool/dump                     1.50G   126G  1.50G  -
rpool/export                     44K   126G    23K  /export
rpool/export/home                21K   126G    21K  /export/home
rpool/swap                        2G   128G    16K  -


If I were to create another pool for /var and set its mountpoint as /var also, would that cause any problems or lost data?

For the most part, I don't see what the problem with the current setup so most likely I will not be changing this.
# 4  
Old 06-15-2010
Quote:
Originally Posted by 6L71
If I were to create another pool for /var and set its mountpoint as /var also
You already have /var as a separate file system so that would make no sense. I suppose jld suggestion what just an (probably non functional) example showing how to create a new file system for a given directory. It wasn't at all something that directly apply to a critical system directory like /var.
Quote:
would that cause any problems or lost data?
No immediate loss of data as the old dataset would still keep its content but, assuming it succeeded, it would have crashed and rendered your system unusable as it substitutes /var by an empty directory. Even if properly done, it would have make your system not upgradeable as live upgrade expects /var to be part of a boot environment (like yours it is currently Solaris 10 update 8).
Quote:
For the most part, I don't see what the problem with the current setup so most likely I will not be changing this.
That's a wise decision. There is actually no problem with your current setup.
This User Gave Thanks to jlliagre For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Install Solaris 11 with ZFS

Hi, I'm not expert with solaris. I Familiar with Linux variant only. Could anyone point me to right tutorial? I got one > but not sure it can be use or not. I'm doing fresh install for new server. The server spec did not come out yet. Please assist me. Thanks. (17 Replies)
Discussion started by: mzainal
17 Replies

2. Solaris

Make /var a indepandant zfs

hi all, i am wondering the best way for geting out /var from / fs in my rpool. actualy i have /var under / file system i whant to have /var in his own zfs in rpool may be a send recieve betwen a temp pool may work but ??? i am not sure may be convert the directory in zfs, in dont... (0 Replies)
Discussion started by: sylvain
0 Replies

3. Solaris

Configuring 'auditd' service to not store the audit logs in /var partition

Hello all, I've configured 'audit' service to send the audit logs to a remote log server (by using syslog plugin), which is working fine. However, there is a problem. audit service also tries to write same information (but in binary format) in /var/audit path. So, Is there anyway to stop... (2 Replies)
Discussion started by: Anti_Evil
2 Replies

4. HP-UX

/var partition full need help

My /var partition is almost utilized ... Here am not sure where to release space now OS/model : HP-UX B.11.11 U 9000/800 # bdf /var Filesystem kbytes used avail %used Mounted on /dev/vg00/lvol9 6144000 6142176 1824 100% /var <root@pb>/var # du -sk * | sort -n |... (20 Replies)
Discussion started by: Shirishlnx
20 Replies

5. Shell Programming and Scripting

Want to separate my /var/adm/messages output

Hi, Please help to seprate my /var/adm/messages output. Than i want to take this output in the excel. e,g cat /var/adm/messages Sep 4 10:16:52 ibsadm1 inetd: vnetd from 172.17.5.20 38353 Sep 4 10:16:52 ibsadm1 inetd: bpcd from 172.17.5.20 915 Sep 4 10:16:55 ibsadm1 inetd: ... (5 Replies)
Discussion started by: nirjhar17
5 Replies

6. UNIX for Dummies Questions & Answers

How do I link my Ubuntu desktop to a separate partition?

I have a dual boot system on my laptop running Windows 7 professional and Ubuntu 10.10. I would like my windows 7 desktop C:\users\username\Desktop and also my Ubuntu 10.10 desktop /home/username/Desktop to both save their files to the same location somewhere...perhaps /windows (a 40 gb win32... (0 Replies)
Discussion started by: Marcus Aurelius
0 Replies

7. UNIX for Dummies Questions & Answers

How can partition out /var with these two separate 10 gigabyte disks?

In my company ,there is a mail server that services approximately 3,000 users. 2,000 users access their email via a POP-3 service, while the remaining 1,000 users access their email via a Unix mail reader. Recently users have complained about speed of disk access, so a new 10 gigabyte disk has... (1 Reply)
Discussion started by: lemon_06
1 Replies

8. Solaris

Lost /var/sadm/install/contents file and /var/sadm/pkg

Hello, I recently found that my /var/sadm/install/contents, ~/admin/default, /var/spool/patch and /var/spool/pkg files were empty. This broke the pkginfo, pkgchk and other package related tools. The pkgmap no longer points to where the applications have been installed. I have replaced the... (0 Replies)
Discussion started by: ronin42
0 Replies

9. BSD

Moving /var partition to USB stick

I am currently running DesktopBSD as a live-CD and need to have a large /var partition because it is currently too small. I have a USB stick which is BSD formatted, and would like to have the /var partition moved over to it. How can this be done? Could I for instance use a symlink? (1 Reply)
Discussion started by: figaro
1 Replies

10. Filesystems, Disks and Memory

partition out /var

Hi If You were the systems administrator of a mail server that services approximately 3,000 users. 2,000 users access their email via a POP-3 service, while the remaining 1,000 users access their email via a Unix mail reader. Recently users have complained about speed of disk access, so a new 10... (1 Reply)
Discussion started by: semaphore
1 Replies
Login or Register to Ask a Question