Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sh-3.2$ date
- Fri 11 Oct 2013 15:33:04 BST
- sh-3.2$ uptime
- 15:33 up 2 mins, 2 users, load averages: 2.47 0.92 0.36
- sh-3.2$ sudo mv /usr/sbin/zpool ~/Desktop
- Password:
- sh-3.2$ diskutil cs list
- CoreStorage logical volume groups (2 found)
- |
- +-- Logical Volume Group C76EFF68-418B-4A45-A4B6-8F428140C7AC
- | =========================================================
- | Name: OS
- | Status: Online
- | Size: 99484213248 B (99.5 GB)
- | Free Space: 0 B (0 B)
- | |
- | +-< Physical Volume 34B7B97C-B5DB-450E-9B13-A0CCAFC28762
- | | ----------------------------------------------------
- | | Index: 0
- | | Disk: disk0s5
- | | Status: Online
- | | Size: 99484213248 B (99.5 GB)
- | |
- | +-> Logical Volume Family D20EE39C-6A9A-4A65-8CB8-2C82DBF766DD
- | ----------------------------------------------------------
- | Encryption Status: Unlocked
- | Encryption Type: AES-XTS
- | Conversion Status: Complete
- | Conversion Direction: -none-
- | Has Encrypted Extents: Yes
- | Fully Secure: Yes
- | Passphrase Required: Yes
- | |
- | +-> Logical Volume 44C9242C-57CF-49FE-BCCA-03F563BCAAB5
- | ---------------------------------------------------
- | Disk: disk1
- | Status: Online
- | Size (Total): 99165437952 B (99.2 GB)
- | Size (Converted): -none-
- | Revertible: No
- | LV Name: OS
- | Volume Name: OS
- | Content Hint: Apple_HFS
- |
- +-- Logical Volume Group 902434C9-0131-4E3A-AE15-2B8B938087AD
- =========================================================
- Name: gjp22-cs
- Status: Online
- Size: 616336003072 B (616.3 GB)
- Free Space: 0 B (0 B)
- |
- +-< Physical Volume 179AADE6-34F1-404C-A994-9FD99C881BA6
- | ----------------------------------------------------
- | Index: 0
- | Disk: disk0s7
- | Status: Online
- | Size: 616336003072 B (616.3 GB)
- |
- +-> Logical Volume Family FFCE2FAF-BE8E-4FEF-9F3E-E221C6CBCA11
- ----------------------------------------------------------
- Encryption Status: Locked
- Encryption Type: AES-XTS
- Conversion Status: Complete
- Conversion Direction: -none-
- Has Encrypted Extents: Yes
- Fully Secure: Yes
- Passphrase Required: Yes
- |
- +-> Logical Volume 0CFAFD38-E79B-40AC-A4BE-63296E6B4331
- ---------------------------------------------------
- Disk: -none-
- Status: Locked
- Size (Total): 616017227776 B (616.0 GB)
- Size (Converted): -none-
- Revertible: No
- LV Name: gjp22-cs
- Content Hint: Apple_HFS
- sh-3.2$ diskutil coreStorage unlockLV 0CFAFD38-E79B-40AC-A4BE-63296E6B4331
- Passphrase:
- Started CoreStorage operation
- Logical Volume successfully unlocked
- Logical Volume successfully attached as disk2
- Error: -69842: Couldn't mount disk
- sh-3.2$ sudo /System/Library/Filesystems/zfs.fs/Contents/Resources/bin/zpool import -fN gjp22
- sh-3.2$ clear
- sh-3.2$ zfs list -t snapshot | grep 2013-10-11
- gjp22@2013-10-11-052545 183Mi - 405Gi -
- gjp22@2013-10-11-065533 140Mi - 405Gi -
- gjp22@2013-10-11-075534 103Mi - 405Gi -
- gjp22@2013-10-11-085533 109Mi - 405Gi -
- gjp22@2013-10-11-095533 135Mi - 405Gi -
- gjp22@2013-10-11-105532 54.6Mi - 405Gi -
- gjp22@2013-10-11-114731 2.64Mi - 405Gi -
- gjp22@2013-10-11-115532 3.71Mi - 405Gi -
- gjp22@2013-10-11-121758 4.90Mi - 405Gi -
- gjp22/casesensitive@2013-10-11-052545 0 - 784Ki -
- gjp22/casesensitive@2013-10-11-114731 0 - 784Ki -
- gjp22/casesensitive@2013-10-11-121758 0 - 784Ki -
- gjp22/opt@2013-10-11-052545 0 - 7.18Gi -
- gjp22/opt@2013-10-11-114731 0 - 7.18Gi -
- gjp22/opt@2013-10-11-121758 0 - 7.18Gi -
- sh-3.2$ mount
- /dev/disk1 on / (hfs, local, journaled)
- devfs on /dev (devfs, local, nobrowse)
- /dev/disk0s2 on /Volumes/swap (hfs, local, journaled)
- /dev/disk0s3 on /Volumes/disk0s3 (hfs, local, journaled)
- /dev/disk0s4 on /Volumes/spare (hfs, local, journaled)
- map -hosts on /net (autofs, nosuid, automounted, nobrowse)
- map auto_home on /home (autofs, automounted, nobrowse)
- map -fstab on /Network/Servers (autofs, automounted, nobrowse)
- localhost:/qq8LZf779_DG3W0_FKfy5i on /Volumes/MobileBackups (mtmfs, nosuid, read-only, nobrowse)
- sh-3.2$ zfs mount
- sh-3.2$ zfs rollback gjp22@2013-10-11-121758
- sh-3.2$ zfs rollback gjp22/casesensitive@2013-10-11-121758
- sh-3.2$ zfs rollback gjp22/opt@2013-10-11-121758
- sh-3.2$ sudo /System/Library/Filesystems/zfs.fs/Contents/Resources/bin/zpool export gjp22
- sh-3.2$ sudo /System/Library/Filesystems/zfs.fs/Contents/Resources/bin/zpool import gjp22
- sh-3.2$ zfs mount
- gjp22/casesensitive /Volumes/casesensitive
- gjp22 /Volumes/gjp22
- gjp22/opt /opt
- sh-3.2$ sudo /System/Library/Filesystems/zfs.fs/Contents/Resources/bin/zpool export gjp22
- cannot unmount '/Volumes/gjp22': Resource busy
- sh-3.2$ zfs mount
- gjp22/casesensitive /Volumes/casesensitive
- gjp22 /Volumes/gjp22
- sh-3.2$ sudo zfs unmount gjp22/casesensitive
- sh-3.2$ zfs mount
- gjp22 /Volumes/gjp22
- sh-3.2$ sudo /System/Library/Filesystems/zfs.fs/Contents/Resources/bin/zpool export gjp22
- cannot unmount '/Volumes/gjp22': Resource busy
- sh-3.2$ sudo lsof /Volumes/gjp22/
- COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
- mds 72 root twd DIR 1,13 127 47349 /Volumes/gjp22/.Spotlight-V100/Store-V2/93D2D11E-B7C0-4C4D-B671-507ADFA3838A
- mds 72 root 36u REG 1,13 277712896 53278 /Volumes/gjp22/.Spotlight-V100/Store-V2/93D2D11E-B7C0-4C4D-B671-507ADFA3838A/store.db
- mds 72 root 43u REG 1,13 277712896 53279 /Volumes/gjp22/.Spotlight-V100/Store-V2/93D2D11E-B7C0-4C4D-B671-507ADFA3838A/.store.db
- mds 72 root 121r DIR 1,13 334 2 /Volumes/gjp22
- mds 72 root 164r DIR 1,13 334 2 /Volumes/gjp22
- mds 72 root 173r DIR 1,13 127 47349 /Volumes/gjp22/.Spotlight-V100/Store-V2/93D2D11E-B7C0-4C4D-B671-507ADFA3838A
- mds 72 root 174r DIR 1,13 334 2 /Volumes/gjp22
- mds 72 root 175r DIR 1,13 127 47349 /Volumes/gjp22/.Spotlight-V100/Store-V2/93D2D11E-B7C0-4C4D-B671-507ADFA3838A
- mds 72 root 177u REG 1,13 28 53253 /Volumes/gjp22/.Spotlight-V100/Store-V2/93D2D11E-B7C0-4C4D-B671-507ADFA3838A/indexState
- UserEvent 200 bbsadmin-l 18r DIR 1,13 334 2 /Volumes/gjp22
- UserEvent 200 bbsadmin-l 19r DIR 1,13 334 2 /Volumes/gjp22
- Finder 232 bbsadmin-l 14r DIR 1,13 334 2 /Volumes/gjp22
- sh-3.2$ date
- Fri 11 Oct 2013 15:38:57 BST
- sh-3.2$ sudo zfs unmount gjp22
- sh-3.2$ zfs mount
- sh-3.2$ /System/Library/Filesystems/zfs.fs/Contents/Resources/bin/zpool export gjp22
- sh-3.2$ /System/Library/Filesystems/zfs.fs/Contents/Resources/bin/zpool import gjp22
- cannot import 'gjp22': no such pool available
- sh-3.2$ clear
- sh-3.2$ date
- Fri 11 Oct 2013 15:39:39 BST
- sh-3.2$ sudo /System/Library/Filesystems/zfs.fs/Contents/Resources/bin/zpool import gjp22
- sh-3.2$ sudo mv /Users/bbsadmin-l/Desktop/zpool /usr/sbin
- sh-3.2$ sudo zfs unmount gjp22/casesensitive
- sh-3.2$ zfs mount
- gjp22 /Volumes/gjp22
- gjp22/opt /opt
- sh-3.2$ /System/Library/Filesystems/zfs.fs/Contents/Resources/bin/zpool export gjp22
- sh-3.2$ clear
- sh-3.2$ date
- Fri 11 Oct 2013 15:41:04 BST
- sh-3.2$ uptime
- 15:41 up 10 mins, 3 users, load averages: 0.43 0.67 0.46
- sh-3.2$ sudo /System/Library/Filesystems/zfs.fs/Contents/Resources/bin/zpool import gjp22
- sh-3.2$ sudo zpool status
- pool: gjp22
- state: ONLINE
- scan: scrub repaired 0 in 26h25m with 0 errors on Mon Sep 30 23:13:54 2013
- config:
- NAME STATE READ WRITE CKSUM
- gjp22 ONLINE 0 0 0
- GPTE_71B8BDA2-3EBA-4B91-9E1C-2AE2B1DAAD06 ONLINE 0 0 0 at disk2s2
- cache
- GPTE_428337BD-2E39-4CCF-B02F-90DC376E3ED8 OFFLINE 0 0 0
- errors: No known data errors
- sh-3.2$ sudo zfs unmount gjp22/casesensitive
- sh-3.2$ sudo zfs unmount gjp22/opt
- sh-3.2$ sudo zfs unmount gjp22
- sh-3.2$ zpool export gjp22
- sh-3.2$ clear
- sh-3.2$ sw_vers
- ProductName: Mac OS X
- ProductVersion: 10.8.5
- BuildVersion: 12F45
- sh-3.2$ sudo kextstat | grep zfs
- 136 1 0xffffff7f807a6000 0x19b000 0x19b000 com.getgreenbytes.filesystem.zfs (2012.09.23) <13 7 5 4 3 1>
- 137 0 0xffffff7f80943000 0x6000 0x6000 com.getgreenbytes.driver.zfs (2012.09.14) <136 13 7 5 4 3 1>
- sh-3.2$ exit
- exit
- gpes3e-gjp4:~ bbsadmin-l$ exit
- logout
- [Process completed]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement