Steve Arkley
2010-Sep-19 07:37 UTC
[zfs-discuss] moving rppol in laptop to spare SSD drive.
Hello folks, I ordered a bunch of 128Gb SSD''s the other day, placed 2 in PC, another in a windoz laptop and I thought I''d place one in my opensolaris laptop, should be straightforward or so I thought. The problem I seem to be running into is that the partition the rpool is on is 130Gb, SSD once sliced up is only about 120Gb. I pulled the main disk from the latop and put it in a caddy, put the new ssd in the drive bay and booted from cdrom. I imported the rpool and created an altpool on the ssd drive. zfs pool list shows both pools. altpool size 119G avail 119G rpool size 130G used 70G I created a snapshot of the rpool and tried to send it to the other disk but it fails with file too large. zfs send -R rpool at backup > altpool warning: cannot send ''rpool/build at backup'': file too large. is there anyway to get the data over onto the other drive at all? Thanks Steve. -- This message posted from opensolaris.org
Mark Farmer
2010-Sep-19 08:03 UTC
[zfs-discuss] moving rppol in laptop to spare SSD drive.
Hi Steve, Couple of options. Create a new boot environment on the SSD, and this will copy the data over. Or zfs send -R rpool at backup | zfs recv altpool I''d use the alt boot environment, rather than the send and receive. Cheers, -Mark. On 19/09/2010, at 5:37 PM, Steve Arkley wrote:> Hello folks, > > I ordered a bunch of 128Gb SSD''s the other day, placed 2 in PC, another in a windoz laptop and I thought I''d place one in my opensolaris laptop, should be straightforward or so I thought. > > The problem I seem to be running into is that the partition the rpool is on is 130Gb, SSD once sliced up is only about 120Gb. > > I pulled the main disk from the latop and put it in a caddy, put the new ssd in the drive bay and booted from cdrom. > > I imported the rpool and created an altpool on the ssd drive. > > zfs pool list shows both pools. > altpool size 119G avail 119G > rpool size 130G used 70G > > I created a snapshot of the rpool and tried to send it to the other disk but it fails with file too large. > > zfs send -R rpool at backup > altpool > warning: cannot send ''rpool/build at backup'': file too large. > > is there anyway to get the data over onto the other drive at all? > > Thanks Steve. > -- > This message posted from opensolaris.org > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss-------------- next part -------------- A non-text attachment was scrubbed... Name: oracle_sig_logo.gif Type: image/gif Size: 658 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100919/08623823/attachment.gif> -------------- next part -------------- Mark Farmer | Sales Consultant Phone: +61730317106 | Mobile: +61414999143 Oracle Systems ORACLE Australia | 300 Ann St | Brisbane -------------- next part -------------- A non-text attachment was scrubbed... Name: green-for-email-sig_0.gif Type: image/gif Size: 356 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100919/08623823/attachment-0001.gif> -------------- next part -------------- Oracle is committed to developing practices and products that help protect the environment
Steve Arkley
2010-Sep-19 13:03 UTC
[zfs-discuss] moving rppol in laptop to spare SSD drive.
Doh, Why didn''t I think of that cheers Mark, some time the most obvious options get completely passed by, alt boot environment it is. Thanks Steve. -- This message posted from opensolaris.org
Brandon High
2010-Oct-24 02:34 UTC
[zfs-discuss] moving rppol in laptop to spare SSD drive.
On Sun, Sep 19, 2010 at 12:37 AM, Steve Arkley <steve.arkley at gmail.com> wrote:> is there anyway to get the data over onto the other drive at all?You can create a new pool on the replacement drive and use send | recv to populate it. There are a few properties that are normally set on a boot pool, namely bootfs, which points at your bootenv: $ zpool get bootfs rpool rpool bootfs rpool/ROOT/snv_134 local The basic method is: - Boot from LiveCD - Import existing rpool. You may need to import -f. - Using fdisk, create a SOLARIS2 fdisk partition that uses the entire drive. - Using format, create slice 0 that uses the entire disk. - Create new rpool in slice 0 (call it "new_rpool"?) - zfs send -R rpool | zfs recv new_rpool - BOOTFS=$( zpool list -o bootfs -H rpool ) - zpool export rpool - zpool export new_rpool - zpool import new_rpool rpool (to rename it to rpool) - zpool set bootfs=$BOOTFS - zpool export rpool - Run installgrub on the new drive - Powerdown, remove the old drive and boot. - Profit. -- Brandon High : bhigh at freaks.com