Re: [zfs-discuss] Backup complete rpool structure and data to tape
Thanks everyone. Your inputs helped me a lot. The 'rpool/ROOT' mountpoint is set to 'legacy' as I don't see any reason to mount it. But I am not certain if that can cause any issue in the future, or that's a right thing to do. Any suggestions ? Thanks Arjun ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
[zfs-discuss] Backup complete rpool structure and data to tape
Hello, Trying to understand how to backup mirrored zfs boot pool 'rpool' to tape, and restore it back if in case the disks are lost. Backup would be done with an enterprise tool like tsm, legato etc. As an example, here is the layout: # zfs list NAME USED AVAIL REFER MOUNTPOINT rpool64.5G 209G97K legacy rpool/ROOT 24.0G 209G21K legacy rpool/ROOT/s10s_u8wos_08a 24G 14.8G 5.15G / rpool/ROOT/s10s_u8wos_08a/var 4G 3.93G 74.6M /var rpool/dump 2.50G 209G 2.50G - rpool/swap 16G 225G 136M - # Could you answer these queries: 1. Is it possible to backup 'rpool' as a single entity, or do we need to backup each filesystems, volumes etc. within rpool seperately ? 2. How do we backup the whole structure of zfs (pool, filesystem, volume, snapshot etc.) along with all its property settings. Not just the actual data stored within. 3. If in case the whole structure cannot be backed up using enterprise backup, how do we save and restore zfs sctructure if in case the disks are lost. I have read about 'zfs send receive ...'. Is this the only recommended way ? 4. I have never tried to restore a whole boot disk from tape. Could you share some details on how to rebuild the boot disks by restoring from tape. 5. I have set 'rpool/ROOT' mountpoint to 'legacy' as I don't see any reason to mount it. Not sure if it's a right thing to do. Any suggestions ? Thanks Arjun ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Re: [zfs-discuss] How to rename rpool. Is that recommended ?
Cindy, Here is what I was trying to do.. I have some scripts that allows to quickly deploy LDOM guest domains. The Golden OS Image of guest domain boot disk is on a ZFS Volume. This ZFS Volume has been Snapshot and Cloned for the quick deployment of guest domains. To build new ldom, create a new Clone, asssign it to Control Domain as a 'vdisk', edit files in vdisk as required for giving a new hostname, IP, etc, then unassign vdisk from control domain, and assign it back to the guest domain. As control domain is already booted from 'rpool', importing another rpool from vdisk required renaiming the rpool on vdisk. But, I couldn't see how rpool on vdisk can be renamed back to its original name 'rpool' after the files in it have been updated. I think, the solution here is to have different name for boot pool on control domain and on the ldom boot disk (one being Cloned) Thanks Arjun On Fri, Apr 8, 2011 at 10:46 PM, Cindy Swearingen cindy.swearin...@oracle.com wrote: Arjun, Yes, you an choose any name for the root pool, but an existing limitation is that you can't rename the root pool by using the zpool export/import with new name feature. Too much internal boot info is tied to the root pool name. What info are you changing? Instead, could you create a new BE and update the info in the new BE. Creating a new BE is the best solution. Another solution is to create a mirrored root pool and then use the zpool split option to create an identical root pool (that is then imported with a new name, like rpool2), but this identical root pool won't be bootable either. You would then need to mount rpool2's file systems and copy whatever data you needed. Thanks, Cindy On 04/08/11 01:24, Arjun YK wrote: Hi, Let me add another query. I would assume it would be perfectly ok to choose any name for root pool, instead of 'rpool', during the OS install. Please suggest otherwise. Thanks Arjun On 4/8/11, Arjun YK arju...@gmail.com wrote: Hello, I have a situation where a host, which is booted off its 'rpool', need to temporarily import the 'rpool' of another host, edit some files in it, and export the pool back retaining its original name 'rpool'. Can this be done ? Here is what I am trying to do: # zpool import -R /a rpool temp-rpool # zfs set mountpoint=/mnt temp-rpool/ROOT/s10_u8 # zfs mount temp-rpool/ROOT/s10_u8 ### For example, edit /a/mnt/etc/hosts # zfs set mountpoint=/ temp-rpool/ROOT/s10_u8 # zfs export temp-rpool-- But, I want to give temp-rpool its original name 'rpool' before or after this export. I cannot see how this can be achieved. So, I decided to live with the name 'temp-rpool'. But, is renaming 'rpool' recommended or supported parctice ? Any help is appreciated. Thanks Arjun ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
[zfs-discuss] How to rename rpool. Is that recommended ?
Hello, I have a situation where a host, which is booted off its 'rpool', need to temporarily import the 'rpool' of another host, edit some files in it, and export the pool back retaining its original name 'rpool'. Can this be done ? Here is what I am trying to do: # zpool import -R /a rpool temp-rpool # zfs set mountpoint=/mnt temp-rpool/ROOT/s10_u8 # zfs mount temp-rpool/ROOT/s10_u8 ### For example, edit /a/mnt/etc/hosts # zfs set mountpoint=/ temp-rpool/ROOT/s10_u8 # zfs export temp-rpool-- But, I want to give temp-rpool its original name 'rpool' before or after this export. I cannot see how this can be achieved. So, I decided to live with the name 'temp-rpool'. But, is renaming 'rpool' recommended or supported parctice ? Any help is appreciated. Thanks Arjun ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Re: [zfs-discuss] How to rename rpool. Is that recommended ?
Hi, Let me add another query. I would assume it would be perfectly ok to choose any name for root pool, instead of 'rpool', during the OS install. Please suggest otherwise. Thanks Arjun On 4/8/11, Arjun YK arju...@gmail.com wrote: Hello, I have a situation where a host, which is booted off its 'rpool', need to temporarily import the 'rpool' of another host, edit some files in it, and export the pool back retaining its original name 'rpool'. Can this be done ? Here is what I am trying to do: # zpool import -R /a rpool temp-rpool # zfs set mountpoint=/mnt temp-rpool/ROOT/s10_u8 # zfs mount temp-rpool/ROOT/s10_u8 ### For example, edit /a/mnt/etc/hosts # zfs set mountpoint=/ temp-rpool/ROOT/s10_u8 # zfs export temp-rpool-- But, I want to give temp-rpool its original name 'rpool' before or after this export. I cannot see how this can be achieved. So, I decided to live with the name 'temp-rpool'. But, is renaming 'rpool' recommended or supported parctice ? Any help is appreciated. Thanks Arjun ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
[zfs-discuss] Update LDOM bootdisk (ZFS) from control domain
Hello, I am trying to update files on LDOM boot disk from Control Domain, but I can't get it working fully. I have a setup that allows to quickly deploy LDOM guest domains. The Golden OS Image of guest domain boot disk is on a ZFS Volume. This ZFS Volume has been Snapshot and Cloned for the quick deployment of guest domains. Filesystem in both the control domain and guest domain is ZFS. To make the build process more hands off, I am looking for a way to access the ZFS Volume (new Clone) from Control Domain during the build, and edit files in ZFS as required for giving a new hostname, IP, etc. I have been able to mount volume on control domain, and edit the files: ### From control domain, import LDOM's rpool using its backend zvol device file # zpool import -f -d /dev/zvol/rdsk/ldm1_bootvol/ -R /mnt 17625453751871434467 temp-name ## Mount and edit hosts file # zfs set mountpoint=/rootdir temp-name/ROOT/s10s_u8wos_08a # zfs mount temp-name/ROOT/s10s_u8wos_08a # edit /mnt/rootdir/etc/hosts Issue I have now is how do I put this pool 'temp-name' back to its original name 'rpool' so that LDOM can boot ? Could someone share some idea ? Thanks Arjun ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
[zfs-discuss] Best practice for boot partition layout in ZFS
Hi, I am trying to use ZFS for boot, and kind of confused about how the boot paritions like /var to be layed out. With old UFS, we create /var as sepearate filesystem to avoid various logs filling up the / filesystem With ZFS, during the OS install it gives the option to Put /var on a separate dataset, but no option is given to set quota. May be, others set quota manually. So, I am trying to understand what's the best practice for /var in ZFS. Is that exactly same as in UFS or is there anything different ? Could someone share some thoughts ? Thanks Arjun ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss