Robert Hartzell
2010-Aug-17 02:30 UTC
[zfs-discuss] How do I Import rpool to an alternate location?
I have a disk which is 1/2 of a boot disk mirror from a failed system that I would like to extract some data from. So i install the disk to a test system and do: zpool import -R /mnt -f rpool bertha which gives me:> bertha 102G 126G 84K /mnt/bertha > bertha/ROOT 34.3G 126G 19K legacy > bertha/ROOT/snv_134 34.3G 126G 10.9G /mnt > bertha/Vbox 46.9G 126G 46.9G /mnt/export/Vbox > bertha/dump 2.00G 126G 2.00G - > bertha/export 8.05G 126G 31K /mnt/export > bertha/export/home 8.05G 52.0G 8.01G /mnt/export/home > bertha/mail 1.54M 5.00G 1.16M /mnt/var/mail > bertha/swap 4G 130G 181M - > bertha/zones 6.86G 126G 24K /mnt/export/zones > bertha/zones/bz1 6.05G 126G 24K /mnt/export/zones/bz1 > bertha/zones/bz1/ROOT 6.05G 126G 21K legacy > bertha/zones/bz1/ROOT/zbe 6.05G 126G 6.05G legacy > bertha/zones/bz2 821M 126G 24K /mnt/export/zones/bz2 > bertha/zones/bz2/ROOT 821M 126G 21K legacy > bertha/zones/bz2/ROOT/zbe 821M 126G 821M legacycd /mnt ; ls bertha export var ls bertha boot etc where is the rest of the file systems and data? -- Robert Hartzell bear at rwhartzell.net RwHartzell.Net
Mark Musante
2010-Aug-17 02:39 UTC
[zfs-discuss] How do I Import rpool to an alternate location?
On 16 Aug 2010, at 22:30, Robert Hartzell wrote:> > cd /mnt ; ls > bertha export var > ls bertha > boot etc > > where is the rest of the file systems and data?By default, root filesystems are not mounted. Try doing a "zfs mount bertha/ROOT/snv_134" -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100816/d24da358/attachment.html>
George Wilson
2010-Aug-17 02:47 UTC
[zfs-discuss] How do I Import rpool to an alternate location?
The root filesystem on the root pool is set to ''canmount=noauto'' so you need to manually mount it first using ''zfs mount <dataset name>''. Then run ''zfs mount -a''. - George On 08/16/10 07:30 PM, Robert Hartzell wrote:> I have a disk which is 1/2 of a boot disk mirror from a failed system > that I would like to extract some data from. So i install the disk to > a test system and do: > > zpool import -R /mnt -f rpool bertha > > which gives me: > >> bertha 102G 126G 84K /mnt/bertha >> bertha/ROOT 34.3G 126G 19K legacy >> bertha/ROOT/snv_134 34.3G 126G 10.9G /mnt >> bertha/Vbox 46.9G 126G 46.9G /mnt/export/Vbox >> bertha/dump 2.00G 126G 2.00G - >> bertha/export 8.05G 126G 31K /mnt/export >> bertha/export/home 8.05G 52.0G 8.01G /mnt/export/home >> bertha/mail 1.54M 5.00G 1.16M /mnt/var/mail >> bertha/swap 4G 130G 181M - >> bertha/zones 6.86G 126G 24K /mnt/export/zones >> bertha/zones/bz1 6.05G 126G 24K >> /mnt/export/zones/bz1 >> bertha/zones/bz1/ROOT 6.05G 126G 21K legacy >> bertha/zones/bz1/ROOT/zbe 6.05G 126G 6.05G legacy >> bertha/zones/bz2 821M 126G 24K >> /mnt/export/zones/bz2 >> bertha/zones/bz2/ROOT 821M 126G 21K legacy >> bertha/zones/bz2/ROOT/zbe 821M 126G 821M legacy > > > > cd /mnt ; ls > bertha export var > ls bertha > boot etc > > where is the rest of the file systems and data? >
Robert Hartzell
2010-Aug-17 03:00 UTC
[zfs-discuss] How do I Import rpool to an alternate location?
On 08/16/10 07:39 PM, Mark Musante wrote:> > On 16 Aug 2010, at 22:30, Robert Hartzell wrote: > >> >> cd /mnt ; ls >> bertha export var >> ls bertha >> boot etc >> >> where is the rest of the file systems and data? > > By default, root filesystems are not mounted. Try doing a "zfs mount > bertha/ROOT/snv_134"This didn''t work,,,> pfexec zfs mount bertha/ROOT/snv_134 > cannot mount ''/mnt'': directory is not emptydo I need set the mount point to a different location? -- Robert Hartzell bear at rwhartzell.net RwHartzell.Net
Robert Hartzell
2010-Aug-17 03:21 UTC
[zfs-discuss] How do I Import rpool to an alternate location?
On 08/16/10 07:47 PM, George Wilson wrote:> The root filesystem on the root pool is set to ''canmount=noauto'' so you > need to manually mount it first using ''zfs mount <dataset name>''. Then > run ''zfs mount -a''. > > - George >mounting the dataset failed because the /mnt dir was not empty and "zfs mount -a" failed I guess because the first command failed. -- Robert Hartzell bear at rwhartzell.net RwHartzell.Net
George Wilson
2010-Aug-17 05:38 UTC
[zfs-discuss] How do I Import rpool to an alternate location?
Robert Hartzell wrote:> On 08/16/10 07:47 PM, George Wilson wrote: >> The root filesystem on the root pool is set to ''canmount=noauto'' so you >> need to manually mount it first using ''zfs mount <dataset name>''. Then >> run ''zfs mount -a''. >> >> - George >> > > mounting the dataset failed because the /mnt dir was not empty and "zfs > mount -a" failed I guess because the first command failed. > >It''s possible that as part of the initial import that one of the mount points tried to create a directory under /mnt. You should first unmount everything associated with that pool, then ensure that /mnt is empty and mount the root filesystem first. Don''t mount anything else until the root is mounted. - George
Robert Hartzell
2010-Aug-17 06:52 UTC
[zfs-discuss] How do I Import rpool to an alternate location?
On 08/16/10 10:38 PM, George Wilson wrote:> Robert Hartzell wrote: >> On 08/16/10 07:47 PM, George Wilson wrote: >>> The root filesystem on the root pool is set to ''canmount=noauto'' so you >>> need to manually mount it first using ''zfs mount <dataset name>''. Then >>> run ''zfs mount -a''. >>> >>> - George >>> >> >> mounting the dataset failed because the /mnt dir was not empty and >> "zfs mount -a" failed I guess because the first command failed. >> >> > > It''s possible that as part of the initial import that one of the mount > points tried to create a directory under /mnt. You should first unmount > everything associated with that pool, then ensure that /mnt is empty and > mount the root filesystem first. Don''t mount anything else until the > root is mounted. > > - GeorgeAwesome! That worked... just recovered 100GB of data! Thanks for the help -- Robert Hartzell bear at rwhartzell.net RwHartzell.Net