PRACTICE
WORK-SHEET-1 [zfs]
Well, learned Solaris ?
OK…
Now
time to have some Practice to check How Frequently or without looking to our notebook
we can solve the things OR how much command we have on the Topics.
Let’s
start with ZFS…
1. What is zfs?
2. List some benefits of zfs
3. Compare ufs & zfs
4. Why we should move to zfs?
5. What is the basic requirement for
zfs?
6. Limitations of zfs
7. What is “COW” in zfs?
8. What is “dataset” and how many datasets
zfs can support?
9. What is zpool and how many datasets
zpool can support?
10. What is “vdev” in zfs and also
define the types of vdevs?
11. What is clone in zfs?
12. Create a stripe volume “zstripe”
with 2 disks [raid0]
13. Create a mirrored volume “zmirror”
with 2 disks [raid1]
14. Run “zpool list” and “zpool status”
to verify the creation
15. Add 2 disks to “zmirror” to make it
raid1+0 volume. [raid1+0]
16. Destroy the “zstripe” &
“zmirror”
17. Again using 4 disks create “zraid”
pool with raid1+0 [raid1+0]
18. Create a raidz1 volume “zm1” with 3
disks [raidz/raidz1]
19. Create a raidz1 volume “zm2” with 6
disks [raidz2]
20. Create a raidz1 volume “zm3” with 9
disks [raidz3]
21. List & define the stats in
“zpool status” command
22. Add a spare disk to volume “zm1”
23. Fire the command to check all the
properties of zpool “zm1”
24. Make the autoreplace flag on for
“zm1”
25. Remove one disk from “zm1” &
reboot (from vm only, don’t remove from physical system)
26. Now see the status of spare disk in
‘zpool status’ of zpool “zm1”
27. Now reattach the disk in vm and replace
in “zm1” and see the status of spare disk.
28. Create a root mirror
29. Create a snapshot for zpool “zm1”
30. Create a file system “myfs” within
“zm1”
31. Take snapshot of zm1/myfs then
Create some files within zm1/myfs and then restore from snapshot
32. Find where your snapshot is located?
33. Create 2 files within zm1/myfs then
take snapshot, again create 2 files then again take snapshot, again create 2
files then take snapshot
34. List all the snapshots
35. Try to find out the differences
between snapshots
36. Try to roll back on first snapshot
and see what it is saying
37. List the snapshots
38. Migrate a ufs root disk to zfs
39. How to patch a zfs file system,
explain in detail
40. Make a dry run for creating a mirror
zpool
41. Define quota & refquota
42. Create 2 FS zm1/myfs/test1 &
zm1/myfs/test2 and set quota of 20mb on each with compression off
43. Check the quota is working or not then
remove quota from both FS’s.
44. Now set the refquota of 30mb on 1 FS
and check refquota is working or not?
45. Create a zfs ‘zm1/home’ and set reservation
on entire file system ‘zm1/home’
46. Remove all quotas
47. Share the FS ‘zm1/home’ to other
systems
48. Unshared the ‘zm1/home’
49. Replace the faulty disk with new
one.
50. We had created snapshot zm1/myfs/test1@test1bkp,
now restore this snapshot to zm1/home and see the results.
51. Delete the zm1/home and the recover
it
52. What is Emulated Volume in zfs,
create a 500mb emulated volume and use it as swap
53. In similar way create a dump device
54. Create a 100m FS zm1/scsivol2 and
use it as iscsi volume on other system
55. Rename the zm1/scsivol2 to
zm1/scsiNEW
56. What is clone in zfs? And how it is
related with snapshot?
57. Create a FS zm1/ctest, create two
10m files f1&f2 inside, create clone of ctest in zm1/myfs2
58. Now we had cloned ctest at
zm1/myfs2/ctestclone, restore the clone to ctestclone and rename it to ctest
59. Send the snapshot to other system
using zfs via ssh
60. Make device c1t9d0 zm1 offline
temporarily & make it online also do the clearing of device
61. Command to display pool statistics
62. Suppose you had migrated a zpool
from older version of solaris, and in zpool status it is showing that some
features are unavailable, what is the cause and solution?
63. How to see the current version of
zfs running on system?
64. How to check the pool’s integrity
and pool with detailed error?
SOME TROUBLE SHOOTING…………
65. How to recover lost root password in
zfs system?
66. How to stop ongoing scrub operation?
67. Newly created Pool “testpool” having
some error and inaccessible, diagnose and figure out the solution.
68. Here is a situation, I created a
mirror vol named “testpool” with 2gb disks, now I realize that 2gb space is not
enough for me, so I want to increase the disk capacity. How can I do that?
69. What to do in system
panic/reboot/pool import case
70. One disk is suddenly got faulty in
your zfs root mirror disk, and u found this in o/p
71.
No comments:
Post a Comment