Posts

Showing posts with the label Filesystem

[ Level 2 ] Fix duplicate vg/lv name.

1. scan vgs: $ vgscan 2. get vg information: $ vgdisplay --- Volume group --- VG Name vg00 ... VG UUID FUoK9F-9mgs-jO4M-vub1-Y7zs-6wpQ-uM2S11 --- Volume group --- VG Name vg00 ... VG UUID FUoK9F-9mgs-jO4M-vub1-Y7zs-6wpQ-uM2S12 3. export vg $ vgexport 4. rename vg name $ vgrename FUoK9F-9mgs-jO4M-vub1-Y7zs-6wpQ-uM2S12 vg01 5. import vg $ vgimport vg01 6. get vg information: $ vgdisplay --- Volume group --- VG Name vg00 ... VG UUID FUoK9F-9mgs-jO4M-vub1-Y7zs-6wpQ-uM2S11 --- Volume group --- VG Name vg01 ... VG UUID FUoK9F-9mgs-jO4M-vub1-Y7zs-6wpQ-uM2S12 7. get lv information $ lvscan ACTIVE '/dev/vg00/lv00' [13.99 GiB] inherit inactive '/dev/vg01/lv00' [13.99 GiB] inherit 8. active vg01 $ vgchange --ignorelockingfailure --noudevsync --sysinit -ay vg01 >/dev/null 2>&1 && 9. rename lv name(optio...

[ Level 2 ] Enable USB 3.0 in Ubuntu 12.04

After I upgrade 12.04, the USB 3.0 port seems not work. Then I google the solution: add "blacklist uas" in the file /etc/modprobe.d/blacklist.conf Wish this helps. regards, Stanley Huang

[Level 1] How to mount exFAT filesystem in Ubuntu 10.04

You could install fuse-exfat to mount exFAT file system. e.g. $ sudo add-apt-repository ppa:relan/exfat $ sudo apt-get update $ sudo apt-get -y install fuse fuse-exfat exfat-utils Wish this helps. regards, Stanley Huang

[Level 3] ntfs support on CentOS 5.3

If you want to let your CentOS 5.3 support ntfs, you should install ntfs-3g package # yum install fuse fuse-ntfs-3g # modprobe fuse Wish this helps. regards, Stanley Huang

[Level2] Let CentOS 5.3 support ext4

Default CentOS 5.3/5.4 not support ext4. So you have load kernel module manually. # modprobe ext4 # modprobe ext4dev If you want to let 5.3 support ext4, you can install the package: PS. the kernel must after 2.6.18-128.e15 # yum install e4fsprogs After that, your system will have commands "fsck.ext4, mkfs.ext4" Transfer boot partition from ext3 to ext4 case 1: boot on one partition mounted on /boot # umount /boot # tune4fs -O extents,uninit_bg,dir_index /dev/sda1 # e4fsck -y /dev/sda1 case 2: boot on / # tune4fs -O extents,uninit_bg,dir_index /dev/sda1 Modify /etc/fstab /dev/sda1             /boot                   ext3    defaults        1 2 to /dev/sda1             /boot                   ext4    defaults   ...

[Level 2] How to create a FAT32 file system on OpenSolaris

Today, my colleague ask me how to create FAT32 on OpenSolaris~ Actually, you can use the command "mkfs" to create it. # mkfs -F pcfs -o FAT=32 /dev/rdsk/c1t0d0p0:1 ref: man page, mkfs_pcfs(1M) Wish this helps. regards, Stanley Huang

[Level 2] File ACL...

Someone ask me about how to "Copy/Backup files with acl", there are several ways to do so. 1. use cp -p command: # cp -p ./a.txt ./b.txt PS. If you copy a file from UFS to ZFS, is OK, if you copy a file from ZFS to UFS, that will be failed. 2. use tar cp command: # tar cp ./d.tar ./d PS. the same problem as case 1, while you extract the file between 2 different filesystem. 3. copy acl from another file with getfacl/setfacl command on UFS: # getfacl ./a.txt |  setfacl -f - ./b.txt PS. You can use above command on UFS, not on ZFS. 4. copy file with zfs send/recv command: # zfs snapshot poolname/fssource@sname # zfs send -R poolname/fssource@sname | zfs recv -dF poolname/fstarget Wish this helps. regards, Stanley Huang